Explorar o código

基础技能班声部限制除去

1
mo %!s(int64=4) %!d(string=hai) anos
pai
achega
f8f15f2f97

+ 36 - 36
src/views/teamBuild/teamSeting/components/setClassV2.vue

@@ -1669,42 +1669,42 @@ export default {
 
     changeMemo(val) {
       // 声部id
-      let flag = false;
-      if (val.length < 1) {
-        this.soundList.forEach((sound) => {
-          sound.disabled = false;
-          this.appoint = false;
-        });
-      } else {
-        this.soundList.forEach((sound) => {
-          if (sound.id == val[0]) {
-            if (
-              sound.name.indexOf("上低音号") > -1 ||
-              sound.name.indexOf("长号") > -1
-            ) {
-              // 要么选中长号  要么选中上低音号
-              sound.disabled = false;
-              flag = true;
-            } else {
-              sound.disabled = true;
-              this.appoint = true;
-            }
-          }
-        });
-        if (flag) {
-          this.soundList.forEach((sound) => {
-            if (
-              sound.name.indexOf("上低音号") > -1 ||
-              sound.name.indexOf("长号") > -1
-            ) {
-              // 要么选中长号  要么选中上低音号
-              sound.disabled = false;
-            } else {
-              sound.disabled = true;
-            }
-          });
-        }
-      }
+      // let flag = false;
+      // if (val.length < 1) {
+      //   this.soundList.forEach((sound) => {
+      //     sound.disabled = false;
+      //     this.appoint = false;
+      //   });
+      // } else {
+      //   this.soundList.forEach((sound) => {
+      //     if (sound.id == val[0]) {
+      //       if (
+      //         sound.name.indexOf("上低音号") > -1 ||
+      //         sound.name.indexOf("长号") > -1
+      //       ) {
+      //         // 要么选中长号  要么选中上低音号
+      //         sound.disabled = false;
+      //         flag = true;
+      //       } else {
+      //         sound.disabled = true;
+      //         this.appoint = true;
+      //       }
+      //     }
+      //   });
+      //   if (flag) {
+      //     this.soundList.forEach((sound) => {
+      //       if (
+      //         sound.name.indexOf("上低音号") > -1 ||
+      //         sound.name.indexOf("长号") > -1
+      //       ) {
+      //         // 要么选中长号  要么选中上低音号
+      //         sound.disabled = false;
+      //       } else {
+      //         sound.disabled = true;
+      //       }
+      //     });
+      //   }
+      // }
     },
     checkSubject(item) {
       // newClassForm.memo

+ 36 - 36
src/views/teamDetail/components/resetClass.vue

@@ -1439,42 +1439,42 @@ export default {
     },
     changeMemo(val) {
       // 声部id
-      let flag = false;
-      if (val.length < 1) {
-        this.soundList.forEach((sound) => {
-          sound.disabled = false;
-          this.appoint = false;
-        });
-      } else {
-        this.soundList.forEach((sound) => {
-          if (sound.id == val[0]) {
-            if (
-              sound.name.indexOf("上低音号") > -1 ||
-              sound.name.indexOf("长号") > -1
-            ) {
-              // 要么选中长号  要么选中上低音号
-              sound.disabled = false;
-              flag = true;
-            } else {
-              sound.disabled = true;
-              this.appoint = true;
-            }
-          }
-        });
-        if (flag) {
-          this.soundList.forEach((sound) => {
-            if (
-              sound.name.indexOf("上低音号") > -1 ||
-              sound.name.indexOf("长号") > -1
-            ) {
-              // 要么选中长号  要么选中上低音号
-              sound.disabled = false;
-            } else {
-              sound.disabled = true;
-            }
-          });
-        }
-      }
+      // let flag = false;
+      // if (val.length < 1) {
+      //   this.soundList.forEach((sound) => {
+      //     sound.disabled = false;
+      //     this.appoint = false;
+      //   });
+      // } else {
+      //   this.soundList.forEach((sound) => {
+      //     if (sound.id == val[0]) {
+      //       if (
+      //         sound.name.indexOf("上低音号") > -1 ||
+      //         sound.name.indexOf("长号") > -1
+      //       ) {
+      //         // 要么选中长号  要么选中上低音号
+      //         sound.disabled = false;
+      //         flag = true;
+      //       } else {
+      //         sound.disabled = true;
+      //         this.appoint = true;
+      //       }
+      //     }
+      //   });
+      //   if (flag) {
+      //     this.soundList.forEach((sound) => {
+      //       if (
+      //         sound.name.indexOf("上低音号") > -1 ||
+      //         sound.name.indexOf("长号") > -1
+      //       ) {
+      //         // 要么选中长号  要么选中上低音号
+      //         sound.disabled = false;
+      //       } else {
+      //         sound.disabled = true;
+      //       }
+      //     });
+      //   }
+      // }
     },
   },
   watch: {