diff --git a/src/views/modules/communityService/fuwuzhaoren/personList.vue b/src/views/modules/communityService/fuwuzhaoren/personList.vue
index 5e42e9a37..a918aec3e 100644
--- a/src/views/modules/communityService/fuwuzhaoren/personList.vue
+++ b/src/views/modules/communityService/fuwuzhaoren/personList.vue
@@ -97,6 +97,7 @@
+ 批量删除
公众号消息推送
标记享受服务人员
查询
@@ -283,7 +284,25 @@ export default {
}
},
methods: {
+ onDeleteBatch() {
+ if (this.selectedPersonListIds.length == 0) {
+ this.$message.warning("请先选中至少一项");
+ return;
+ }
+ this.$confirm("删除之后无法恢复,确认删除?", "提示", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ })
+ .then(() => {
+ this.deleteresiBatch(this.selectedPersonListIds);
+ })
+ .catch((err) => {
+ console.error(err);
+ this.$message.error("删除失败");
+ });
+ },
//编辑
async handelCLickShowCheckPassword(row) {
console.log(row);
@@ -345,7 +364,7 @@ export default {
})
.then(() => {
console.log(row);
- this.deleteresiBatch(row);
+ this.deleteresiBatch([row.id]);
})
.catch((err) => {
if (err == "cancel") {
@@ -355,11 +374,9 @@ export default {
this.$message.warning("请先选择要删除的居民");
}
},
- async deleteresiBatch(row) {
- console.log(row);
- let userIds = row.id;
+ async deleteresiBatch(ids) {
this.$http
- .post("/actual/base/findPersonList/deleteFindPersonByServiceId/"+userIds)
+ .post("/actual/base/findPersonList/deleteFindPersonByServiceId",{ids})
.then(({ data: res }) => {
console.log(res);
if (res.code !== 0) {
diff --git a/src/views/modules/communityService/gangweizhaoren/personList.vue b/src/views/modules/communityService/gangweizhaoren/personList.vue
index 175161460..25fac9c14 100644
--- a/src/views/modules/communityService/gangweizhaoren/personList.vue
+++ b/src/views/modules/communityService/gangweizhaoren/personList.vue
@@ -97,6 +97,7 @@
+ 批量删除
公众号消息推送
标记享受服务人员
查询
@@ -281,6 +282,25 @@ export default {
}
},
methods: {
+ onDeleteBatch() {
+ if (this.selectedPersonListIds.length == 0) {
+ this.$message.warning("请先选中至少一项");
+ return;
+ }
+
+ this.$confirm("删除之后无法恢复,确认删除?", "提示", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ })
+ .then(() => {
+ this.deleteresiBatch(this.selectedPersonListIds);
+ })
+ .catch((err) => {
+ console.error(err);
+ this.$message.error("删除失败");
+ });
+ },
//编辑
async handelCLickShowCheckPassword(row) {
console.log(row);
@@ -341,7 +361,7 @@ export default {
})
.then(() => {
console.log(row);
- this.deleteresiBatch(row);
+ this.deleteresiBatch([row.id]);
})
.catch((err) => {
if (err == "cancel") {
@@ -351,11 +371,9 @@ export default {
this.$message.warning("请先选择要删除的居民");
}
},
- async deleteresiBatch(row) {
- console.log(row);
- let userIds = row.id;
+ async deleteresiBatch(ids) {
this.$http
- .post("/actual/base/findPersonList/deleteFindPersonByServiceId/"+userIds)
+ .post("/actual/base/findPersonList/deleteFindPersonByServiceId",{ids})
.then(({ data: res }) => {
console.log(res);
if (res.code !== 0) {
diff --git a/src/views/modules/communityService/jinengzhaoren/personList.vue b/src/views/modules/communityService/jinengzhaoren/personList.vue
index 67a049d8e..6a210e4f3 100644
--- a/src/views/modules/communityService/jinengzhaoren/personList.vue
+++ b/src/views/modules/communityService/jinengzhaoren/personList.vue
@@ -97,6 +97,7 @@
+ 批量删除
公众号消息推送
标记享受服务人员
查询
@@ -282,7 +283,25 @@ export default {
}
},
methods: {
+ onDeleteBatch() {
+ if (this.selectedPersonListIds.length == 0) {
+ this.$message.warning("请先选中至少一项");
+ return;
+ }
+ this.$confirm("删除之后无法恢复,确认删除?", "提示", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ })
+ .then(() => {
+ this.deleteresiBatch(this.selectedPersonListIds);
+ })
+ .catch((err) => {
+ console.error(err);
+ this.$message.error("删除失败");
+ });
+ },
//编辑
async handelCLickShowCheckPassword(row) {
console.log(row);
@@ -343,7 +362,7 @@ export default {
})
.then(() => {
console.log(row);
- this.deleteresiBatch(row);
+ this.deleteresiBatch([row.id]);
})
.catch((err) => {
if (err == "cancel") {
@@ -353,11 +372,9 @@ export default {
this.$message.warning("请先选择要删除的居民");
}
},
- async deleteresiBatch(row) {
- console.log(row);
- let userIds = row.id;
+ async deleteresiBatch(ids) {
this.$http
- .post("/actual/base/findPersonList/deleteFindPersonByServiceId/"+userIds)
+ .post("/actual/base/findPersonList/deleteFindPersonByServiceId",{ids})
.then(({ data: res }) => {
console.log(res);
if (res.code !== 0) {
@@ -616,4 +633,7 @@ export default {
color: #f56c6c;
margin-right: 4px;
}
+/deep/ .el-pagination{
+ text-align: right;
+}
diff --git a/src/views/modules/communityService/policy/personList.vue b/src/views/modules/communityService/policy/personList.vue
index 1d5d6d8aa..69e67aaa5 100644
--- a/src/views/modules/communityService/policy/personList.vue
+++ b/src/views/modules/communityService/policy/personList.vue
@@ -122,6 +122,8 @@
+ 批量删除
+
{
+ this.deleteresiBatch(this.selectedPersonListIds);
+ })
+ .catch((err) => {
+ console.error(err);
+ this.$message.error("删除失败");
+ });
+ },
//编辑
async handelCLickShowCheckPassword(row) {
console.log(row);
@@ -347,7 +368,7 @@ export default {
})
.then(() => {
console.log(row);
- this.deleteresiBatch(row);
+ this.deleteresiBatch([row.id]);
})
.catch((err) => {
if (err == "cancel") {
@@ -357,11 +378,9 @@ export default {
this.$message.warning("请先选择要删除的居民");
}
},
- async deleteresiBatch(row) {
- console.log(row);
- let userIds = row.id;
+ async deleteresiBatch(ids) {
this.$http
- .post("/actual/base/findPersonList/deleteFindPersonByPolicyId/"+userIds)
+ .post("/actual/base/findPersonList/deleteFindPersonByPolicyId",{ids})
.then(({ data: res }) => {
console.log(res);
if (res.code !== 0) {
diff --git a/src/views/modules/communityService/wennuanzhaoren/personList.vue b/src/views/modules/communityService/wennuanzhaoren/personList.vue
index 827b35e6c..409a92d34 100644
--- a/src/views/modules/communityService/wennuanzhaoren/personList.vue
+++ b/src/views/modules/communityService/wennuanzhaoren/personList.vue
@@ -100,6 +100,7 @@
+ 批量删除
公众号消息推送
标记享受服务人员
查询
@@ -289,6 +290,25 @@ export default {
}
},
methods: {
+ onDeleteBatch() {
+ if (this.selectedPersonListIds.length == 0) {
+ this.$message.warning("请先选中至少一项");
+ return;
+ }
+
+ this.$confirm("删除之后无法恢复,确认删除?", "提示", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ })
+ .then(() => {
+ this.deleteresiBatch(this.selectedPersonListIds);
+ })
+ .catch((err) => {
+ console.error(err);
+ this.$message.error("删除失败");
+ });
+ },
//编辑
async handelCLickShowCheckPassword(row) {
console.log(row);
@@ -349,8 +369,7 @@ export default {
type: "warning",
})
.then(() => {
- console.log(row);
- this.deleteresiBatch(row);
+ this.deleteresiBatch([row.id]);
})
.catch((err) => {
if (err == "cancel") {
@@ -360,11 +379,9 @@ export default {
this.$message.warning("请先选择要删除的居民");
}
},
- async deleteresiBatch(row) {
- console.log(row);
- let userIds = row.id;
+ async deleteresiBatch(ids) {
this.$http
- .post("/actual/base/findPersonList/deleteFindPersonByServiceId/"+userIds)
+ .post("/actual/base/findPersonList/deleteFindPersonByServiceId",{ids})
.then(({ data: res }) => {
console.log(res);
if (res.code !== 0) {
@@ -610,8 +627,9 @@ export default {
console.log("获取导出情失败", err);
return this.$message.error("网络错误");
});
- },
- },
+ }
+},
+
props: {
serviceId: {
type: String,
@@ -627,7 +645,6 @@ export default {
}
},
-
}