Explorar o código

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

jbb %!s(int64=2) %!d(string=hai) anos
pai
achega
c81b8f7eb8
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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()