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
14fdd33f
Commit
14fdd33f
authored
Oct 12, 2022
by
Kang Donghun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
コード整理
parent
ed6da03a
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
41 additions
and
16 deletions
+41
-16
abvw/common/js/appCommon/check-common.js
+20
-6
abvw/common/js/appCommon/constant.js
+15
-3
abvw/html/index.html
+4
-4
abvw/js/operationList/operationList.js
+2
-3
No files found.
abvw/common/js/appCommon/check-common.js
View file @
14fdd33f
...
...
@@ -203,9 +203,10 @@ CHK_Common.getUrlParameter = function () {
* @returns sid
*/
CHK_Common
.
getSid
=
function
()
{
return
ClientData
.
userInfo_sid
_local
();
return
ClientData
.
userInfo_sid
();
};
/**
* cms communication
*
...
...
@@ -215,15 +216,27 @@ CHK_Common.getSid = function () {
* @param {Object} callback
* @param {Object} errorCallback
*/
CHK_Common
.
cmsAjax
=
function
(
url
,
param
,
async
=
true
,
callback
,
errorCallback
)
{
CHK_Common
.
cmsAjax
=
function
(
url
,
param
,
async
=
true
,
type
,
dataType
,
callback
,
errorCallback
)
{
var
sysSettings
=
AVWEB
.
avwSysSetting
();
if
(
url
)
{
$
.
ajax
({
type
:
'POST'
,
type
:
type
,
url
:
url
,
data
:
param
,
dataType
:
'json'
,
dataType
:
dataType
,
cache
:
false
,
async
:
async
,
crossDomain
:
true
,
beforeSend
:
function
(
xhr
)
{
/*
* ABook viewer for WEB 用のリクエストヘッダに、以下のヘッダを付加する
* X-AGT-AppId: ABookWebCL
* X-AGT-AppVersion: 0.0.1
*/
xhr
.
setRequestHeader
(
'X-AGT-AppId'
,
sysSettings
.
appName
);
xhr
.
setRequestHeader
(
'X-AGT-AppVersion'
,
sysSettings
.
appVersion
);
},
success
:
function
(
result
)
{
if
(
result
.
status
==
'200'
)
{
if
(
callback
)
callback
(
result
);
...
...
@@ -289,8 +302,9 @@ CHK_Common.postCommunication = function (url, params, method = 'post') {
CHK_Common
.
checkAuth
=
function
(
async
=
true
)
{
let
params
=
{};
params
.
sid
=
CHK_Common
.
getSid
;
const
url
=
CHK_CONSTANT
.
URL
.
BASE_CMS
+
CHK_CONSTANT
.
URL
.
AUTH_SESSION
;
CHK_Common
.
cmsAjax
(
url
,
params
,
async
,
null
,
function
()
{
var
urlPath
=
ClientData
.
userInfo_accountPath
();
const
url
=
CHK_CONSTANT
.
URL
.
BASE_CMS
+
urlPath
+
CHK_CONSTANT
.
URL
.
BASE_CHECKAPI
+
CHK_CONSTANT
.
URL
.
AUTH_SESSION
;
CHK_Common
.
cmsAjax
(
url
,
params
,
async
,
CONSTANT
.
API_TYPE
.
GET
,
CONSTANT
.
DATA_TYPE
.
TEXT
,
function
()
{
CHK_Common
.
goUrlWithCurrentParams
(
CHK_CONSTANT
.
PAGE_NAME
.
LOGIN
);
});
};
abvw/common/js/appCommon/constant.js
View file @
14fdd33f
...
...
@@ -46,12 +46,24 @@ CHK_CONSTANT.ADD_REPORT_FLG = {
};
CHK_CONSTANT
.
URL
=
{
BASE_CMS
:
'https://'
+
location
.
host
+
'/checkapi/web/'
,
// BASE_CMS: 'https://' + location.host + '/checkapi/web/',
BASE_CMS
:
'http://localhost:8080/acms/'
,
BASE_CHECKAPI
:
'/checkapi/web/'
,
BASE_WEB
:
'abvw/html/'
,
ALL_OPERATION_LIST
:
'operationL
I
stWeb/getOperationList'
,
AUTH_SESSION
:
'get
s
ession/checkAuthUser'
,
ALL_OPERATION_LIST
:
'operationL
i
stWeb/getOperationList'
,
AUTH_SESSION
:
'get
S
ession/checkAuthUser'
,
};
CONSTANT
.
API_TYPE
=
{
POST
:
'post'
,
GET
:
'get'
}
CONSTANT
.
DATA_TYPE
=
{
TEXT
:
'text'
,
JSON
:
'json'
,
}
CHK_CONSTANT
.
LANG
=
{
SAVE_NAME
:
'lang'
,
JAPAN
:
'ja'
,
...
...
abvw/html/index.html
View file @
14fdd33f
...
...
@@ -14,17 +14,17 @@
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/abvw/common/css/appCommon/app.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/abvw/common/css/appCommon/fontawesome_relative_path.css"
>
<script
src=
"/abvw/common/js/appCommon/constant.js?__UPDATEID__"
></script>
<script
src=
"/abvw/common/js/jquery/jquery-3.6.0.min.js?__UPDATEID__"
></script>
<script
src=
"/abvw/common/js/jquery/jquery-ui.min.js?__UPDATEID__"
></script>
<script
src=
"/abvw/common/js/web/common.js?__UPDATEID__"
></script>
<script
src=
"/abvw/common/js/web/avweb.js?__UPDATEID__"
></script>
<script
src=
"/abvw/common/js/appCommon/constant.js?__UPDATEID__"
></script>
<script
src=
"/abvw/common/js/appCommon/check-common.js?__UPDATEID__"
></script>
<script
src=
"/abvw/js/operationList/operationList.js?__UPDATEID__"
></script>
<script
src=
"/abvw/js/topPage/topPage.js?__UPDATEID__"
></script>
<script
src=
"/abvw/js/dashboardSetting/check-dashboard-setting.js?__UPDATEID__"
></script>
<script
src=
"/abvw/js/dashboard/check-dashboard.js?__UPDATEID__"
></script>
<script
src=
"/abvw/common/js/appCommon/check-footer.js?__UPDATEID__"
></script>
<script
src=
"/abvw/common/js/appCommon/check-common.js?__UPDATEID__"
></script>
<script
src=
"/abvw/common/js/web/common.js?__UPDATEID__"
></script>
<script
src=
"/abvw/common/js/web/avweb.js?__UPDATEID__"
></script>
<script
src=
"/abvw/common/js/appCommon/app.js?__UPDATEID__"
defer
></script>
</head>
...
...
abvw/js/operationList/operationList.js
View file @
14fdd33f
...
...
@@ -53,10 +53,9 @@ CHK_OL.getAllDataWeb = function (searchKeyword, sortIndex, searchStartDate, sear
param
.
startDate
=
searchStartDate
;
param
.
endDate
=
searchEndDate
;
param
.
operationGroupMasterId
=
operationGroupMasterId
;
const
url
=
CHK_CONSTANT
.
URL
.
BASE_CMS
+
ClientData
.
userInfo_accountPath
()
+
CHK_CONSTANT
.
URL
.
BASE_CHECKAPI
+
CHK_CONSTANT
.
URL
.
ALL_OPERATION_LIST
;
const
url
=
CHK_CONSTANT
.
URL
.
BASE_CMS
+
CHK_CONSTANT
.
URL
.
ALL_OPERATION_LIST
;
CHK_Common
.
cmsAjax
(
url
,
param
,
false
,
function
(
json
)
{
CHK_Common
.
cmsAjax
(
url
,
param
,
false
,
CONSTANT
.
API_TYPE
.
GET
,
CONSTANT
.
DATA_TYPE
.
JSON
,
function
(
json
)
{
CHK_OL
.
operationList
=
json
.
operationList
;
CHK_OL
.
operationGroupMaster
=
json
.
operationGroupMasterList
;
CHK_OL
.
isOperationGroupMaster
=
json
.
isOperationGroupMaster
;
...
...
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