|
@@ -73,7 +73,7 @@
|
|
|
<el-table-column label="播放时长" prop="playTime" align="center" />
|
|
|
<el-table-column label="操作" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button type="text" @click="getChecked(scope.row)" :disabled="disabledList()">
|
|
|
+ <el-button type="text" @click="getChecked(scope.row)" :disabled="disabledList(scope.row)">
|
|
|
选择
|
|
|
</el-button>
|
|
|
</template>
|
|
@@ -266,9 +266,9 @@ export default {
|
|
|
},
|
|
|
|
|
|
// 已有的歌曲不可重复选择
|
|
|
- disabledList() {
|
|
|
+ disabledList(row) {
|
|
|
if (this.form.programList.length > 0) {
|
|
|
- return this.form.programList.findIndex(i => i.id === scope.row.id) === -1 ? false : true
|
|
|
+ return this.form.programList.findIndex(i => i.id === row.id) === -1 ? false : true
|
|
|
}
|
|
|
}
|
|
|
}
|