Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
design
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
abookCheck
design
Commits
208ab630
Commit
208ab630
authored
Jun 08, 2021
by
Yujin Seo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#42180 作業一覧対応
・初期JSONファイルロード
parent
ac8179c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
46 deletions
+23
-46
app/script/check.js
+23
-46
No files found.
app/script/check.js
View file @
208ab630
...
...
@@ -36,17 +36,10 @@ CHK.reportBasePath = "./"; // レポートデータのベースパス
//JSONファイルパス
CHK
.
jsonPath
=
{
content
:
"content.json"
,
//コンテンツ
taskHotspot
:
"taskHotspot.json"
,
//ホットスポット
taskReport
:
"taskReport.json"
,
//作業報告
workingGroup
:
"workingGroup.json"
,
//作業者入力マスタ
taskReportSuggest
:
"taskReportSuggest.json"
,
//作業報告入力補完
taskReportQuestion
:
"taskReportQuestion.json"
,
//作業報告設問情報
routineTask
:
"routineTask.json"
,
//定期点検情報
operationGroup
:
"operationGroup.json"
,
//作業報告担当グループ
processInfo
:
"processInfo.json"
,
//連続作業情報
phaseInfo
:
"phaseInfo.json"
,
//連続作業工程情報
phaseStatus
:
"phaseStatus.json"
//連続作業工程状況
operationList
:
"operationList.json"
,
// 作業一覧JSONデータ
operationGroupMasterList
:
"operationGroupMasterList.json"
,
// カテゴリJSONデータ
operationGroupMasterRelationList
:
"operationGroupMasterRelationList.json"
,
// 作業・カテゴリ関係JSONデータ
pushMessageList
:
"pushMessageList.json"
// コミュニケーションデータJSONデータ
};
//アプリ送信用コマンド
CHK
.
apiCmd
=
{
...
...
@@ -286,42 +279,26 @@ CHK.initReport = function(callback) {
*
* @param callback コールバック
*/
CHK
.
initReportApp
=
function
(
callback
)
{
CHK
.
initReportApp
=
function
(
callback
)
{
// 作業一覧JSONデータ
CHK
.
loadJson
(
CHK
.
jsonPath
.
operationList
,
function
(
json
)
{
//作業報告情報をロード
CHK
.
loadJson
(
CHK
.
jsonPath
.
taskReport
,
function
(
taskReport
)
{
CHK
.
taskReport
=
taskReport
;
//ホットスポット情報をロード
CHK
.
loadJson
(
CHK
.
jsonPath
.
taskHotspot
,
function
(
jsonData
)
{
CHK
.
taskHotspot
=
jsonData
;
callback
();
});
});
//作業者グループマスタをロード
CHK
.
loadJson
(
CHK
.
jsonPath
.
workingGroup
,
function
(
workingGroup
)
{
CHK
.
workingGroup
=
workingGroup
;
});
//コンテンツ情報をロード
CHK
.
loadJson
(
CHK
.
jsonPath
.
content
,
function
(
content
)
{
CHK
.
content
=
content
;
//絞り検索グループ情報をロード
CHK
.
loadJson
(
CHK
.
content
.
masterPath
,
function
(
questionAperture
)
{
CHK
.
questionApertureList
=
questionAperture
;
});
});
CHK
.
loadJson
(
CHK
.
jsonPath
.
taskReportSuggest
,
function
(
taskReportSuggest
)
{
CHK
.
taskReportSuggest
=
taskReportSuggest
;
});
//作業報告設問情報をロード
CHK
.
loadJson
(
CHK
.
jsonPath
.
taskReportQuestion
,
function
(
taskReportQuestion
)
{
CHK
.
taskReportQuestion
=
taskReportQuestion
;
});
//担当グループ参照情報の取得
CHK
.
sendABookCheckApi
({
cmd
:
CHK
.
apiCmd
.
getGroupTreeInfo
},
null
);
//作業報告担当グループ情報をロード
CHK
.
loadJson
(
CHK
.
jsonPath
.
operationGroup
,
function
(
operationGroup
)
{
CHK
.
operationGroup
=
operationGroup
;
});
});
// カテゴリJSONデータ
CHK
.
loadJson
(
CHK
.
jsonPath
.
operationGroupMasterList
,
function
(
json
)
{
});
// 作業・カテゴリ関係JSONデータ
CHK
.
loadJson
(
CHK
.
jsonPath
.
operationGroupMasterRelationList
,
function
(
json
)
{
});
// コミュニケーションデータJSONデータ
CHK
.
loadJson
(
CHK
.
jsonPath
.
pushMessageList
,
function
(
json
)
{
});
}
/**
...
...
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