瀏覽代碼

项目同步修改

duy 2 月之前
父節點
當前提交
d80d05459f
共有 1 個文件被更改,包括 12 次插入2 次删除
  1. 12 2
      src/views/manager/projectinfo/tree.vue

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

@@ -4785,6 +4785,7 @@ export default {
         templateName:'',
         contractRange:[],
         contractRangeName:'',
+        nodeIds:'',
         formIds:''};
       
        if(this.$refs.syncProTree){
@@ -4794,10 +4795,19 @@ export default {
           this.refs.proTable.clearSelection()
         }
         this.preTableData=[]
+     
     },
     saveProTag(){
 
       this.syncForm.projectId=this.projectid
+      if(this.isShowLeft){
+        let ids=this.$res.syncProTree.getCheckedKeys()
+        this.syncForm.nodeIds=ids.join(',')
+      }else{
+        this.syncForm.nodeIds=this.curTreeData.primaryKeyId
+      }
+      
+     
       if(this.syncForm.rangeName==''){
         for (let index = 0; index < this.rangeOptions.length; index++) {
           const element =this. rangeOptions[index];
@@ -4855,7 +4865,7 @@ export default {
           
             this.$confirm("当前表单配置将同步到项目下所有相同表单,请谨慎同步!!!!!!", "表单同步提醒", {
                 distinguishCancelAndClose: true,
-                confirmButtonText: "删除",
+                confirmButtonText: "确定",
                 cancelButtonText: "取消",
               }).then(() => {
                 console.log(111111111111);
@@ -4864,7 +4874,7 @@ export default {
       }else if(command=='b'){
         this.$confirm("当前表单配置将同步到项目下所有相同表单,请谨慎同步!!!!!!", "表单同步提醒", {
                 distinguishCancelAndClose: true,
-                confirmButtonText: "删除",
+                confirmButtonText: "确定",
                 cancelButtonText: "取消",
               }).then(() => {
                 console.log(111111111111);