Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
design
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abookCheck
design
Commits
5c63b92d
Commit
5c63b92d
authored
Sep 16, 2022
by
NGO THI HONG
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#49882 update sort new report list
parent
e6f25fa5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
app/script/check_pu.js
+10
-10
No files found.
app/script/check_pu.js
View file @
5c63b92d
...
...
@@ -43,15 +43,7 @@ CHK_pu.init = function() {
}
CHK_pu
.
initOperationList
=
function
(
operationList
)
{
operationList
=
operationList
.
sort
(
function
(
a
,
b
)
{
if
(
a
.
operationId
<
b
.
operationId
)
return
1
;
if
(
a
.
operationId
>
b
.
operationId
)
return
-
1
;
return
0
;
});
CHK_pu
.
createNewReportList
(
operationList
);
CHK_pu
.
createContinousWorkList
(
operationList
);
CHK_pu
.
createReportWithWarning
(
operationList
);
...
...
@@ -134,8 +126,16 @@ CHK_pu.setCountElementInPickup = function() {
$
(
"#count-ReportWithWarning"
)[
0
].
innerHTML
=
CHK_pu
.
countReportWithWarning
;
}
}
CHK_pu
.
createNewReportList
=
function
(
operationList
,
isSearched
=
false
)
{
CHK_pu
.
sortNewReportList
=
function
(
operationList
)
{
operationList
=
operationList
.
sort
(
function
(
a
,
b
)
{
if
(
a
.
operationId
<
b
.
operationId
)
return
1
;
if
(
a
.
operationId
>
b
.
operationId
)
return
-
1
;
return
0
;
});
return
operationList
;
}
CHK_pu
.
createNewReportList
=
function
(
operationListOld
,
isSearched
=
false
)
{
var
operationList
=
CHK_pu
.
sortContinousWorkList
(
operationListOld
);
$
(
"#newReport-list"
).
empty
();
CHK_pu
.
countNewReportList
=
0
;
...
...
NGUYEN HOANG SON
@hoangson
mentioned in commit
29008935
Sep 16, 2022
mentioned in commit
29008935
mentioned in commit 29008935c6604793111444aaf1ac4107693389c5
Toggle commit list
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