|
@@ -29,7 +29,7 @@
|
|
|
:value="item.subjectId">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
- <span v-else>{{detail.subjectName}}</span>
|
|
|
+ <span v-else>{{changeSubjectName}}</span>
|
|
|
</el-form-item>
|
|
|
<el-form-item
|
|
|
label="更改乐器"
|
|
@@ -239,7 +239,7 @@ export default {
|
|
|
watch: {
|
|
|
detail() {
|
|
|
if (this.detail) {
|
|
|
- // console.log(this.detail, this.voiceList)
|
|
|
+ console.log(this.detail, this.voiceList)
|
|
|
this.fetchDetail()
|
|
|
}
|
|
|
},
|
|
@@ -258,6 +258,18 @@ export default {
|
|
|
const { musicalGoods } = this.form
|
|
|
return musicalGoods ? this.accessoriesByGoods[musicalGoods] || [] : []
|
|
|
},
|
|
|
+ changeSubjectName() {
|
|
|
+ let name = ''
|
|
|
+ if (this.item.changeSubjectId) {
|
|
|
+ for (const item of this.voiceList) {
|
|
|
+ if (item.subjectId === this.item.changeSubjectId) {
|
|
|
+ name = item.subjectName
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return name
|
|
|
+ },
|
|
|
changeAccessoriesGoods() {
|
|
|
const subjectChange = this.item
|
|
|
return (subjectChange.changeAccessoriesGoods || []).map(item => item.name).join(',')
|