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
c72bc9e2
Commit
c72bc9e2
authored
Oct 14, 2022
by
Takumi Imai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#49471 ファイル編集
parent
c74ddccc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
17 deletions
+25
-17
abvw/common/js/common.js
+2
-2
abvw/common/js/constant.js
+18
-10
abvw/js/operationList/operationList.js
+5
-5
No files found.
abvw/common/js/common.js
View file @
c72bc9e2
...
@@ -173,7 +173,7 @@ COMMON.alertClose = function () {
...
@@ -173,7 +173,7 @@ COMMON.alertClose = function () {
*/
*/
COMMON
.
goUrlWithCurrentParams
=
function
(
url
,
params
)
{
COMMON
.
goUrlWithCurrentParams
=
function
(
url
,
params
)
{
if
(
!
params
)
{
if
(
!
params
)
{
location
.
href
=
CONSTANT
.
URL
.
BASE_WEB
+
url
;
location
.
href
=
CONSTANT
.
URL
.
WEB
.
BASE
+
url
;
}
}
const
mixParams
=
Object
.
assign
(
COMMON
.
getUrlParameter
(),
params
);
const
mixParams
=
Object
.
assign
(
COMMON
.
getUrlParameter
(),
params
);
...
@@ -310,7 +310,7 @@ COMMON.checkAuth = function (async = true) {
...
@@ -310,7 +310,7 @@ COMMON.checkAuth = function (async = true) {
let
params
=
{};
let
params
=
{};
params
.
sid
=
COMMON
.
getSid
;
params
.
sid
=
COMMON
.
getSid
;
var
urlPath
=
ClientData
.
userInfo_accountPath
();
var
urlPath
=
ClientData
.
userInfo_accountPath
();
const
url
=
CONSTANT
.
URL
.
BASE_CMS
+
urlPath
+
CONSTANT
.
URL
.
BASE_CHECKAPI
+
CONSTANT
.
URL
.
AUTH_SESSION
;
const
url
=
CONSTANT
.
URL
.
CMS
.
BASE
+
urlPath
+
CONSTANT
.
URL
.
CMS
.
API
.
BASE
+
CONSTANT
.
URL
.
CMS
.
API
.
AUTH_SESSION
;
COMMON
.
cmsAjax
(
url
,
params
,
async
,
null
,
function
()
{
COMMON
.
cmsAjax
(
url
,
params
,
async
,
null
,
function
()
{
COMMON
.
goUrlWithCurrentParams
(
CONSTANT
.
PAGE_NAME
.
LOGIN
);
COMMON
.
goUrlWithCurrentParams
(
CONSTANT
.
PAGE_NAME
.
LOGIN
);
});
});
...
...
abvw/common/js/constant.js
View file @
c72bc9e2
...
@@ -42,16 +42,24 @@ CONSTANT.ADD_REPORT_FLG = {
...
@@ -42,16 +42,24 @@ CONSTANT.ADD_REPORT_FLG = {
};
};
CONSTANT
.
URL
=
{
CONSTANT
.
URL
=
{
// BASE_CMS: 'https://' + location.host + '/checkapi/web/',
CMS
:
{
BASE_CMS
:
'http://localhost:8080/acms/'
,
// BASE_CMS: 'https://' + location.host + '/checkapi/web/',
BASE_CHECKAPI
:
'/checkapi/web/'
,
BASE
:
'http://localhost:8080/acms/'
,
BASE_HTML
:
'/checkapi/web/html/'
,
API
:
{
BASE_WEB
:
'abvw/html/'
,
BASE
:
'/checkapi/web/'
,
ALL_OPERATION_LIST
:
'operationListWeb/getOperationList'
,
ALL_OPERATION_LIST
:
'operationListWeb/getOperationList'
,
AUTH_SESSION
:
'getSession/checkAuthUser'
,
AUTH_SESSION
:
'getSession/checkAuthUser'
,
TASK_REPORT_LIST
:
'getTaskReport/index'
,
OPERATION_VIEW_LOG
:
'operationViewLog/saveLog'
,
ENTRY_REPORT
:
'getReport???'
,
//未定
},
OPERATION_VIEW_LOG
:
'operationViewLog/saveLog'
,
HTML
:
{
BASE
:
'/checkapi/web/html/'
,
TASK_REPORT_LIST
:
'getTaskReport/index'
,
ENTRY_REPORT
:
'getReport???'
,
//未定
},
},
WEB
:
{
BASE
:
'abvw/html/'
,
},
};
};
CONSTANT
.
LANG
=
{
CONSTANT
.
LANG
=
{
...
...
abvw/js/operationList/operationList.js
View file @
c72bc9e2
...
@@ -53,7 +53,7 @@ OL.getAllDataWeb = function (searchKeyword, sortIndex, searchStartDate, searchEn
...
@@ -53,7 +53,7 @@ OL.getAllDataWeb = function (searchKeyword, sortIndex, searchStartDate, searchEn
param
.
startDate
=
searchStartDate
;
param
.
startDate
=
searchStartDate
;
param
.
endDate
=
searchEndDate
;
param
.
endDate
=
searchEndDate
;
param
.
operationGroupMasterId
=
operationGroupMasterId
;
param
.
operationGroupMasterId
=
operationGroupMasterId
;
const
url
=
CONSTANT
.
URL
.
BASE_CMS
+
ClientData
.
userInfo_accountPath
()
+
CONSTANT
.
URL
.
BASE_CHECKAPI
+
CONSTANT
.
URL
.
ALL_OPERATION_LIST
;
const
url
=
CONSTANT
.
URL
.
CMS
.
BASE
+
ClientData
.
userInfo_accountPath
()
+
CONSTANT
.
URL
.
CMS
.
API
.
BASE
+
CONSTANT
.
URL
.
CMS
.
API
.
ALL_OPERATION_LIST
;
COMMON
.
cmsAjax
(
url
,
param
,
false
,
function
(
json
)
{
COMMON
.
cmsAjax
(
url
,
param
,
false
,
function
(
json
)
{
OL
.
operationList
=
json
.
operationList
;
OL
.
operationList
=
json
.
operationList
;
...
@@ -481,7 +481,7 @@ OL.saveOperationReadingLog = function (operationId, operationType, reportType) {
...
@@ -481,7 +481,7 @@ OL.saveOperationReadingLog = function (operationId, operationType, reportType) {
params
.
operationType
=
operationType
;
params
.
operationType
=
operationType
;
params
.
reportType
=
reportType
;
params
.
reportType
=
reportType
;
params
.
viewingStartDate
=
COMMON
.
currentTime
();
params
.
viewingStartDate
=
COMMON
.
currentTime
();
const
url
=
CONSTANT
.
URL
.
BASE_CMS
+
ClientData
.
userInfo_accountPath
()
+
CONSTANT
.
URL
.
BASE_CHECKAPI
+
CONSTANT
.
URL
.
OPERATION_VIEW_LOG
;
const
url
=
CONSTANT
.
URL
.
CMS
.
BASE
+
ClientData
.
userInfo_accountPath
()
+
CONSTANT
.
URL
.
CMS
.
API
.
BASE
+
CONSTANT
.
URL
.
CMS
.
API
.
OPERATION_VIEW_LOG
;
COMMON
.
cmsAjax
(
url
,
params
,
false
);
COMMON
.
cmsAjax
(
url
,
params
,
false
);
};
};
...
@@ -493,10 +493,10 @@ OL.saveOperationReadingLog = function (operationId, operationType, reportType) {
...
@@ -493,10 +493,10 @@ OL.saveOperationReadingLog = function (operationId, operationType, reportType) {
* @returns url
* @returns url
*/
*/
OL
.
createUrlOfOperation
=
function
(
enableAddReport
,
reportType
)
{
OL
.
createUrlOfOperation
=
function
(
enableAddReport
,
reportType
)
{
let
baseUrl
=
CONSTANT
.
URL
.
BASE_CMS
+
ClientData
.
userInfo_accountPath
()
+
CONSTANT
.
URL
.
BASE_HTML
;
let
baseUrl
=
CONSTANT
.
URL
.
CMS
.
BASE
+
ClientData
.
userInfo_accountPath
()
+
CONSTANT
.
URL
.
CMS
.
HTML
.
BASE
;
if
(
reportType
==
CONSTANT
.
REPORT_TYPE
.
ROUTINE
||
enableAddReport
==
'1'
)
{
if
(
reportType
==
CONSTANT
.
REPORT_TYPE
.
ROUTINE
||
enableAddReport
==
'1'
)
{
return
baseUrl
+
CONSTANT
.
URL
.
TASK_REPORT_LIST
;
return
baseUrl
+
CONSTANT
.
URL
.
CMS
.
HTML
.
TASK_REPORT_LIST
;
}
else
{
}
else
{
return
baseUrl
+
CONSTANT
.
URL
.
ENTRY_REPORT
;
return
baseUrl
+
CONSTANT
.
URL
.
CMS
.
HTML
.
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