Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
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 1f75a873
authored
Apr 20, 2024
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修改
1 parent
c22777c7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
0 deletions
src/views/systemConfig/ShopConfig/shopSet.vue
src/views/systemConfig/ShopConfig/shopSet.vue
View file @
1f75a87
...
@@ -374,6 +374,33 @@ export default {
...
@@ -374,6 +374,33 @@ export default {
}
}
},
},
watch
:
{
sellerMerchantStaffList
:
{
handler
()
{
this
.
checkSelectOption
()
},
deep
:
true
},
serviceBossList
:
{
handler
()
{
this
.
checkSelectOption
()
},
deep
:
true
},
supervisionOptionsList
:
{
handler
()
{
this
.
checkSelectOption
()
},
deep
:
true
},
residentManagerOptionsList
:
{
handler
()
{
this
.
checkSelectOption
()
},
deep
:
true
},
},
components
:
{},
components
:
{},
computed
:
{},
computed
:
{},
...
@@ -414,6 +441,8 @@ export default {
...
@@ -414,6 +441,8 @@ export default {
if
(
!
this
.
form
.
shopMerchantConfig
)
{
if
(
!
this
.
form
.
shopMerchantConfig
)
{
this
.
form
.
shopMerchantConfig
=
{
boutiqueDirectorUserId
:
''
,
quotationDirectorUserId
:
''
,
boutiqueSunshineInspiration
:
''
,
quotationSunshineInspiration
:
''
,
boutiqueMarketInspiration
:
''
,
quotationMarketInspiration
:
''
,
boutiqueServiceDirectorUserId
:
''
,
quotationServiceDirectorUserId
:
''
}
this
.
form
.
shopMerchantConfig
=
{
boutiqueDirectorUserId
:
''
,
quotationDirectorUserId
:
''
,
boutiqueSunshineInspiration
:
''
,
quotationSunshineInspiration
:
''
,
boutiqueMarketInspiration
:
''
,
quotationMarketInspiration
:
''
,
boutiqueServiceDirectorUserId
:
''
,
quotationServiceDirectorUserId
:
''
}
}
}
// 对比下拉框是否存在已选的选择项 不存在清空
this
.
checkSelectOption
()
console
.
log
(
this
.
form
)
console
.
log
(
this
.
form
)
if
(
this
.
form
.
list
&&
this
.
form
.
list
.
length
>
0
)
{
if
(
this
.
form
.
list
&&
this
.
form
.
list
.
length
>
0
)
{
this
.
form
.
list
=
this
.
form
.
list
.
map
(
item
=>
{
this
.
form
.
list
=
this
.
form
.
list
.
map
(
item
=>
{
...
@@ -429,6 +458,27 @@ export default {
...
@@ -429,6 +458,27 @@ export default {
})
})
},
},
checkSelectOption
()
{
let
_form
=
this
.
form
let
selectItemKey
=
[
{
item
:
'areaSupervision'
,
optionsList
:
'supervisionOptionsList'
,
key
:
'userId'
},
{
item
:
'residentManager'
,
optionsList
:
'residentManagerOptionsList'
,
key
:
'userId'
},
{
item
:
'boutiqueServiceDirectorUserId'
,
optionsList
:
'serviceBossList'
},
{
item
:
'quotationServiceDirectorUserId'
,
optionsList
:
'serviceBossList'
},
{
item
:
'boutiqueDirectorUserId'
,
optionsList
:
'sellerMerchantStaffList'
},
{
item
:
'quotationDirectorUserId'
,
optionsList
:
'sellerMerchantStaffList'
}
]
selectItemKey
.
map
(
val
=>
{
if
(
typeof
_form
[
val
.
item
]
==
'object'
)
{
let
index
=
this
[
val
.
optionsList
]?.
findIndex
(
subV
=>
subV
.
userId
==
_form
[
val
.
item
]?.
userId
)
if
(
index
<
0
)
this
.
$set
(
this
.
form
,
val
.
item
,
{})
}
else
{
let
index
=
this
[
val
.
optionsList
]?.
findIndex
(
subV
=>
subV
.
userId
==
_form
?.
shopMerchantConfig
?.[
val
.
item
])
if
(
index
<
0
)
this
.
$set
(
this
.
form
.
shopMerchantConfig
,
val
.
item
,
''
)
}
})
},
handleAddMerchant
()
{
handleAddMerchant
()
{
this
.
options
=
[]
this
.
options
=
[]
this
.
form
.
list
.
push
({
this
.
form
.
list
.
push
({
...
...
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