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
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
12 deletions
+20
-12
abvw/common/js/common.js
+2
-2
abvw/common/js/constant.js
+13
-5
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 () {
*/
COMMON
.
goUrlWithCurrentParams
=
function
(
url
,
params
)
{
if
(
!
params
)
{
location
.
href
=
CONSTANT
.
URL
.
BASE_WEB
+
url
;
location
.
href
=
CONSTANT
.
URL
.
WEB
.
BASE
+
url
;
}
const
mixParams
=
Object
.
assign
(
COMMON
.
getUrlParameter
(),
params
);
...
...
@@ -310,7 +310,7 @@ COMMON.checkAuth = function (async = true) {
let
params
=
{};
params
.
sid
=
COMMON
.
getSid
;
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
.
goUrlWithCurrentParams
(
CONSTANT
.
PAGE_NAME
.
LOGIN
);
});
...
...
abvw/common/js/constant.js
View file @
c72bc9e2
...
...
@@ -42,16 +42,24 @@ CONSTANT.ADD_REPORT_FLG = {
};
CONSTANT
.
URL
=
{
CMS
:
{
// 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/'
,
BASE
:
'http://localhost:8080/acms/'
,
API
:
{
BASE
:
'/checkapi/web/'
,
ALL_OPERATION_LIST
:
'operationListWeb/getOperationList'
,
AUTH_SESSION
:
'getSession/checkAuthUser'
,
OPERATION_VIEW_LOG
:
'operationViewLog/saveLog'
,
},
HTML
:
{
BASE
:
'/checkapi/web/html/'
,
TASK_REPORT_LIST
:
'getTaskReport/index'
,
ENTRY_REPORT
:
'getReport???'
,
//未定
OPERATION_VIEW_LOG
:
'operationViewLog/saveLog'
,
},
},
WEB
:
{
BASE
:
'abvw/html/'
,
},
};
CONSTANT
.
LANG
=
{
...
...
abvw/js/operationList/operationList.js
View file @
c72bc9e2
...
...
@@ -53,7 +53,7 @@ OL.getAllDataWeb = function (searchKeyword, sortIndex, searchStartDate, searchEn
param
.
startDate
=
searchStartDate
;
param
.
endDate
=
searchEndDate
;
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
)
{
OL
.
operationList
=
json
.
operationList
;
...
...
@@ -481,7 +481,7 @@ OL.saveOperationReadingLog = function (operationId, operationType, reportType) {
params
.
operationType
=
operationType
;
params
.
reportType
=
reportType
;
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
);
};
...
...
@@ -493,10 +493,10 @@ OL.saveOperationReadingLog = function (operationId, operationType, reportType) {
* @returns url
*/
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'
)
{
return
baseUrl
+
CONSTANT
.
URL
.
TASK_REPORT_LIST
;
return
baseUrl
+
CONSTANT
.
URL
.
CMS
.
HTML
.
TASK_REPORT_LIST
;
}
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