Explorar el Código

预装箱单增加删除条件

jbb hace 2 años
padre
commit
3481158feb
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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)