Browse Source

装箱单增加删除时页码判断

jbb 2 years ago
parent
commit
c81b8f7eb8
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/views/packing-list/clothes-list.vue

+ 3 - 0
src/views/packing-list/clothes-list.vue

@@ -525,6 +525,9 @@ export default {
     handleDelete(record) {
        console.log('点击删除项id:', record)
        this.$nextTick(() => {
+         if(this.queryParam.pageNo > 1 && this.clothesListData.length === 1){
+          this.queryParam.pageNo = this.queryParam.pageNo -1
+        }
         deleteSpltList({ id: record }).then(res => {
           if (res.success) {
             this.getSpltList()