Explorar el Código

修复角色添加页面重置按钮问题

weiximei hace 6 años
padre
commit
21901a4b01

+ 3
- 1
VUECODE/smart-operate-manage/src/views/account/role/add/index.vue Ver fichero

@@ -101,7 +101,9 @@ export default {
101 101
     resetForm(formName) {
102 102
       this.$refs[formName].resetFields()
103 103
       // 清空选中的树节点
104
-      this.ruleForm.menuArray = []
104
+      this.$refs.tree.setCheckedKeys([]);
105
+      this.ruleForm.roleName = ''
106
+      this.ruleForm.description = ''
105 107
     },
106 108
     handleCheckChange(data, checked, indeterminate) { // 树形图选择事件
107 109
       console.log(data, checked, indeterminate)