Commit 64782f23 by 匡雅琴

Merge branch 'v2.5.0' into kuangyq_dev_v2.5.0

2 parents 6829d0af 7bbc7c80
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2022-06-10 15:36:06 * @Date: 2022-06-10 15:36:06
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2022-06-22 10:49:55 * @LastEditTime: 2022-06-22 17:22:54
--> -->
<template> <template>
<div> <div>
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
<el-checkbox-group v-model="ruleForm.roleAuth"> <el-checkbox-group v-model="ruleForm.roleAuth">
<el-checkbox v-for="(itm, idx) in accountListSelect" :label="itm.accounttypeName" @change="selectCurAccount(itm, idx)" :key="idx">{{ itm.accounttypeName }}</el-checkbox> <el-checkbox v-for="(itm, idx) in accountListSelect" :label="itm.accounttypeName" @change="selectCurAccount(itm, idx)" :key="idx">{{ itm.accounttypeName }}</el-checkbox>
</el-checkbox-group> </el-checkbox-group>
<SelectProduct ref="productFrom" :roleType="true" title="角色权限"></SelectProduct> <SelectProduct v-if="roleVisible" ref="productFrom" :roleType="true" title="角色权限"></SelectProduct>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div slot="footer"> <div slot="footer">
...@@ -68,6 +68,7 @@ export default { ...@@ -68,6 +68,7 @@ export default {
methods: { methods: {
init() { init() {
this.roleVisible = true this.roleVisible = true
if (this.$refs.ruleForm) this.$refs.ruleForm.resetFields()
this.getMerchantName() this.getMerchantName()
}, },
handleClose() { handleClose() {
...@@ -139,6 +140,12 @@ export default { ...@@ -139,6 +140,12 @@ export default {
res ? this.$message.success('操作成功') : this.$message.error('操作失败') res ? this.$message.success('操作成功') : this.$message.error('操作失败')
this.$emit('updataRole', true) this.$emit('updataRole', true)
this.roleVisible = !res this.roleVisible = !res
this.ruleForm = {
merchantId: '',
roleName: '',
roleDesc: '',
roleAuth: ''
}
}) })
} else { } else {
return false return false
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!