소스 검색

修改同步

zengyicheng 2 년 전
부모
커밋
97b6f0575a
1개의 변경된 파일7개의 추가작업 그리고 15개의 파일을 삭제
  1. 7 15
      src/components/pages/tencent/school.vue

+ 7 - 15
src/components/pages/tencent/school.vue

@@ -446,11 +446,8 @@ export default {
           this.dialogVisible = false;
           this.schoolName = "";
           this.place = [];
-          if (this.sType == 1) {
-            this.selectSchool();
-          } else if (this.sType == 2) {
-            this.selectSchool1();
-          }
+          this.selectSchool();
+          this.selectSchool1();
           this.sType = 0;
         })
         .catch((err) => {
@@ -487,11 +484,8 @@ export default {
           this.updateId = "";
           this.schoolName = "";
           this.place = [];
-          if (this.sType == 1) {
-            this.selectSchool();
-          } else if (this.sType == 2) {
-            this.selectSchool1();
-          }
+          this.selectSchool();
+          this.selectSchool1();
           this.sType = 0;
         })
         .catch((err) => {
@@ -523,11 +517,8 @@ export default {
               });
               _this.updateId = "";
               _this.schoolName = "";
-              if (_this.sType == 1) {
-                _this.selectSchool();
-              } else if (_this.sType == 2) {
-                _this.selectSchool1();
-              }
+              _this.selectSchool();
+              _this.selectSchool1();
               _this.sType = 0;
             })
             .catch((err) => {
@@ -580,6 +571,7 @@ export default {
           this.updateId = "";
           this.isCSchool = "";
           this.selectSchool();
+          this.selectSchool1();
         })
         .catch((err) => {
           this.$message.error("联结失败");