ソースを参照

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

jbb 2 年 前
コミット
c81b8f7eb8
1 ファイル変更3 行追加0 行削除
  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()