|
@@ -188,6 +188,14 @@ export default {
|
|
|
.filter((item) => !!item)
|
|
|
.map((item) => ({ value: item.id, text: item.name })),
|
|
|
];
|
|
|
+ let subjectStatus = false // 判断是否存在声部
|
|
|
+ this.subjectOptions.forEach(subject => {
|
|
|
+ if(this.subjectId == subject.value) {
|
|
|
+ subjectStatus = true
|
|
|
+ }
|
|
|
+ });
|
|
|
+ // 如果声部列表中没有数据,则默认选中0
|
|
|
+ this.subjectId = subjectStatus ? this.subjectId : 0
|
|
|
} catch (error) {
|
|
|
//
|
|
|
}
|