Browse Source

预装箱单增加删除条件

jbb 2 năm trước cách đây
mục cha
commit
3481158feb
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      src/views/advance-packingList/adPaList-clothes.vue

+ 3 - 0
src/views/advance-packingList/adPaList-clothes.vue

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