Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
nobu-web-v2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ari_darmawan
nobu-web-v2
Commits
51c837bd
Commit
51c837bd
authored
Aug 25, 2022
by
ari_darmawan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug next page
parent
bc482aa5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
login-logs.component.html
src/app/admin/login-logs/login-logs.component.html
+2
-2
login-logs.component.ts
src/app/admin/login-logs/login-logs.component.ts
+8
-1
No files found.
src/app/admin/login-logs/login-logs.component.html
View file @
51c837bd
...
...
@@ -24,11 +24,11 @@
</div>
<div
class=
"col-12 col-sm-12 col-md-12 col-lg-3"
>
<label
class=
"text-muted"
><small>
Search
</small></label>
<input
type=
"text"
class=
"form-control form-control-sm"
(
keyup
.
enter
)="
requestLogLogin
()"
[(
ngModel
)]="
listRequest
.
search_text
"
placeholder=
"Type.."
maxlength=
"100"
>
<input
type=
"text"
class=
"form-control form-control-sm"
(
keyup
.
enter
)="
onSearch
()"
[(
ngModel
)]="
listRequest
.
search_text
"
placeholder=
"Type.."
maxlength=
"100"
>
</div>
<div
class=
"col-12 col-sm-12 col-md-4 col-lg-2"
>
<label
class=
"text-muted"
><small></small></label>
<button
class=
"btn btn-sm btn-success arataka-btn-success"
style=
"margin-top: 31px; width: 100px;"
(
click
)="
requestLogLogin
()"
>
<button
class=
"btn btn-sm btn-success arataka-btn-success"
style=
"margin-top: 31px; width: 100px;"
(
click
)="
onSearch
()"
>
<i
class=
"bi bi-search"
></i>
Search
</button>
...
...
src/app/admin/login-logs/login-logs.component.ts
View file @
51c837bd
...
...
@@ -134,13 +134,19 @@ export class LoginLogsComponent implements OnInit {
}
}
onSearch
()
{
this
.
listRequest
.
filter_limit
=
10
;
this
.
listRequest
.
filter_page
=
1
;
this
.
requestLogLogin
();
}
exportFile
()
{
const
params
=
{
"filter_limit"
:
null
,
"filter_page"
:
null
,
}
AratakaConfig
.
LoadingPage
.
showLoading
(
'Export File.., Please wait..'
)
this
.
API
.
exportFile
(
'user_log/export'
,
this
.
listRequest
)
this
.
API
.
exportFile
(
'user_log/export'
,
params
)
.
subscribe
((
response
:
any
)
=>
{
const
data
=
`data:application/octet-stream;base64,
${
response
.
base_64
}
`
;
const
fileName
:
string
=
`log-login-
${
moment
(
this
.
listRequest
.
time_start
).
format
(
'DD MMM YYYY'
)}
-
${
moment
(
this
.
listRequest
.
time_end
).
format
(
'DD MMM YYYY'
)}
-
${
moment
(
new
Date
()).
format
(
'DD MMM YYYY LTS'
)}
.xlsx`
;
...
...
@@ -162,6 +168,7 @@ export class LoginLogsComponent implements OnInit {
requestLogLogin
()
{
this
.
isLoading
=
true
;
this
.
isEmpaty
=
false
;
this
.
API
.
post
(
'user_log/list'
,
this
.
listRequest
)
.
subscribe
((
response
:
items
)
=>
{
if
(
response
.
items
.
length
>
0
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment