Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-settings
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 fa1a1636
authored
Apr 15, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'kuangyq_dev_2.1.0' into 'v2.1.0'
Kuangyq dev 2.1.0 See merge request
!30
2 parents
26337c45
18516896
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
src/views/baseInfo/editInfo.vue
src/views/role/create.vue
src/views/baseInfo/editInfo.vue
View file @
fa1a163
...
@@ -105,7 +105,7 @@ export default {
...
@@ -105,7 +105,7 @@ export default {
async
getUserInfo
()
{
async
getUserInfo
()
{
this
.
businessType
=
await
this
.
$apis
.
store
.
findAllDictData
({
dictType
:
'business_type'
})
this
.
businessType
=
await
this
.
$apis
.
store
.
findAllDictData
({
dictType
:
'business_type'
})
const
infoForm
=
await
this
.
$apis
.
store
.
findMerchantBaseInfo
({
merchantId
:
this
.
$globalState
.
session
.
merchantId
})
const
infoForm
=
await
this
.
$apis
.
store
.
findMerchantBaseInfo
({
merchantId
:
this
.
$globalState
.
session
.
merchantId
})
const
{
merchantAddress
,
provinceName
,
cityName
,
provinceCode
,
cityCode
,
lng
,
lat
,
id
,
merchantName
,
businessType
,
bussinessTime
,
bussinessBegintime
,
bussinessEndtime
,
channelId
,
merchantNo
,
merchantBrandMain
}
=
infoForm
const
{
merchantAddress
,
provinceName
,
residentPhone
,
cityName
,
provinceCode
,
cityCode
,
lng
,
lat
,
id
,
merchantName
,
businessType
,
bussinessTime
,
bussinessBegintime
,
bussinessEndtime
,
channelId
,
merchantNo
,
merchantBrandMain
}
=
infoForm
this
.
infoForm
=
{
this
.
infoForm
=
{
merchantAddress
,
merchantAddress
,
lng
,
lng
,
...
@@ -120,7 +120,8 @@ export default {
...
@@ -120,7 +120,8 @@ export default {
provinceName
,
provinceName
,
cityName
,
cityName
,
provinceCode
,
provinceCode
,
cityCode
cityCode
,
residentPhone
}
}
if
(
!
businessType
)
{
if
(
!
businessType
)
{
this
.
infoForm
.
businessType
=
[
1
,
2
,
3
,
4
,
5
,
6
]
this
.
infoForm
.
businessType
=
[
1
,
2
,
3
,
4
,
5
,
6
]
...
...
src/views/role/create.vue
View file @
fa1a163
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<div
class=
"main_widget"
>
<div
class=
"main_widget"
>
<el-form
:model=
"ruleForm"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"100px"
class=
"demo-ruleForm"
>
<el-form
:model=
"ruleForm"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"100px"
class=
"demo-ruleForm"
>
<el-form-item
v-if=
"pageType == 'create' && accountLevel != 4"
label=
"所属商户"
prop=
"merchantId"
>
<el-form-item
v-if=
"pageType == 'create' && accountLevel != 4"
label=
"所属商户"
prop=
"merchantId"
>
<el-select
size=
"small"
style=
"width: 40%"
v-model=
"ruleForm.merchantId"
clearable
filterable
placeholder=
"请选择"
@
change=
"
selectMerchant
"
>
<el-select
size=
"small"
style=
"width: 40%"
v-model=
"ruleForm.merchantId"
clearable
filterable
placeholder=
"请选择"
@
change=
"
merchantChange
"
>
<el-option
v-for=
"item in merchantList"
:key=
"item.id"
:label=
"item.merchantName"
:value=
"item.id"
></el-option>
<el-option
v-for=
"item in merchantList"
:key=
"item.id"
:label=
"item.merchantName"
:value=
"item.id"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
...
@@ -316,6 +316,11 @@ export default {
...
@@ -316,6 +316,11 @@ export default {
return
return
}
}
this
.
$router
.
push
(
'/role/index'
)
this
.
$router
.
push
(
'/role/index'
)
},
// 修改商户
merchantChange
(
val
)
{
this
.
selectMerchant
(
val
)
this
.
$refs
.
productFrom
.
tabMenu
=
[]
}
}
},
},
async
created
()
{
async
created
()
{
...
...
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