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
6000dac6
Commit
6000dac6
authored
Jul 20, 2021
by
Lee Munkyeong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ソート保存実装と更新ボタン追加
parent
dc13b2c3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
app/index.html
+2
-2
app/script/check.js
+3
-2
No files found.
app/index.html
View file @
6000dac6
...
@@ -109,11 +109,11 @@
...
@@ -109,11 +109,11 @@
<div
class=
"dropdown-menu"
aria-labelledby=
"dropdownMenuButton"
>
<div
class=
"dropdown-menu"
aria-labelledby=
"dropdownMenuButton"
>
<a
class=
"dropdown-item sort-type"
data-sort=
"0"
onclick=
"CHK.changeSortType(this);"
>
作業名順
</a>
<a
class=
"dropdown-item sort-type"
data-sort=
"0"
onclick=
"CHK.changeSortType(this);"
>
作業名順
</a>
<a
class=
"dropdown-item sort-type"
data-sort=
"1"
onclick=
"CHK.changeSortType(this);"
>
作業期間が新しい順
</a>
<a
class=
"dropdown-item sort-type"
data-sort=
"1"
onclick=
"CHK.changeSortType(this);"
>
作業期間が新しい順
</a>
<a
class=
"dropdown-item sort-type active"
data-sort=
"2"
onclick=
"CHK.changeSortType(this);"
>
作業期間が古い順
</a>
<a
class=
"dropdown-item sort-type active"
data-sort=
"2"
id=
"defaultSort"
onclick=
"CHK.changeSortType(this);"
>
作業期間が古い順
</a>
<a
class=
"dropdown-item sort-type"
data-sort=
"3"
onclick=
"CHK.changeSortType(this);"
>
報告タイプ順
</a>
<a
class=
"dropdown-item sort-type"
data-sort=
"3"
onclick=
"CHK.changeSortType(this);"
>
報告タイプ順
</a>
<a
class=
"dropdown-item sort-type"
data-sort=
"4"
onclick=
"CHK.changeSortType(this);"
>
閲覧日が新しい順
</a>
<a
class=
"dropdown-item sort-type"
data-sort=
"4"
onclick=
"CHK.changeSortType(this);"
>
閲覧日が新しい順
</a>
</div>
</div>
<a
href=
"javascript:CHK_L.sendAppCommand('re
freshContent
');"
class=
"text-decoration-none py-2 lht-0 d-inline-block ml-3"
>
<a
href=
"javascript:CHK_L.sendAppCommand('re
setSearch
');"
class=
"text-decoration-none py-2 lht-0 d-inline-block ml-3"
>
<i
class=
"fa fa-times text-dark"
></i>
<i
class=
"fa fa-times text-dark"
></i>
<span
class=
"d-none d-md-inline text-dark fs-10"
>
<span
class=
"d-none d-md-inline text-dark fs-10"
>
リセット
リセット
...
...
app/script/check.js
View file @
6000dac6
...
@@ -137,6 +137,7 @@ CHK.apiCmd = {
...
@@ -137,6 +137,7 @@ CHK.apiCmd = {
goOperation
:
"goOperation"
,
//作業開始
goOperation
:
"goOperation"
,
//作業開始
goPanoramaEdit
:
"goPanoramaEdit"
,
//パノラマ作業資料編集
goPanoramaEdit
:
"goPanoramaEdit"
,
//パノラマ作業資料編集
refreshContent
:
"refreshContent"
,
//新着更新
refreshContent
:
"refreshContent"
,
//新着更新
resetSearch
:
"resetSearch"
,
//検索条件初期化
editAttached
:
"editAttached"
,
//添付ファイル編集
editAttached
:
"editAttached"
,
//添付ファイル編集
saveAttached
:
"saveAttached"
,
//添付ファイル保存
saveAttached
:
"saveAttached"
,
//添付ファイル保存
insertReport
:
"insertTaskReport"
,
//作業報告保存
insertReport
:
"insertTaskReport"
,
//作業報告保存
...
@@ -2803,7 +2804,7 @@ CHK.createCategory = function(operationGroupMasterList) {
...
@@ -2803,7 +2804,7 @@ CHK.createCategory = function(operationGroupMasterList) {
if
(
CHK
.
isIOS
)
{
if
(
CHK
.
isIOS
)
{
sortIndex
=
CHK_iOS
.
getSortType
();
sortIndex
=
CHK_iOS
.
getSortType
();
}
else
if
(
CHK
.
isAndroid
)
{
}
else
if
(
CHK
.
isAndroid
)
{
// TODO: 端末に保存したsortTypeを取得
sortIndex
=
android
.
getSortType
();
}
}
let
sortType
=
document
.
getElementsByClassName
(
"sort-type"
)[
sortIndex
];
let
sortType
=
document
.
getElementsByClassName
(
"sort-type"
)[
sortIndex
];
CHK
.
changeSortType
(
sortType
);
CHK
.
changeSortType
(
sortType
);
...
@@ -2829,7 +2830,7 @@ CHK.createOperationList = function(operationList, isSearched = false) {
...
@@ -2829,7 +2830,7 @@ CHK.createOperationList = function(operationList, isSearched = false) {
if
(
CHK
.
isIOS
)
{
if
(
CHK
.
isIOS
)
{
webkit
.
messageHandlers
.
saveSortType
.
postMessage
(
sortType
);
webkit
.
messageHandlers
.
saveSortType
.
postMessage
(
sortType
);
}
else
if
(
CHK
.
isAndroid
)
{
}
else
if
(
CHK
.
isAndroid
)
{
// TODO: sortTypeを端末に保存
android
.
setSortType
(
sortType
);
}
}
}
}
switch
(
sortType
)
{
switch
(
sortType
)
{
...
...
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