|
@@ -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
|