Browse Source

新增规范用primaryKeyId

duy 1 month ago
parent
commit
8163f4297d
1 changed files with 5 additions and 3 deletions
  1. 5 3
      src/views/codeRule/ruleManage.vue

+ 5 - 3
src/views/codeRule/ruleManage.vue

@@ -607,7 +607,7 @@ import { getStore, setStore } from "@/util/store";
 
       handleNodeClick(data,node) {
        
-        this.treeId = data.id;
+        this.treeId = data.primaryKeyId;
         
         this.getRuleItemOptions()
           //获取节点展开路径
@@ -688,6 +688,7 @@ import { getStore, setStore } from "@/util/store";
            add(
             formData
             ).then((res) => {
+              this.addSaveFileLoad = false;
             if(res.data.code==200){
                 this.$message.success(res.data.msg)
               
@@ -991,8 +992,9 @@ import { getStore, setStore } from "@/util/store";
      
     },
     delManange(index,row){
-      
-          if(this.showList){
+          console.log(this.isShowList,'isShowList');
+    
+          if(this.isShowList){
                    this.$confirm('删除后,数据将无法恢复,是否确认删除!', '提示', {
                   confirmButtonText: '确定',
                   cancelButtonText: '取消',