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
690badfe
Commit
690badfe
authored
Aug 31, 2022
by
NGUYEN HOANG SON
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix dashboard item batch
parent
856c042c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
9 deletions
+15
-9
app/script/check.js
+15
-9
No files found.
app/script/check.js
View file @
690badfe
...
...
@@ -577,21 +577,27 @@ CHK.loadDashboardBatch = function(operationList) {
CHK
.
dashboardBatch
.
continousWork
=
0
;
CHK
.
dashboardBatch
.
reportWarning
=
0
;
for
(
var
i
=
0
;
i
<
operationList
.
length
;
i
++
)
{
if
(
operationList
[
i
].
enableAddReport
==
1
)
{
let
operation
=
operationList
[
i
];
if
(
operation
.
enableAddReport
==
1
)
{
CHK
.
dashboardBatch
.
newReport
+=
1
;
}
if
(
operationList
[
i
].
reportType
==
3
)
{
if
(
operationList
[
i
].
processList
&&
operationList
[
i
].
processList
.
length
>
0
)
{
for
(
var
j
=
0
;
j
<
operationList
[
i
].
processList
.
length
;
j
++
)
{
if
(
operationList
[
i
].
processList
[
j
].
processStatus
&&
operationList
[
i
].
processList
[
j
].
processStatus
!=
999
)
{
//status != DONE
CHK
.
dashboardBatch
.
continousWork
+=
1
;
if
(
operation
.
reportType
==
3
)
{
if
(
operation
.
processList
&&
operation
.
processList
.
length
>
0
)
{
for
(
var
j
=
0
;
j
<
operation
.
processList
.
length
;
j
++
)
{
let
process
=
operationList
[
i
].
processList
[
j
];
if
(
process
.
phaseList
&&
process
.
phaseList
.
length
>
0
)
{
for
(
var
k
=
0
;
k
<
process
.
phaseList
.
length
;
k
++
)
{
let
phase
=
process
.
phaseList
[
k
];
if
(
phase
.
phaseStatus
&&
phase
.
phaseStatus
!=
99
)
{
CHK
.
dashboardBatch
.
continousWork
+=
1
;
}
}
}
}
}
}
if
(
operation
List
[
i
].
warningReportList
&&
operationList
[
i
]
.
warningReportList
.
length
>
0
)
{
CHK
.
dashboardBatch
.
reportWarning
+=
operation
List
[
i
]
.
warningReportList
.
length
;
if
(
operation
.
warningReportList
&&
operation
.
warningReportList
.
length
>
0
)
{
CHK
.
dashboardBatch
.
reportWarning
+=
operation
.
warningReportList
.
length
;
}
}
if
(
typeof
CHK_Dashboard
!==
'undefined'
)
{
...
...
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