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
e36f1266
Commit
e36f1266
authored
Aug 30, 2021
by
Lee Munkyeong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
カテゴリーオプション化
parent
0dcc98c4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
2 deletions
+38
-2
app/css/app.css
+2
-1
app/index.html
+1
-1
app/script/check.js
+35
-0
No files found.
app/css/app.css
View file @
e36f1266
...
...
@@ -10250,7 +10250,8 @@ input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-
.navbar
{
position
:
relative
;
padding
:
.5rem
1rem
padding
:
.5rem
1rem
;
height
:
50px
;
}
.navbar
,
.navbar
.container
,
.navbar
.container-fluid
,
.navbar
.container-lg
,
.navbar
.container-md
,
.navbar
.container-sm
,
.navbar
.container-xl
{
...
...
app/index.html
View file @
e36f1266
...
...
@@ -20,7 +20,7 @@
<body
onload=
"CHK_L.init();"
style=
"position: relative; margin-top: 53px;"
>
<header
style=
"position: fixed; width: 100%; top: 0px; left: 0; z-index: 999;"
>
<nav
class=
"navbar navbar-dark bg-primary"
>
<a
class=
"navbar-brand category-btn lht-0"
href=
"javascript:CHK.setCategoryHeight();"
>
<a
class=
"navbar-brand category-btn lht-0
d-none"
id=
"operationGroupMasterButton
"
href=
"javascript:CHK.setCategoryHeight();"
>
<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>
...
...
app/script/check.js
View file @
e36f1266
...
...
@@ -288,6 +288,7 @@ CHK.initCommon = function() {
CHK
.
isAndroid
=
urlParam
.
app
&&
urlParam
.
app
==
"android"
;
CHK
.
isIOS
=
urlParam
.
app
&&
urlParam
.
app
==
"ios"
;
CHK
.
isRFIDBarcodeScan
=
urlParam
.
isRFIDBarcodeScan
&&
urlParam
.
isRFIDBarcodeScan
==
"1"
;
CHK
.
isOperationGroupMaster
=
urlParam
.
isOperationGroupMaster
&&
urlParam
.
isOperationGroupMaster
==
"1"
;
CHK
.
sortIndex
=
urlParam
.
sortIndex
;
// ウェブの場合、作業一覧の表示広さを変更
if
(
CHK
.
isWeb
)
{
...
...
@@ -302,6 +303,9 @@ CHK.initCommon = function() {
if
(
CHK
.
isIOS
&&
CHK
.
isRFIDBarcodeScan
)
{
$
(
"#rfidScanButton"
).
removeClass
(
"d-none"
);
}
if
(
CHK
.
isOperationGroupMaster
)
{
$
(
"#operationGroupMasterButton"
).
removeClass
(
"d-none"
);
}
CHK
.
debug
=
urlParam
.
debug
;
CHK
.
isMobile
=
urlParam
.
mobile_flg
&&
urlParam
.
mobile_flg
==
"1"
;
...
...
@@ -2860,10 +2864,41 @@ CHK.changeSortType = function(sortType) {
* 作業一覧描画
*/
CHK
.
createOperationList
=
function
(
operationList
,
isSearched
=
false
)
{
var
searchKeyword
=
$
(
"#searchTaskName"
).
val
();
var
searchStartDate
=
$
(
"#searchStartDate"
).
val
();
var
searchEndDate
=
$
(
"#searchEndDate"
).
val
();
var
operationGroupMasterId
=
CHK
.
operationGroupMasterId
;
$
(
'#operationTable'
).
empty
();
if
(
isSearched
)
{
operationList
=
CHK
.
operation
.
searchOperationList
;
}
operationList
=
operationList
.
filter
(
function
(
operation
)
{
var
result
=
true
;
if
(
searchKeyword
.
length
)
{
result
=
result
*
operation
.
operationName
.
includes
(
searchKeyword
);
}
if
(
searchStartDate
.
length
&&
!
searchEndDate
.
length
)
{
result
=
result
*
(
operation
.
operationStartDate
>=
searchStartDate
);
}
if
(
searchEndDate
.
length
&&
!
searchStartDate
.
length
)
{
result
=
result
*
(
operation
.
operationEndDate
<=
searchEndDate
);
}
if
(
searchStartDate
.
length
&&
searchEndDate
.
length
)
{
result
=
result
*
((
operation
.
operationStartDate
<=
searchEndDate
)
&&
(
operation
.
operationEndDate
>=
searchStartDate
));
}
if
(
operationGroupMasterId
!=
0
)
{
var
operationGroupMasterIdList
=
CHK
.
operationGroupMasterRelation
.
operationGroupMasterRelationList
.
filter
(
function
(
operationGroupMasterRelation
)
{
return
operationGroupMasterRelation
.
operationId
==
operation
.
operationId
;
})
result
=
result
*
operationGroupMasterIdList
.
filter
(
function
(
operationGroupMaster
){
return
operationGroupMaster
.
operationGroupMasterId
==
operationGroupMasterId
;
}).
length
;
}
return
result
;
})
if
(
operationList
.
length
>
1
)
{
var
sortType
=
$
(
".sort-type.active"
).
data
(
"sort"
);
if
(
isSearched
)
{
...
...
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