Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
check
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
abook_web
check
Commits
45394c63
Commit
45394c63
authored
Dec 16, 2022
by
Takumi Imai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#51383 「工程作業」タブか「警告を含む報告」タブで入力後、「新規報告」タブへ戻る【FB】
parent
0aad3f39
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
14 deletions
+13
-14
abweb/js/dashboard/dashboard.js
+8
-11
abweb/js/pickup/pickup.js
+5
-3
No files found.
abweb/js/dashboard/dashboard.js
View file @
45394c63
...
...
@@ -8,7 +8,7 @@ var DASHBOARD = {};
DASHBOARD
.
pickupItems
=
[
{
id
:
'newReport'
,
href
:
"javascript:DASHBOARD.goPickup('newReport');"
,
count
:
0
,
enabled
:
true
,
img
:
{
src
:
'../common/img/dahboard_icon_new.svg'
},
msg
:
'newRegistrationTitle'
},
{
id
:
'continousWork'
,
href
:
"javascript:DASHBOARD.goPickup('continousWork');"
,
count
:
0
,
enabled
:
true
,
img
:
{
src
:
'../common/img/dahboard_icon_proccess.svg'
},
msg
:
'continousWorkTitle'
},
{
id
:
'warningReport'
,
href
:
"javascript:DASHBOARD.goPickup('
reportWarning
');"
,
count
:
0
,
enabled
:
true
,
img
:
{
src
:
'../common/img/dahboard_icon_alert.svg'
},
msg
:
'reportWarningTitle'
},
{
id
:
'warningReport'
,
href
:
"javascript:DASHBOARD.goPickup('
warningReport
');"
,
count
:
0
,
enabled
:
true
,
img
:
{
src
:
'../common/img/dahboard_icon_alert.svg'
},
msg
:
'reportWarningTitle'
},
];
/** comunication dashboard configuration */
...
...
@@ -23,9 +23,8 @@ DASHBOARD.defaultDashboard = {
newReport
:
0
,
continousWork
:
0
,
warningReport
:
0
,
pushMesage
:
0
}
pushMesage
:
0
,
},
};
DASHBOARD
.
getDataApiUrl
=
COMMON
.
format
(
ClientData
.
conf_checkApiUrl
(),
ClientData
.
userInfo_accountPath
())
+
CONSTANT
.
URL
.
CMS
.
API
.
DASHBOARD
;
...
...
@@ -36,7 +35,7 @@ DASHBOARD.getDataApiUrl = COMMON.format(ClientData.conf_checkApiUrl(), ClientDat
*/
DASHBOARD
.
getDashboardData
=
function
(
callback
)
{
let
param
=
{
sid
:
COMMON
.
getSid
()
sid
:
COMMON
.
getSid
()
,
};
COMMON
.
cmsAjax
(
DASHBOARD
.
getDataApiUrl
,
...
...
@@ -132,14 +131,12 @@ DASHBOARD.init = function () {
COMMON
.
checkAuth
(
false
);
sessionStorage
.
activeHomePage
=
CONSTANT
.
PAGE_TAB
.
DASHBOARD
;
sessionStorage
.
removeItem
(
"operationId"
);
sessionStorage
.
removeItem
(
"RL_searchWord"
);
sessionStorage
.
removeItem
(
'operationId'
);
sessionStorage
.
removeItem
(
'RL_searchWord'
);
DASHBOARD
.
loadCommon
();
DashboardSetting
.
getSettingData
(
function
(
settings
)
{
DASHBOARD
.
getDashboardData
(
function
(
dataDashboard
)
{
if
(
!
dataDashboard
.
dashboard
||
jQuery
.
isEmptyObject
(
dataDashboard
.
dashboard
)
)
dataDashboard
.
dashboard
=
DASHBOARD
.
defaultDashboard
.
dashboard
;
DASHBOARD
.
getDashboardData
(
function
(
dataDashboard
)
{
if
(
!
dataDashboard
.
dashboard
||
jQuery
.
isEmptyObject
(
dataDashboard
.
dashboard
))
dataDashboard
.
dashboard
=
DASHBOARD
.
defaultDashboard
.
dashboard
;
DASHBOARD
.
updateDataPickups
(
settings
,
dataDashboard
);
DASHBOARD
.
initPickups
();
DASHBOARD
.
updateDataCommunications
(
dataDashboard
);
...
...
abweb/js/pickup/pickup.js
View file @
45394c63
...
...
@@ -216,7 +216,7 @@ PICKUP.settingActivePickup = function (pickupActive) {
$
(
'#tab-content-ContinousWork'
).
addClass
(
'active show'
);
return
;
}
if
(
pickupActive
==
'
reportWarning
'
)
{
if
(
pickupActive
==
'
warningReport
'
)
{
$
(
'#liTabReportWithWarning a'
).
addClass
(
'active'
);
$
(
'#tab-content-ReportWithWarnings'
).
addClass
(
'active show'
);
return
;
...
...
@@ -607,7 +607,9 @@ PICKUP.initWarningReportWithAnswerReportType = function (report, reportType, rep
report
.
operationId
+
"',"
+
PICKUP
.
REPORT_TYPE
.
WITHREPLY
+
',
\'
'
+
report
.
taskKey
+
"', null,null,"
+
",'"
+
report
.
taskKey
+
"', null,null,"
+
reportType
+
");
\"
class='h-100 d-block px-3 py-2 text-decoration-none text-dark position-relative'>"
+
"<div class='position-absolute translate-middle top-50 left-0 ml-3'><div class='type-icon'>"
+
...
...
@@ -714,7 +716,7 @@ PICKUP.createReportWithWarningList = function (operationListOld) {
if
(
operationList
[
i
].
taskType
==
PICKUP
.
REPLYREPORT_TASK_TYPE
.
REPORT
)
{
operationNameLi
=
PICKUP
.
initWarningReportWithAnswerReportType
(
operationList
[
i
],
PICKUP
.
REPLYREPORT_TASK_TYPE
.
REPORT
,
msgLevelReport
);
}
else
{
operationNameLi
=
PICKUP
.
initWarningReportWithAnswerReportType
(
operationList
[
i
],
PICKUP
.
REPLYREPORT_TASK_TYPE
.
ANSWER
,
msgLevelAnswer
);
operationNameLi
=
PICKUP
.
initWarningReportWithAnswerReportType
(
operationList
[
i
],
PICKUP
.
REPLYREPORT_TASK_TYPE
.
ANSWER
,
msgLevelAnswer
);
}
break
;
case
PICKUP
.
REPORT_TYPE
.
WORKFLOW
:
// continouswork
...
...
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