Răsfoiți Sursa

选择同步元报错修改

duy 2 luni în urmă
părinte
comite
3a1de3d5fa
1 a modificat fișierele cu 13 adăugiri și 2 ștergeri
  1. 13 2
      src/views/manager/projectinfo/tree.vue

+ 13 - 2
src/views/manager/projectinfo/tree.vue

@@ -4857,6 +4857,9 @@ export default {
        
      },
     async changeTemplateId(val){
+      if(!this.isShowTable){
+        return
+      }
     
        let type=''
        let projectId=''
@@ -4961,8 +4964,9 @@ export default {
         this.saveProTagLoading=false
         if(res.data.code==200){
         this.$message.success(res.data.msg)
-        this.closeProSyncTag()
         this.getNodeStatusData()
+        this.closeProSyncTag()
+       
          
         }else{
           this.$message.error(res.data.msg)
@@ -5085,7 +5089,14 @@ export default {
       
     },
     getNodeStatusData(){
-      getNodeStatus({ id:this.curTreeData.primaryKeyId}).then((res) => {
+      let ids
+      if(this.isShowLeft){
+        ids=this.$refs.syncProTree.getCheckedKeys()
+        ids=ids.join(',')
+      }else{
+        ids=this.curTreeData.primaryKeyId
+      }
+      getNodeStatus({ id:ids}).then((res) => {
 
         if(res.data.code==200){
                     if(res.data.data){