diff --git a/src/views/system/agencyCategory/index.vue b/src/views/system/agencyCategory/index.vue index eaf96b5..f856d7e 100644 --- a/src/views/system/agencyCategory/index.vue +++ b/src/views/system/agencyCategory/index.vue @@ -310,9 +310,9 @@ export default { form: {}, // 表单校验 rules: { - // parentCategoryId: [ - // { required: true, message: "父级类别id不能为空", trigger: "blur" }, - // ], + categoryName: [ + { required: true, message: "类别名称不能为空", trigger: "blur" }, + ], }, }; }, @@ -409,6 +409,7 @@ export default { this.open = false; ++this.isResouceShow; this.getList(); + this.gettreelistitem() }); } else { addAgencyCategory(this.form).then((response) => { @@ -416,6 +417,7 @@ export default { this.open = false; ++this.isResouceShow; this.getList(); + this.gettreelistitem() }); } }