Browse Source

Merge branch 'master' of http://git.shengws.com/csx/Vue_New

csx 5 years ago
parent
commit
dfd9e71bdd
1 changed files with 20 additions and 19 deletions
  1. 20 19
      src/xt_pages/dialysis/details/dialog/adviceDialog/EditGroupAdvice.vue

+ 20 - 19
src/xt_pages/dialysis/details/dialog/adviceDialog/EditGroupAdvice.vue View File

@@ -651,31 +651,32 @@ export default {
651 651
                   }
652 652
                 }
653 653
               }
654
-            }
655
-          })
656
-
657
-          if (isChild) {
658
-            for (const index in this.groupForm.adviceNames) {
659
-              if (this.groupForm.adviceNames[index].row_key == this.groupSelectRow.parent_row) {
660
-                for (const j in this.groupForm.adviceNames[index].children) {
661
-                  if (this.groupForm.adviceNames[index].children[j].row_key == this.groupSelectRow.row_key) {
662
-                    this.groupForm.adviceNames[index].children.splice(j, 1)
663
-                    this.$set(this.groupForm.adviceNames, index, this.groupForm.adviceNames[index])
654
+              if (isChild) {
655
+                for (const index in this.groupForm.adviceNames) {
656
+                  if (this.groupForm.adviceNames[index].row_key == this.groupSelectRow.parent_row) {
657
+                    for (const j in this.groupForm.adviceNames[index].children) {
658
+                      if (this.groupForm.adviceNames[index].children[j].row_key == this.groupSelectRow.row_key) {
659
+                        this.groupForm.adviceNames[index].children.splice(j, 1)
660
+                        this.$set(this.groupForm.adviceNames, index, this.groupForm.adviceNames[index])
661
+                        this.toggleRowExpansion()
662
+                        break
663
+                      }
664
+                    }
665
+                  }
666
+                }
667
+              } else {
668
+                for (const index in this.groupForm.adviceNames) {
669
+                  if (this.groupForm.adviceNames[index].row_key == this.groupSelectRow.row_key) {
670
+                    this.groupForm.adviceNames.splice(index, 1)
664 671
                     this.toggleRowExpansion()
665 672
                     break
666 673
                   }
667 674
                 }
668 675
               }
669 676
             }
670
-          } else {
671
-            for (const index in this.groupForm.adviceNames) {
672
-              if (this.groupForm.adviceNames[index].row_key == this.groupSelectRow.row_key) {
673
-                this.groupForm.adviceNames.splice(index, 1)
674
-                this.toggleRowExpansion()
675
-                break
676
-              }
677
-            }
678
-          }
677
+          })
678
+
679
+
679 680
         }).catch(() => {
680 681
         })
681 682
       },