Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1c1cdc9c
authored
May 21, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'AI_V1.0.0' of
http://192.168.3.233:8090/saas_plus/dj-car-boutique-…
…work-wechat into AI_V1.0.0
2 parents
b04df3c9
1c8f0d7d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
12 deletions
packageEquity/pages/employeeInspection/employeeInspection.js
packageEquity/pages/employeeInspection/employeeInspection.js
View file @
1c1cdc9
...
...
@@ -62,15 +62,14 @@ Page({
let
tempList
=
isReset
?
data
?.
list
:
this
.
data
.
inspectList
.
concat
(
data
?.
list
)
tempList
.
map
(
e
=>
{
if
(
e
.
seconds
)
e
.
_seconds
=
this
.
formatTime
(
e
.
seconds
)
e
.
tempServer
=
e
.
serviceList
.
slice
(
0
,
5
)
e
.
tempServer
=
e
.
serviceList
.
slice
(
0
,
5
)
})
this
.
setData
({
inspectList
:
tempList
,
pageNum
:
pageNum
+
1
,
total
:
data
?.
total
,
nothing
:
data
?.
total
==
(
tempList
.
length
-
1
),
})
console
.
log
(
this
.
data
.
pageNum
)
}
else
{
wx
.
$util
.
showToast
(
message
)
}
...
...
@@ -166,6 +165,12 @@ Page({
})
},
scrollonReachBottom
()
{
let
{
pageNum
}
=
this
.
data
this
.
setData
({
pageNum
:
pageNum
+
1
,
})
this
.
getList
()
},
storeConfirm
(
e
)
{
...
...
@@ -214,22 +219,24 @@ Page({
tempList
}
=
this
.
data
,
list
=
arr
?
arr
:
selectedYqMerchantList
;
let
res
=
list
.
find
(
item
=>!
item
.
merchantNo
)
if
(
!
res
){
tempList
[
0
].
active
=
false
}
tempList
.
forEach
(
val
=>
{
list
.
forEach
(
v
=>
{
// if (list.length == 1 && list[0].merchantName == '全部') {
// val.active = false
// }
if
(
v
.
merchantNo
==
val
.
merchantNo
)
{
val
.
active
=
v
.
active
}
})
})
let
res
=
false
;
tempList
.
forEach
(
item
=>
{
if
(
item
.
merchantName
!==
'全部'
&&
item
.
active
)
{
res
=
true
}
})
if
(
!
res
)
{
tempList
[
0
].
active
=
true
}
else
{
tempList
[
0
].
active
=
false
}
if
(
arr
)
{
this
.
setData
({
tempList
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment