Commit 2f64ede5 by 胡悦

修改角色

1 parent 92e95adb
...@@ -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!