From 726898532dc176274386dadedddb247914d3f24c Mon Sep 17 00:00:00 2001 From: e <2432808546@qq.com> Date: Wed, 29 Dec 2021 10:51:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E4=B8=8E=E6=89=B9=E9=87=8F?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=8E=A5=E5=8F=A3=E5=A2=9E=E5=8A=A0=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E6=98=AF=E5=90=A6=E5=85=A8=E9=80=89=EF=BC=8C=E5=85=A8?= =?UTF-8?q?=E9=80=89=E5=88=A0=E9=99=A4=E5=90=8E=E8=BF=94=E5=9B=9E=E5=89=8D?= =?UTF-8?q?=E4=B8=80=E4=B8=AA=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/course/Curriculum.vue | 7 +++++++ src/views/customer/AddCustomer.vue | 4 ++-- src/views/customer/customer.vue | 4 ++-- src/views/data/Framework.vue | 7 +++++++ src/views/data/Product.vue | 7 +++++++ src/views/order/Order.vue | 6 +++--- src/views/serve/projectList.vue | 8 ++++++++ src/views/user/User.vue | 11 +++++++++-- 8 files changed, 45 insertions(+), 9 deletions(-) diff --git a/src/views/course/Curriculum.vue b/src/views/course/Curriculum.vue index 93af661..6148943 100644 --- a/src/views/course/Curriculum.vue +++ b/src/views/course/Curriculum.vue @@ -270,6 +270,13 @@ export default { }).then(() => { let ids = this.multipleSelection.map(i => i.cid); this.$post(`${this.api.delCourse}?cids=${ids.toString()}`).then(res => { + if(ids.length == this.courseData.length){ + if(this.pageNo > 1){ + this.pageNo = this.pageNo-1 + } + }else{ + + } this.getData(); this.$message.success("删除成功"); }).catch(err => { diff --git a/src/views/customer/AddCustomer.vue b/src/views/customer/AddCustomer.vue index d666eb7..34e3047 100644 --- a/src/views/customer/AddCustomer.vue +++ b/src/views/customer/AddCustomer.vue @@ -97,14 +97,14 @@ - + - +