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
74629130
Commit
74629130
authored
Oct 13, 2022
by
Takumi Imai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#50225 作業一覧への遷移
parent
af007d1b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
57 additions
and
29 deletions
+57
-29
.vscode/launch.json
+1
-1
abvw/common/js/constant.js
+10
-10
abvw/js/operationList/operationList.js
+46
-18
No files found.
.vscode/launch.json
View file @
74629130
...
...
@@ -8,7 +8,7 @@
"name"
:
"ABookCheck WEB"
,
"type"
:
"chrome"
,
"request"
:
"launch"
,
"url"
:
"http://127.0.0.1:5500/abvw/html/
index
.html"
,
"url"
:
"http://127.0.0.1:5500/abvw/html/
login
.html"
,
"webRoot"
:
"${workspaceFolder}"
}
]
...
...
abvw/common/js/constant.js
View file @
74629130
...
...
@@ -5,6 +5,9 @@
*/
const
CONSTANT
=
{};
CONSTANT
.
DEVICE_TYPE
=
{
WEB
:
4
,
};
CONSTANT
.
SORT_TYPE
=
{
NAME
:
0
,
START_DATE_DESC
:
1
,
...
...
@@ -26,17 +29,10 @@ CONSTANT.PAGE_TAB = {
OPERATION_LIST
:
'operationList'
,
};
CONSTANT
.
OPERATION_TYPE
=
{
LIST
:
'0'
,
DRAWING
:
'1'
,
VTOUR
:
'2'
,
PDF
:
'3'
,
};
CONSTANT
.
REPORT_TYPE
=
{
REPORT
ONLY
:
'0'
,
INSPECT
:
'1'
,
WITHREPLY
:
'2'
,
REPORT
:
'0'
,
ROUTINE
:
'1'
,
ANSWER
:
'2'
,
WORKFLOW
:
'3'
,
};
...
...
@@ -49,9 +45,13 @@ CONSTANT.URL = {
// BASE_CMS: 'https://' + location.host + '/checkapi/web/',
BASE_CMS
:
'http://localhost:8080/acms/'
,
BASE_CHECKAPI
:
'/checkapi/web/'
,
BASE_HTML
:
'/checkapi/web/html/'
,
BASE_WEB
:
'abvw/html/'
,
ALL_OPERATION_LIST
:
'operationListWeb/getOperationList'
,
AUTH_SESSION
:
'getSession/checkAuthUser'
,
TASK_REPORT_LIST
:
'getTaskReport/index'
,
ENTRY_REPORT
:
'getReport???'
,
//未定
OPERATION_VIEW_LOG
:
'operationViewLog/savelog'
,
};
CONSTANT
.
LANG
=
{
...
...
abvw/js/operationList/operationList.js
View file @
74629130
...
...
@@ -94,12 +94,14 @@ OL.createOperationList = function (operationList) {
const
operationNameTd
=
$
(
"<td class='operationId_"
+
operationList
[
i
].
operationId
+
"'><a href=
\"
javascript:OL.sendOperation('
goOperation', '
"
+
"'><a href=
\"
javascript:OL.sendOperation('"
+
operationList
[
i
].
operationId
+
"', '"
+
operationList
[
i
].
operationType
+
"', '"
+
operationList
[
i
].
reportType
+
"', '"
+
operationList
[
i
].
enableAddReport
+
"');
\"
class='d-block text-black text-decoration-none mb-1'>"
+
operationList
[
i
].
operationName
+
"</a><div class='fa-sm mobile_operation_date'><i class='far fa-clock fa-blue' style='color:blue;margin-right:10px'></i>"
+
...
...
@@ -452,24 +454,50 @@ OL.resetSearch = function () {
*
* @param {String} operationId
*/
OL
.
sendOperation
=
function
(
operationId
,
operationType
,
reportType
)
{
OL
.
sendOperation
=
function
(
operationId
,
operationType
,
reportType
,
enableAddReport
)
{
//save operation logs. needed for sorting
let
saveParams
=
{};
saveParams
.
sid
=
COMMON
.
getSid
();
saveParams
.
cmd
=
CONSTANT
.
ACT_CMD
.
saveOperationLog
;
saveParams
.
deviceType
=
4
;
saveParams
.
operationType
=
operationType
;
saveParams
.
reportType
=
reportType
;
const
date
=
new
Date
();
saveParams
.
viewingStartDate
=
date
.
toLocaleString
();
COMMON
.
sendABookCheckApi
(
saveParam
,
false
);
OL
.
saveOperationReadingLog
(
operationId
,
operationType
,
reportType
);
//Transition to the report form or operation list screen
let
postParams
=
{};
postParams
.
sid
=
COMMON
.
getSid
();
postParams
.
cmd
=
CONSTANT
.
ACT_CMD
.
goOperation
;
postParams
.
operationId
=
operationId
;
const
url
=
COMMON
.
getUrlWeb
(
postParams
.
cmd
);
postCommunication
(
url
,
postParams
);
let
params
=
{};
params
.
sid
=
COMMON
.
getSid
();
params
.
operationId
=
operationId
;
const
url
=
OL
.
createUrlOfOperation
(
enableAddReport
,
reportType
);
COMMON
.
postCommunication
(
url
,
params
);
};
/**
* save operation logs. needed for sorting
*
* @param {String} operationId
* @param {String} operationType
* @param {String} reportType
*/
OL
.
saveOperationReadingLog
=
function
(
operationId
,
operationType
,
reportType
)
{
let
params
=
{};
params
.
sid
=
COMMON
.
getSid
();
params
.
operationId
=
operationId
;
params
.
deviceType
=
CONSTANT
.
DEVICE_TYPE
.
WEB
;
params
.
operationType
=
operationType
;
params
.
reportType
=
reportType
;
const
date
=
new
Date
();
params
.
viewingStartDate
=
date
.
toLocaleString
();
const
url
=
CONSTANT
.
URL
.
BASE_CMS
+
ClientData
.
userInfo_accountPath
()
+
CONSTANT
.
URL
.
BASE_HTML
+
CONSTANT
.
URL
.
OPERATION_VIEW_LOG
;
COMMON
.
cmsAjax
(
url
,
params
,
false
);
};
/**
* return url of cms Operation Scene
*
* @param {boolean} enableAddReport
* @param {Number} reportType
* @returns url
*/
OL
.
createUrlOfOperation
=
function
(
enableAddReport
,
reportType
)
{
let
baseUrl
=
CONSTANT
.
URL
.
BASE_CMS
+
ClientData
.
userInfo_accountPath
()
+
CONSTANT
.
URL
.
BASE_HTML
;
if
(
reportType
==
CONSTANT
.
REPORT_TYPE
.
ROUTINE
||
enableAddReport
==
'1'
)
{
return
baseUrl
+
CONSTANT
.
URL
.
TASK_REPORT_LIST
;
}
else
{
return
baseUrl
+
CONSTANT
.
URL
.
ENTRY_REPORT
;
}
};
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