platform/src/components/system/role/OperaRoleWindow.vue
@@ -35,7 +35,8 @@ id: null, code: '', name: '', remark: '' remark: '', type: '', }, // 验证规则 rules: { @@ -49,13 +50,14 @@ } }, methods: { open (title, target) { open (title, target, type) { this.title = title this.visible = true // 新建 if (target == null) { this.$nextTick(() => { this.$refs.form.resetFields() this.form.type = type this.form[this.configData['field.id']] = null }) return @@ -66,6 +68,7 @@ for (const key in this.form) { this.form[key] = target[key] } this.form.type = type }) }, confirm () {