Commit fa1a1636 by 前端

Merge branch 'kuangyq_dev_2.1.0' into 'v2.1.0'

Kuangyq dev 2.1.0

See merge request !30
2 parents 26337c45 18516896
...@@ -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]
......
...@@ -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() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!