浏览代码

质检方案保存和取消清除物品数据

hezhanp 8 月之前
父节点
当前提交
d107a6aa92
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/views/inspectionTemplate/AddorUpdate.vue

+ 3 - 0
src/views/inspectionTemplate/AddorUpdate.vue

@@ -574,6 +574,9 @@ export default {
               const info = this.dataForm.id ? '修改成功' : '新增成功';
               this.$message.success(info);
               this.visible = false;
+
+              this.templateCategoryList = []; // 必加:清空物品列表
+              this.list = []; // 可选:若需清空质检项列表,可添加这行
               // this.updateVisible(false);
               this.$emit('refreshDataList');
             })