Browse Source

标签管理 标签分类 修复频道内容搜索和重置后取消勾选

DESKTOP-O04BTUJ\muzen 3 years ago
parent
commit
b3dd83bb61
1 changed files with 4 additions and 6 deletions
  1. 4 6
      src/views/label/tag/detail.vue

+ 4 - 6
src/views/label/tag/detail.vue

@@ -292,11 +292,9 @@ export default {
         if (res.code === 0) {
         if (res.code === 0) {
           this.dialogData = res.data.records
           this.dialogData = res.data.records
           this.total = res.data.total
           this.total = res.data.total
-          this.$nextTick(() => {
-            this.tableData.map(i => {
-              let row = res.data.records.find(j => j.id === i.audioId)
-              this.$refs.table.toggleRowSelection(row)
-            })
+          this.tableData.map(i => {
+            let row = res.data.records.find(j => j.id === i.audioId)
+            this.$refs.table.toggleRowSelection(row)
           })
           })
           this.loading = false
           this.loading = false
         }
         }
@@ -329,7 +327,7 @@ export default {
       this.dialogForm.name = ''
       this.dialogForm.name = ''
       this.dialogForm.pageNum = 1
       this.dialogForm.pageNum = 1
       this.dialogForm.pageSize = 10
       this.dialogForm.pageSize = 10
-      this.getSearch()
+      this.getPage()
     },
     },
 
 
     getRowKey(row) {
     getRowKey(row) {