批量删除时重置ID及过滤器

This commit is contained in:
buvta
2020-11-07 11:08:54 +08:00
parent 4d192a4c3a
commit d82251fb02
2 changed files with 6 additions and 0 deletions

View File

@@ -415,7 +415,10 @@ export default {
},
removeSelectedSites () {
this.multipleSelection.forEach(e => sites.remove(e.id))
this.$refs.editSitesTable.clearFilter()
this.getSites()
this.updateDatabase()
this.enableBatchEdit = false
},
rowDrop () {
if (this.checkAllSitesLoading) {

View File

@@ -340,7 +340,10 @@ export default {
},
removeSelectedChannels () {
this.multipleSelection.forEach(e => iptv.remove(e.id))
this.$refs.iptvTable.clearFilter()
this.getChannels()
this.updateDatabase()
this.enableBatchEdit = false
},
getChannels () {
iptv.all().then(res => {