소스 검색

预装箱单增加删除条件

jbb 2 년 전
부모
커밋
3481158feb
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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)