From 4fee0923403e196e523eab3c9db2fa14df81eb6d Mon Sep 17 00:00:00 2001 From: xzg <4727863@qq.com> Date: Sun, 13 Oct 2024 02:44:08 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=93=81=E7=89=8C?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=88=B7=E6=96=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/basicdata/brand/basicBrand.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/views/basicdata/brand/basicBrand.vue b/src/views/basicdata/brand/basicBrand.vue index 59ee0406..23296119 100644 --- a/src/views/basicdata/brand/basicBrand.vue +++ b/src/views/basicdata/brand/basicBrand.vue @@ -432,10 +432,12 @@ export default { this.$message({ type: 'success', message: '操作成功!', - }).finally(() => { - this.loadingObj.detailLoading = false; - }); + }) this.imageUrl = null; + }).catch(e=>{ + console.log(e); + }).finally(()=>{ + this.loadingObj.detailLoading = false; }); } else { update(this.form) @@ -446,6 +448,8 @@ export default { type: 'success', message: '操作成功!', }); + }).catch(e=>{ + console.log(e); }) .finally(() => { this.loadingObj.detailLoading = false; From 13c8e5d8ebb21449a1be6828902fae6da99bb23e Mon Sep 17 00:00:00 2001 From: xzg <4727863@qq.com> Date: Sun, 13 Oct 2024 10:33:12 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=85=A5=E5=BA=93?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E7=BF=BB=E9=A1=B5=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../warehouseWarehousingEntry.vue | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/src/views/warehouse/warehousingentry/warehouseWarehousingEntry.vue b/src/views/warehouse/warehousingentry/warehouseWarehousingEntry.vue index 2ad2f9ac..63c60f86 100644 --- a/src/views/warehouse/warehousingentry/warehouseWarehousingEntry.vue +++ b/src/views/warehouse/warehousingentry/warehouseWarehousingEntry.vue @@ -485,7 +485,7 @@ export default { page: { currentPage: 1, pageSize: 30, - total: 40, + total: 0, }, // 表单数据 form: {}, @@ -885,25 +885,32 @@ export default { }, currentChange(currentPage) { this.page.currentPage = currentPage; + console.log(currentPage,'currentPage'); + this.onLoad(this.page); + console.log(this.page.currentPage,'this.page.currentPage'); + }, sizeChange(pageSize) { this.page.pageSize = pageSize; this.onLoad(this.page); }, - onLoad(page, params = {}) { + onLoad(page=this.page, params = {}) { this.loading = true; - const submitData = {query: this.page, warehouseWarehousingEntry: {...params, ...this.query} } + const submitData = {query:page, warehouseWarehousingEntry: {...params, ...this.query} } if (getObjType(submitData.warehouseWarehousingEntry.receiptDate) === 'array' && submitData.warehouseWarehousingEntry.receiptDate.length > 0) { submitData.warehouseWarehousingEntry.receiptDateStart = submitData.warehouseWarehousingEntry.receiptDate[0] submitData.warehouseWarehousingEntry.receiptDateStartEnd = submitData.warehouseWarehousingEntry.receiptDate[1] } - delete submitData.query.total + delete submitData.warehouseWarehousingEntry.receiptDate + // 获取列表数据 getList(submitData).then(res => { + console.log(res,'res+++'); + const data = res.data.data; console.log('data :>> ', data); this.page.total = data.total; @@ -926,7 +933,7 @@ export default { }); this.data = data.records; this.loading = false; - this.selectionClear(); + // this.selectionClear(); }); }, },