Bläddra i källkod

Update teamBaseInfo.vue

lex 10 månader sedan
förälder
incheckning
49e41370f3
1 ändrade filer med 14 tillägg och 1 borttagningar
  1. 14 1
      src/views/teamBuild/components/teamBaseInfo.vue

+ 14 - 1
src/views/teamBuild/components/teamBaseInfo.vue

@@ -73,7 +73,7 @@
         >
           <el-select
             v-model.trim="topFrom.school"
-            :disabled="!topFrom.section || basdisabled"
+            :disabled="!topFrom.section || basdisabled || cooperDisabled"
             @change="chioseSchool"
             filterable
             clearable
@@ -772,6 +772,7 @@ export default {
       isInit: false,
       technician: [],
       basdisabled: false,
+      cooperDisabled: false, // 合作单位状态
       // 整合报名中
       paymentExpireDate: "",
       applyExpireDate: null,
@@ -849,6 +850,11 @@ export default {
     } else {
       this.basdisabled = false;
     }
+    if (this.teamStatus == "PROGRESS" || this.teamStatus == "PAUSE") {
+      this.cooperDisabled = true;
+    } else {
+      this.cooperDisabled = true;
+    }
   },
   deactivated() {},
   // async beforeDestroy() {
@@ -984,6 +990,13 @@ export default {
       } else {
         this.basdisabled = false;
       }
+
+      if (this.teamStatus == "PROGRESS" || this.teamStatus == "PAUSE") {
+        this.cooperDisabled = true;
+      } else {
+        this.cooperDisabled = true;
+      }
+
       if (this.$route.query.id) {
         // 单团修改
         this.teamid = this.$route.query.id;