zhuliu 7 hónapja
szülő
commit
ccf396c364

+ 9 - 1
src/views/noveltySearch/components/details/components/searchRecords/searchRecords.vue

@@ -228,10 +228,10 @@
               this.$api.deleteNoveltySearchRecord(params).then(response=>{
                   if(response.code == 200){
                       this.$message.success('删除成功')
-                      this.getList()
                       if(type){
                           this.multipleSelection = []
                           this.$refs.table.clearSelection();
+                          this.queryParams.current = 1
                       }else{
                           var id = response.data.data[0]
                           var index = this.multipleSelection.findIndex(item=>{
@@ -240,7 +240,15 @@
                           if(index!=-1){
                               this.multipleSelection.splice(index,1)
                           }
+                          if(this.tableData.length == 1){
+                            if(this.queryParams.current>1){
+                                this.queryParams.current -= 1
+                            }else{
+                                this.queryParams.current = 1
+                            }
+                          }
                       }
+                      this.getList()
                       
                   }
               }).catch(error=>{