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
12db7dfa
Commit
12db7dfa
authored
Aug 29, 2022
by
NGUYEN HOANG SON
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#49152 implement pickup batch
parent
f6bd51d6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
4 deletions
+36
-4
app/script/check-dashboard.js
+3
-0
app/script/check.js
+33
-4
No files found.
app/script/check-dashboard.js
View file @
12db7dfa
...
...
@@ -66,6 +66,9 @@ CHK_Dashboard.updateDataPickups = function() {
item
.
enabled
=
enabled
;
}
item
.
count
=
0
;
if
(
CHK
.
dashboardBatch
[
item
.
id
])
{
item
.
count
=
CHK
.
dashboardBatch
[
item
.
id
];
}
});
}
...
...
app/script/check.js
View file @
12db7dfa
...
...
@@ -53,6 +53,12 @@ CHK.dashboardSetting = {
dashboardHome
:
false
,
};
CHK
.
dashboardBatch
=
{
newReport
:
0
,
continousWork
:
0
,
reportWarning
:
0
,
};
var
pageLang
;
// ページ設定言語
var
CATEGORY_HEIGHT
;
//カテゴリー描画用固定値(高さ)
var
msgMap
=
{
// velocity?
...
...
@@ -548,8 +554,6 @@ CHK.initReportApp = function (callback) {
CHK
.
operationGroupMasterRelation
=
json
;
});
// コミュニケーションデータJSONデータ
CHK
.
initPushMessageList
();
}
CHK
.
initPushMessageList
=
function
()
{
...
...
@@ -563,6 +567,28 @@ CHK.initPushMessageList = function() {
});
}
CHK
.
loadDashboardBatch
=
function
(
operationList
)
{
if
(
!
operationList
)
return
;
CHK
.
dashboardBatch
.
newReport
=
operationList
.
length
;
CHK
.
dashboardBatch
.
continousWork
=
0
;
CHK
.
dashboardBatch
.
reportWarning
=
0
;
for
(
var
i
=
0
;
i
<
operationList
.
length
;
i
++
)
{
if
(
operationList
[
i
].
reportType
==
3
)
{
if
(
operationList
[
i
].
processList
&&
operationList
[
i
].
processList
.
length
>
0
)
{
CHK
.
dashboardBatch
.
continousWork
+=
1
;
}
}
if
(
operationList
[
i
].
warningReportList
&&
operationList
[
i
].
warningReportList
.
length
>
0
)
{
CHK
.
dashboardBatch
.
reportWarning
+=
operationList
[
i
].
warningReportList
.
length
;
}
}
if
(
typeof
CHK_Dashboard
!==
'undefined'
)
{
//update batch pickup list at dashboard screen
CHK_Dashboard
.
updateDataPickups
();
CHK_Dashboard
.
initPickups
();
}
}
CHK
.
loadDashboardSetting
=
function
(
callback
)
{
CHK
.
loadJson
(
CHK
.
jsonPath
.
dashboardSetting
,
function
(
json
)
{
if
(
json
)
{
...
...
@@ -596,11 +622,14 @@ CHK.initOperationList = function() {
CHK
.
operation
=
json
;
$
(
'#operationTable'
).
empty
();
CHK
.
operation
.
searchOperationList
=
json
.
operationList
;
CHK
.
loadDashboardBatch
(
CHK
.
operation
.
operationList
);
//作業一覧描画
console
.
log
(
"json.operationList"
,
JSON
.
stringify
(
json
.
operationList
)
)
console
.
log
(
"json.operationList"
,
JSON
.
stringify
(
json
.
operationList
)
);
CHK
.
createOperationList
(
CHK
.
operation
.
operationList
);
});
// コミュニケーションデータJSONデータ
CHK
.
initPushMessageList
();
}
/**
...
...
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