From 1dc7b3816071be0eb3dccdfce74a5acd785a1e74 Mon Sep 17 00:00:00 2001 From: haiyangcui Date: Thu, 22 Oct 2020 16:53:57 +0200 Subject: [PATCH] =?UTF-8?q?=E6=89=B9=E5=A4=84=E7=90=86=E5=BC=80=E5=90=AF?= =?UTF-8?q?=E5=85=B3=E9=97=AD=E6=BA=90=E6=98=AF=E5=90=A6=E4=B8=BA=E8=87=AA?= =?UTF-8?q?=E9=80=89=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/EditSites.vue | 19 +++++++++++-------- src/components/IPTV.vue | 12 ++++++------ 2 files changed, 17 insertions(+), 14 deletions(-) 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()