Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
business-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1f2549fa
authored
Aug 28, 2023
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改deepclone写法
1 parent
b86c83ed
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
pages/tab/outputValue/components/ScreenConfirmBox/ScreenConfirmBox.js
pages/tab/outputValue/components/employees/employess.js
pages/tab/outputValue/components/ScreenConfirmBox/ScreenConfirmBox.js
View file @
1f2549f
...
@@ -97,7 +97,7 @@ Component({
...
@@ -97,7 +97,7 @@ Component({
changeMerchantRange
(
e
)
{
changeMerchantRange
(
e
)
{
let
{
merchantRange
,
subIndex
,
formData
}
=
this
.
data
let
{
merchantRange
,
subIndex
,
formData
}
=
this
.
data
let
{
merchantId
}
=
e
.
detail
let
{
merchantId
}
=
e
.
detail
this
.
reset
()
this
.
reset
(
''
,
false
)
merchantRange
.
forEach
((
item
,
index
)
=>
{
merchantRange
.
forEach
((
item
,
index
)
=>
{
item
.
show
=
true
item
.
show
=
true
if
(
item
.
merchantId
==
merchantId
)
{
if
(
item
.
merchantId
==
merchantId
)
{
...
@@ -242,11 +242,13 @@ Component({
...
@@ -242,11 +242,13 @@ Component({
this
.
setData
({
screenConfirmFlag
:
false
})
this
.
setData
({
screenConfirmFlag
:
false
})
}
}
},
},
reset
()
{
reset
(
e
,
isresetTime
=
true
)
{
let
{
formData
,
userInfo
,
sceneList
,
staffList
,
tabType
,
merchantRange
,
subIndex
}
=
this
.
data
let
{
formData
,
userInfo
,
sceneList
,
staffList
,
tabType
,
merchantRange
,
subIndex
}
=
this
.
data
formData
.
partnerMerchantIds
=
[
userInfo
.
subLoginUser
.
merchantId
]
formData
.
partnerMerchantIds
=
[
userInfo
.
subLoginUser
.
merchantId
]
formData
.
startTime
=
''
if
(
isresetTime
)
{
formData
.
endTime
=
''
formData
.
startTime
=
''
formData
.
endTime
=
''
}
// this.setDate()
// this.setDate()
this
.
setData
({
this
.
setData
({
isShowCalendarMonth
:
false
isShowCalendarMonth
:
false
...
...
pages/tab/outputValue/components/employees/employess.js
View file @
1f2549f
...
@@ -106,12 +106,12 @@ Component({
...
@@ -106,12 +106,12 @@ Component({
}
}
let
{
pageNum
,
pageSize
,
merchantOutputValuesPageSize
,
nothing
,
isAsk
,
dataList
}
=
_this
.
data
let
{
pageNum
,
pageSize
,
merchantOutputValuesPageSize
,
nothing
,
isAsk
,
dataList
}
=
_this
.
data
const
thisPage
=
wx
.
$router
.
getPageInstance
()
const
thisPage
=
wx
.
$router
.
getPageInstance
()
let
params
=
Util
.
deepClone
({
let
params
=
JSON
.
parse
(
JSON
.
stringify
({
pageNum
,
pageNum
,
pageSize
,
pageSize
,
merchantOutputValuesPageSize
,
merchantOutputValuesPageSize
,
...
thisPage
.
data
.
screenFormData
...
thisPage
.
data
.
screenFormData
})
})
)
delete
params
.
shopMerchantNames
delete
params
.
shopMerchantNames
delete
params
.
sceneType
// 删除场景参数
delete
params
.
sceneType
// 删除场景参数
let
month
=
new
Date
().
getMonth
()
+
1
let
month
=
new
Date
().
getMonth
()
+
1
...
...
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