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
e6cb63f9
Commit
e6cb63f9
authored
Jun 29, 2021
by
Takatoshi Miura
Browse files
Options
Browse Files
Download
Plain Diff
Merge commit '
50e2553c
' into feature/1.4.0_miura
parents
87292941
50e2553c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
58 additions
and
19 deletions
+58
-19
app/index.html
+3
-7
app/script/check-list.js
+2
-1
app/script/check.js
+53
-11
No files found.
app/index.html
View file @
e6cb63f9
...
...
@@ -10,7 +10,6 @@
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/app.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/fontawesome_relative_path.css"
>
<script
src=
"js/jquery-1.11.2.min.js?__UPDATEID__"
></script>
<script
src=
"script/check.js?__UPDATEID__"
></script>
<script
src=
"script/check-list.js?__UPDATEID__"
></script>
...
...
@@ -21,8 +20,8 @@
<body
onload=
"CHK_L.init();"
>
<header>
<nav
class=
"navbar navbar-dark bg-primary"
>
<a
class=
"navbar-brand category-btn lht-0"
href=
"#"
>
<i
class=
"fa fa-folder fs-12 p-1"
></i>
<a
class=
"navbar-brand category-btn lht-0"
href=
"#"
>
<i
class=
"fa fa-folder fs-12 p-1"
id=
"category-toggle-button"
></i>
<span
class=
"d-none d-md-inline fs-10"
>
カテゴリー
</span>
</a>
</nav>
...
...
@@ -43,10 +42,7 @@
<main>
<nav
aria-label=
"breadcrumb"
>
<ol
class=
"breadcrumb border-bottom px-0"
>
<li
class=
"breadcrumb-item"
><a
href=
"#"
class=
"text-decoration-none text-dark"
>
すべて
</a></li>
<li
class=
"breadcrumb-item"
><a
href=
"#"
class=
"text-decoration-none text-dark"
>
カテゴリー名
</a></li>
<li
class=
"breadcrumb-item active"
aria-current=
"page"
><span
class=
"text-dark"
>
サブカテゴリー名
</span></li>
<ol
class=
"breadcrumb border-bottom px-0"
id=
"groupMasterPath"
>
</ol>
</nav>
...
...
app/script/check-list.js
View file @
e6cb63f9
...
...
@@ -239,11 +239,12 @@ CHK_L.updateList = function() {
* アプリにコマンド送信
* @param {any} command
*/
CHK_L
.
sendAppCommand
=
function
(
command
,
operationId
,
contentId
)
{
CHK_L
.
sendAppCommand
=
function
(
command
,
operationId
,
contentId
,
operationGroupMasterId
)
{
var
param
=
{};
param
.
cmd
=
CHK
.
getCommand
(
command
);
param
.
operationId
=
operationId
;
param
.
contentId
=
contentId
;
param
.
operationGroupMasterId
=
operationGroupMasterId
;
CHK
.
sendABookCheckApi
(
param
);
}
...
...
app/script/check.js
View file @
e6cb63f9
...
...
@@ -43,6 +43,7 @@ CHK.pushMessage; //コミュニケーションデータ
var
pageLang
;
// ページ設定言語
var
msgMap
=
{
// velocity?
all
:{
ja
:
"全て"
,
ko
:
"전체"
,
en
:
"All"
},
inputLoginInfo
:
{
ja
:
"ログイン情報を入力してください"
,
ko
:
"로그인 정보를 입력해주세요."
,
en
:
"Please enter your login information"
},
txtLoginAccPath
:
{
ja
:
"アカウントパス"
,
ko
:
"사업자경로"
,
en
:
"Account path"
},
txtLoginId
:
{
ja
:
"ログインID"
,
ko
:
"아이디"
,
en
:
"ID"
},
...
...
@@ -149,7 +150,8 @@ CHK.apiCmd = {
localSave
:
"localSaveTaskReport"
,
//ローカル保存
changeReport
:
"changeTaskReport"
,
//報告レポート変更
getGroupTreeInfo
:
"getGroupTreeInfo"
,
//担当グループ参照用 ログインユーザーが所属しているグループ取得
deleteProcess
:
"deleteProcess"
deleteProcess
:
"deleteProcess"
,
changeOperationGroupMaster
:
"changeOperationGroupMaster"
};
//CMS送信用コマンド
CHK
.
actCmd
=
{
...
...
@@ -380,6 +382,7 @@ CHK.initReport = function(callback) {
* @param callback コールバック
*/
CHK
.
initReportApp
=
function
(
callback
)
{
CHK
.
isSearched
=
false
;
// 作業一覧JSONデータ
CHK
.
loadJson
(
CHK
.
jsonPath
.
operationList
,
function
(
json
)
{
CHK
.
operation
=
json
;
...
...
@@ -393,9 +396,6 @@ CHK.initReportApp = function (callback) {
// カテゴリーJSONデータ
CHK
.
loadJson
(
CHK
.
jsonPath
.
operationGroupMasterList
,
function
(
json
)
{
if
(
CHK
.
isAndroid
)
{
$
(
'.group-category-list'
).
remove
();
}
CHK
.
operationGroupMaster
=
json
;
//カテゴリー設定
CHK
.
createCategory
(
CHK
.
operationGroupMaster
.
operationGroupMasterList
);
...
...
@@ -2737,30 +2737,43 @@ CHK.showWhiteFrame = function() {
* カテゴリー設定
*/
CHK
.
createCategory
=
function
(
operationGroupMasterList
)
{
if
(
CHK
.
isAndroid
)
{
$
(
'.group-category-list'
).
remove
();
$
(
"#groupMasterPath"
).
empty
();
if
(
typeof
CHK
.
operationGroupMasterId
==
'undefined'
||
CHK
.
operationGroupMasterId
==
0
)
{
$
(
"#groupMasterPath"
).
append
(
'<li class="breadcrumb-item"><a href="#" class="text-decoration-none text-dark">'
+
getMsg
(
"all"
)
+
'</a></li>'
);
}
else
{
$
(
"#groupMasterPath"
).
append
(
'<li class="breadcrumb-item"><a href="#" class="text-decoration-none text-dark">'
+
CHK
.
operationGroupMasterId
+
'</a></li>'
);
}
}
//パンくずリスト初期表示(全体)
$
(
'.breadcrumb li'
).
eq
(
1
).
hide
();
$
(
'.breadcrumb li'
).
eq
(
2
).
hide
();
//サイドメニューカテゴリー構造作成
operationGroupMasterList
.
sort
((
a
,
b
)
=>
(
a
.
operationGroupMasterId
>
b
.
operationGroupMasterId
)
?
1
:
-
1
);
var
noCategory
=
$
(
"<dl id='groupMasterId_0' class='group-category-list'><dt><a onclick='CHK.changeOperationGroupMaster(0);'>全て</a></dt></dl>"
);
$
(
'#category-menu'
).
append
(
noCategory
);
//TODO operationGroupMasterId順番と深さの仕様確認要
for
(
var
i
=
0
;
i
<
operationGroupMasterList
.
length
;
i
++
)
{
if
(
operationGroupMasterList
[
i
].
operationGroupMasterLevel
==
0
){
//0 : カテゴリー全体
var
categoryParent
=
$
(
"<dl id=groupMasterId_"
+
operationGroupMasterList
[
i
].
operationGroupMasterId
+
" class='group-category-list'><dt class='menu-ttl'><a
href='
'>"
+
operationGroupMasterList
[
i
].
operationGroupMasterName
+
"</a></dt></dl>"
);
var
categoryParent
=
$
(
"<dl id=groupMasterId_"
+
operationGroupMasterList
[
i
].
operationGroupMasterId
+
" class='group-category-list'><dt class='menu-ttl'><a
onclick='CHK.changeOperationGroupMaster("
+
operationGroupMasterList
[
i
].
operationGroupMasterId
+
");
'>"
+
operationGroupMasterList
[
i
].
operationGroupMasterName
+
"</a></dt></dl>"
);
$
(
'#category-menu'
).
append
(
categoryParent
);
}
else
{
if
(
$
(
'#groupMasterId_'
+
operationGroupMasterList
[
i
].
parentOperationGroupMasterId
).
length
>
0
){
var
categoryChild
;
if
(
$
(
'#groupMasterId_'
+
operationGroupMasterList
[
i
].
parentOperationGroupMasterId
+
'>dd'
).
length
>
0
){
categoryChild
=
$
(
"<li class='drawer-menu2'><a
href='
'>"
+
operationGroupMasterList
[
i
].
operationGroupMasterName
+
"</a></li>"
);
categoryChild
=
$
(
"<li class='drawer-menu2'><a
onclick='CHK.changeOperationGroupMaster("
+
operationGroupMasterList
[
i
].
operationGroupMasterId
+
");
'>"
+
operationGroupMasterList
[
i
].
operationGroupMasterName
+
"</a></li>"
);
$
(
'#groupMasterId_'
+
operationGroupMasterList
[
i
].
parentOperationGroupMasterId
+
' >dd >ul'
).
append
(
categoryChild
);
}
else
{
categoryChild
=
$
(
"<dd style='display:none;'><ul class='drawer-menu2 menu-link'><li class='drawer-menu2'><a
href='
'>"
+
operationGroupMasterList
[
i
].
operationGroupMasterName
+
"</a></li></ul></dd>"
);
categoryChild
=
$
(
"<dd style='display:none;'><ul class='drawer-menu2 menu-link'><li class='drawer-menu2'><a
onclick='CHK.changeOperationGroupMaster("
+
operationGroupMasterList
[
i
].
operationGroupMasterId
+
");
'>"
+
operationGroupMasterList
[
i
].
operationGroupMasterName
+
"</a></li></ul></dd>"
);
$
(
'#groupMasterId_'
+
operationGroupMasterList
[
i
].
parentOperationGroupMasterId
).
append
(
categoryChild
);
}
}
}
}
acdMenu
();
};
/**
...
...
@@ -2821,7 +2834,7 @@ CHK.createOperationList = function(operationList, isSearched = false) {
}
};
/**
/**
Oper
* Date表示(yyyy/MM/dd)hh以下省略
*/
function
setOperationDate
(
date
){
...
...
@@ -2838,9 +2851,10 @@ CHK.search = function() {
var
searchEndDate
=
$
(
"#searchEndDate"
).
val
();
var
searchResult
;
if
(
CHK
.
isAndroid
)
{
searchResult
=
JSON
.
parse
(
android
.
searchOperationList
(
searchKeyword
,
searchStartDate
,
searchEndDate
));
CHK
.
operation
.
searchOperationList
=
searchResult
.
operationList
;
CHK
.
createOperationList
(
searchResult
.
operationList
,
true
);
searchResult
=
JSON
.
parse
(
android
.
searchOperationList
(
searchKeyword
,
searchStartDate
,
searchEndDate
,
CHK
.
operationGroupMasterId
));
CHK
.
isSearched
=
true
;
CHK
.
operation
.
searchOperationList
=
searchResult
.
operationList
;
CHK
.
createOperationList
(
searchResult
.
operationList
);
}
};
...
...
@@ -2848,4 +2862,31 @@ CHK.changeSortType = function(sortType) {
$
(
".sort-type"
).
removeClass
(
"active"
);
$
(
sortType
).
addClass
(
"active"
);
CHK
.
createOperationList
(
CHK
.
operation
.
operationList
,
true
);
}
// カテゴリーのドロワーメニュー開閉
function
acdMenu
()
{
//デフォルトでアコーディオンの中身を非表示
$
(
".drawer-menu dd"
).
css
(
"display"
,
"none"
);
$
(
".drawer-menu2 ul"
).
css
(
"display"
,
"none"
);
//第2階層のアコーディオン
$
(
".drawer-menu dt"
).
on
(
'click'
,
function
()
{
$
(
".drawer-menu dt"
).
not
(
this
).
removeClass
(
"open"
).
next
().
slideUp
(
"fast"
);
$
(
this
).
toggleClass
(
"open"
).
next
().
slideToggle
(
"fast"
);
});
//第3階層のアコーディオン
$
(
".drawer-menu2 p"
).
on
(
'click'
,
function
()
{
$
(
".drawer-menu2 p"
).
not
(
this
).
removeClass
(
"openAcd"
).
next
().
slideUp
(
"fast"
);
$
(
this
).
toggleClass
(
"openAcd"
).
next
().
slideToggle
(
"fast"
);
});
}
CHK
.
changeOperationGroupMaster
=
function
(
operationGroupMasterId
)
{
$
(
'#category-toggle-button'
).
click
();
CHK
.
operationGroupMasterId
=
operationGroupMasterId
;
CHK
.
createCategory
(
CHK
.
operationGroupMaster
.
operationGroupMasterList
);
CHK
.
search
();
>>>>>>>
b490414db771026a829ef8f0183adfbe52b262fd
}
\ No newline at end of file
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