|
@@ -3,6 +3,7 @@
|
|
<div class="listWrap">
|
|
<div class="listWrap">
|
|
<el-table :data='activeSoundList'
|
|
<el-table :data='activeSoundList'
|
|
ref="multipleTable"
|
|
ref="multipleTable"
|
|
|
|
+ @selection-change="handleSelectionChange"
|
|
:header-cell-style="{background:'#EDEEF0',color:'#444'}"
|
|
:header-cell-style="{background:'#EDEEF0',color:'#444'}"
|
|
highlight-current-row>
|
|
highlight-current-row>
|
|
<el-table-column type="selection"
|
|
<el-table-column type="selection"
|
|
@@ -28,7 +29,7 @@
|
|
<div>
|
|
<div>
|
|
<el-button type="text"
|
|
<el-button type="text"
|
|
@click="resetStudent(scope.row)">添加</el-button>
|
|
@click="resetStudent(scope.row)">添加</el-button>
|
|
- <el-button type="text">删除</el-button>
|
|
|
|
|
|
+ <!-- <el-button type="text">删除</el-button> -->
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -221,9 +222,11 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
// 删除声部
|
|
// 删除声部
|
|
removeListItem () {
|
|
removeListItem () {
|
|
|
|
+ console.log(this.multipleSelection)
|
|
for (let i = 0; i < this.activeSoundList.length; i++) {
|
|
for (let i = 0; i < this.activeSoundList.length; i++) {
|
|
for (let j = 0; j < this.multipleSelection.length; j++) {
|
|
for (let j = 0; j < this.multipleSelection.length; j++) {
|
|
if (this.activeSoundList[i].id == this.multipleSelection[j].id) {
|
|
if (this.activeSoundList[i].id == this.multipleSelection[j].id) {
|
|
|
|
+ console.log('删除');
|
|
this.activeSoundList.splice(i, 1);
|
|
this.activeSoundList.splice(i, 1);
|
|
// 遍历循环所有的group 删除所选id
|
|
// 遍历循环所有的group 删除所选id
|
|
for (let key in this.soundLists) {
|
|
for (let key in this.soundLists) {
|
|
@@ -262,6 +265,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
handleSelectionChange (e) {
|
|
handleSelectionChange (e) {
|
|
|
|
+ console.log(e);
|
|
// 点击改变勾选
|
|
// 点击改变勾选
|
|
this.multipleSelection = e;
|
|
this.multipleSelection = e;
|
|
},
|
|
},
|