Bläddra i källkod

huiwuliucheng

liuhj 1 vecka sedan
förälder
incheckning
c67ab5e63c
1 ändrade filer med 20 tillägg och 15 borttagningar
  1. 20 15
      src/components/OP/AffairsBackward.vue

+ 20 - 15
src/components/OP/AffairsBackward.vue

@@ -169,6 +169,7 @@ export default {
                         id:child.id,
                         title: item.title,
                         dataDetails: child.dataDetails,
+                        identification:item.title,
                         details: child.details,
                         remark: child.remark
                     });
@@ -185,7 +186,7 @@ export default {
                     if (currentItem) {
                         result.push(currentItem);
                     }
-                    currentTitle = row.title;
+                    currentTitle =row.title;
                     currentItem = {
                         title: currentTitle,
                         itmes: []
@@ -195,7 +196,8 @@ export default {
                     id:row.id,
                     dataDetails: row.dataDetails,
                     details: row.details,
-                    remark: row.remark
+                    remark: row.remark,
+                    identification:row.identification,
                 });
             });
             if (currentItem) {
@@ -355,7 +357,7 @@ export default {
         },
         //下载
         ConferenceProceduresFileDown(){
-            this.unflattenData();
+            // this.unflattenData();
             var url = "/api/Groups/ConferenceProceduresFileDown"
             var that = this
             this.$axios({
@@ -381,32 +383,35 @@ export default {
         },
         //标题输入
         titleinput(val){
-            console.log(this.porojectname);
-            for (let b = 0; b < this.porojectindex.length; b++) {
-                // this.tableDatass.splice( this.porojectindex,1)
-                for (let m = 0; m < this.porojectname.length; m++) {
-                    this.porojectname[m].title=val;
-                    this.tableDatass.splice(this.porojectindex[b],1,this.porojectname[m])
+            for (let b = 0; b < this.tableDatass.length; b++) {
+                if(this.tableDatass[b].identification==this.porojectindex){
+                    this.tableDatass[b].title=val;
                 }
             }
-            this.tableDatass=this.porojectname.concat(this.tableDatass)
+            this.porojectindex=val;
+            
+            // for (let b = 0; b < this.porojectindex.length; b++) {
+            //     // this.tableDatass.splice( this.porojectindex,1)
+            //     for (let m = 0; m < this.porojectname.length; m++) {
+            //         this.porojectname[m].title=val;
+            //         this.tableDatass.splice(this.porojectindex[b],1,this.porojectname[m])
+            //     }
+            // }
+            // this.tableDatass=this.porojectname.concat(this.tableDatass)
             this.unflattenData();
             this.flattenData();
             this.getSpanArr();
         },
         //获得焦点
         huodejiaodian(val){
-            console.log(val);
             this.porojectname=[];
-            this.porojectindex=[];
+            this.porojectindex=val;
              for (let y = 0; y < this.tableDatass.length; y++) {
                 if (this.tableDatass[y].title==val) {
                     this.porojectname.push(this.tableDatass[y])
-                    this.porojectindex.push(y)
+                    // this.porojectindex.push(y)
                 }
             }
-            console.log(this.tableDatass);
-            
         }
     },
     mounted(){