diff --git a/src/components/EditSites.vue b/src/components/EditSites.vue index 87fd0a8..035919b 100644 --- a/src/components/EditSites.vue +++ b/src/components/EditSites.vue @@ -10,8 +10,9 @@ 重置
- > - + + + 保存
@@ -119,7 +120,8 @@ export default { ] }, eableBatchEdit: false, - newGroupName: '', + batchGroupName: '', + batchIsActive: 1, multipleSelection: [] } }, @@ -162,11 +164,12 @@ export default { this.multipleSelection = rows }, saveBatchEdit () { - if (this.multipleSelection && this.newGroupName) { - this.multipleSelection.forEach(ele => { - ele.group = this.newGroupName - }) - } + this.multipleSelection.forEach(ele => { + if (this.batchGroupName) { + ele.group = this.batchGroupName + } + ele.isActive = this.batchIsActive + }) this.updateDatabase() }, getSites () { diff --git a/src/components/IPTV.vue b/src/components/IPTV.vue index 100fe8f..520877c 100644 --- a/src/components/IPTV.vue +++ b/src/components/IPTV.vue @@ -2,7 +2,7 @@
- > + 总频道数:{{iptvList.length}} 导出 导入 @@ -10,8 +10,8 @@ 重置
- > - + + 保存
@@ -75,7 +75,7 @@ export default { searchTxt: '', searchRecordList: [], eableBatchEdit: false, - newGroupName: '', + batchGroupName: '', multipleSelection: [], show: { search: false @@ -135,9 +135,9 @@ export default { this.multipleSelection = rows }, saveBatchEdit () { - if (this.multipleSelection && this.newGroupName) { + if (this.multipleSelection && this.batchGroupName) { this.multipleSelection.forEach(ele => { - ele.group = this.newGroupName + ele.group = this.batchGroupName }) } this.updateDatabase()