Kaynağa Gözat

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

jbb 2 yıl önce
ebeveyn
işleme
c81b8f7eb8
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  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()