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
d834730a
Commit
d834730a
authored
2 years ago
by
NGUYEN HOANG SON
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#49824 【Check(ダッシュボード) CMS 1.4.3.2】自身が「報告(回答)」作業の「回答」側になっている報告で、回答できる報告があった際、ダッシュボードのバッチにプラスされている
parent
5d3b3f6d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
app/script/check.js
+8
-1
app/script/check_pu.js
+2
-1
No files found.
app/script/check.js
View file @
d834730a
...
...
@@ -602,6 +602,13 @@ CHK.initPushMessageList = function() {
});
}
CHK
.
isNewReport
=
function
(
operation
)
{
if
(
operation
&&
operation
.
enableAddReport
==
1
&&
(
operation
.
newReportFlg
==
1
||
(
operation
.
reportType
!=
CHK
.
REPORT_TYPE
.
WORKFLOW
&&
operation
.
reportType
!=
CHK
.
REPORT_TYPE
.
WITHREPLY
)))
return
true
;
return
false
;
}
CHK
.
loadDashboardBatch
=
function
(
operationList
)
{
if
(
!
operationList
)
return
;
CHK
.
dashboardBatch
.
newReport
=
0
;
...
...
@@ -609,7 +616,7 @@ CHK.loadDashboardBatch = function(operationList) {
CHK
.
dashboardBatch
.
reportWarning
=
0
;
for
(
var
i
=
0
;
i
<
operationList
.
length
;
i
++
)
{
let
operation
=
operationList
[
i
];
if
(
!
(
operationList
[
i
].
enableAddReport
!=
1
||
(
operationList
[
i
].
reportType
==
3
&&
operationList
[
i
].
newReportFlg
==
0
)
||
(
operationList
[
i
].
reportType
==
2
&&
operationList
[
i
].
enableReportEdit
==
0
))
)
{
if
(
CHK
.
isNewReport
(
operation
))
{
CHK
.
dashboardBatch
.
newReport
+=
1
;
}
if
(
operation
.
reportType
==
3
)
{
...
...
This diff is collapsed.
Click to expand it.
app/script/check_pu.js
View file @
d834730a
...
...
@@ -152,7 +152,8 @@ CHK_pu.createNewReportList = function(operationList, isSearched = false) {
$
(
'#notFoundNewReport'
).
addClass
(
'd-none'
);
for
(
var
i
=
0
;
i
<
operationList
.
length
;
i
++
)
{
if
(
operationList
[
i
].
enableAddReport
!=
1
||
((
operationList
[
i
].
reportType
==
CHK
.
REPORT_TYPE
.
WORKFLOW
||
operationList
[
i
].
reportType
==
CHK
.
REPORT_TYPE
.
WITHREPLY
)
&&
operationList
[
i
].
newReportFlg
==
0
)
)
continue
;
//if(operationList[i].enableAddReport != 1 || ((operationList[i].reportType == CHK.REPORT_TYPE.WORKFLOW || operationList[i].reportType == CHK.REPORT_TYPE.WITHREPLY) && operationList[i].newReportFlg == 0) ) continue;
if
(
!
CHK
.
isNewReport
(
operationList
[
i
]))
continue
;
//TODO aタグlist.html 転移処理operationList[i].reportType == 2 && operationList[i].enableReportEdit == 0
var
messageli
=
$
(
"<li class='item list-unstyled rounded border mb-2'name = 'operationId_"
+
operationList
[
i
].
operationId
+
"' ></li>"
);
var
ahrefRequiredFlg
;
...
...
This diff is collapsed.
Click to expand it.
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