Commit 509abf76 by 胡悦

关闭弹窗重置

1 parent 01d36da6
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2022-06-10 15:36:06
* @LastEditors: huyue
* @LastEditTime: 2022-06-22 10:49:55
* @LastEditTime: 2022-06-22 17:22:54
-->
<template>
<div>
......@@ -27,7 +27,7 @@
<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-group>
<SelectProduct ref="productFrom" :roleType="true" title="角色权限"></SelectProduct>
<SelectProduct v-if="roleVisible" ref="productFrom" :roleType="true" title="角色权限"></SelectProduct>
</el-form-item>
</el-form>
<div slot="footer">
......@@ -68,6 +68,7 @@ export default {
methods: {
init() {
this.roleVisible = true
if (this.$refs.ruleForm) this.$refs.ruleForm.resetFields()
this.getMerchantName()
},
handleClose() {
......@@ -142,6 +143,12 @@ export default {
res ? this.$message.success('操作成功') : this.$message.error('操作失败')
this.$emit('updataRole', true)
this.roleVisible = !res
this.ruleForm = {
merchantId: '',
roleName: '',
roleDesc: '',
roleAuth: ''
}
})
} else {
return false
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!