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 @@
-
+
{{scope.row.startTime}}~{{scope.row.endTime}}
-
+
diff --git a/src/views/customer/customer.vue b/src/views/customer/customer.vue
index 33d7f0b..9ca0848 100644
--- a/src/views/customer/customer.vue
+++ b/src/views/customer/customer.vue
@@ -225,11 +225,11 @@ export default {
this.$post(this.api.delCustomers,delList).then(res => {
this.multipleSelection = [];
if(delList.length == this.listData.length){
-
- }else{
if(this.page > 1){
this.page = this.page-1
}
+ }else{
+
}
this.$message.success('删除成功')
this.getData()
diff --git a/src/views/data/Framework.vue b/src/views/data/Framework.vue
index be92f71..b23672f 100644
--- a/src/views/data/Framework.vue
+++ b/src/views/data/Framework.vue
@@ -441,6 +441,13 @@ export default {
type: 'warning'
}).then(() => {
this.$post(`${this.api.deleteTable}?${delList.join('&')}`).then(res => {
+ if(delList.length == this.listData.length){
+ if(this.page > 1){
+ this.page = this.page-1
+ }
+ }else{
+
+ }
this.$refs.table.clearSelection()
this.$message.success('删除成功')
this.getData()
diff --git a/src/views/data/Product.vue b/src/views/data/Product.vue
index fa33bcc..a7714eb 100644
--- a/src/views/data/Product.vue
+++ b/src/views/data/Product.vue
@@ -449,6 +449,13 @@ export default {
type: 'warning'
}).then(() => {
this.$post(`${this.api.deleteProduct}?ids=${result.join(',')}`).then(res => {
+ if(result.length == this.listData.length){
+ if(this.page > 1){
+ this.page = this.page-1
+ }
+ }else{
+
+ }
this.$refs.table.clearSelection()
this.$message.success('删除成功')
this.getData()
diff --git a/src/views/order/Order.vue b/src/views/order/Order.vue
index 51a85f8..9800e90 100644
--- a/src/views/order/Order.vue
+++ b/src/views/order/Order.vue
@@ -294,14 +294,14 @@ export default {
type: "warning"
}).then(() => {
this.$post(this.api.orderDelete, { ids: this.multipleSelection }).then(res => {
- this.multipleSelection = [];
this.$message.success("删除成功");
if(this.multipleSelection.length == this.orderData.length){
-
- }else{
if(this.pageNo > 1){
this.pageNo = this.pageNo-1
}
+ this.multipleSelection = [];
+ }else{
+ this.multipleSelection = [];
}
this.getData();
}).catch(err => {
diff --git a/src/views/serve/projectList.vue b/src/views/serve/projectList.vue
index c5f0c29..a9b62cd 100644
--- a/src/views/serve/projectList.vue
+++ b/src/views/serve/projectList.vue
@@ -279,6 +279,14 @@ export default {
}).then(() => {
this.$post(`${this.api.deleteProjectManage}?projectIds=${ids}&platformId=${this.queryData.platformId}`).then(res => {
if (res.status === 200) {
+ let delList = ids.split(',')
+ if(delList.length == this.listData.length){
+ if(this.page > 1){
+ this.page = this.page-1
+ }
+ }else{
+
+ }
this.$message.success("删除成功");
this.getData();
} else {
diff --git a/src/views/user/User.vue b/src/views/user/User.vue
index 7a71455..fe9e2ea 100644
--- a/src/views/user/User.vue
+++ b/src/views/user/User.vue
@@ -385,15 +385,22 @@ export default {
type: 'warning'
}).then(() => {
this.$post(this.api.delUserAccounts,delList).then(res => {
-
- }).catch(res => {
if(res.code == '200') {
this.multipleSelection = [];
+ if(delList.length == this.userData.length){
+ if(this.page > 1){
+ this.page = this.page-1
+ }
+ }else{
+
+ }
this.$message.success('删除成功')
this.getData()
}else{
this.$message.success(res.message)
}
+ }).catch(res => {
+
})
}).catch(() => {})
}else{