|
@ -100,6 +100,7 @@ |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="div_btn"> |
|
|
<div class="div_btn"> |
|
|
|
|
|
<el-button type="primary" size="small" class="diy-button--blue" @click="onDeleteBatch">批量删除</el-button> |
|
|
<el-button type="primary" size="small" class="diy-button--blue" @click="onMessagePush">公众号消息推送</el-button> |
|
|
<el-button type="primary" size="small" class="diy-button--blue" @click="onMessagePush">公众号消息推送</el-button> |
|
|
<el-button type="primary" size="small" class="diy-button--blue" @click="handleIncrementServeTimes">标记享受服务人员</el-button> |
|
|
<el-button type="primary" size="small" class="diy-button--blue" @click="handleIncrementServeTimes">标记享受服务人员</el-button> |
|
|
<el-button type="primary" size="small" class="diy-button--blue" @click="handleSearch">查询</el-button> |
|
|
<el-button type="primary" size="small" class="diy-button--blue" @click="handleSearch">查询</el-button> |
|
@ -289,6 +290,25 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
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) { |
|
|
async handelCLickShowCheckPassword(row) { |
|
|
console.log(row); |
|
|
console.log(row); |
|
@ -349,8 +369,7 @@ export default { |
|
|
type: "warning", |
|
|
type: "warning", |
|
|
}) |
|
|
}) |
|
|
.then(() => { |
|
|
.then(() => { |
|
|
console.log(row); |
|
|
this.deleteresiBatch([row.id]); |
|
|
this.deleteresiBatch(row); |
|
|
|
|
|
}) |
|
|
}) |
|
|
.catch((err) => { |
|
|
.catch((err) => { |
|
|
if (err == "cancel") { |
|
|
if (err == "cancel") { |
|
@ -360,11 +379,9 @@ export default { |
|
|
this.$message.warning("请先选择要删除的居民"); |
|
|
this.$message.warning("请先选择要删除的居民"); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
async deleteresiBatch(row) { |
|
|
async deleteresiBatch(ids) { |
|
|
console.log(row); |
|
|
|
|
|
let userIds = row.id; |
|
|
|
|
|
this.$http |
|
|
this.$http |
|
|
.post("/actual/base/findPersonList/deleteFindPersonByServiceId/"+userIds) |
|
|
.post("/actual/base/findPersonList/deleteFindPersonByServiceId",{ids}) |
|
|
.then(({ data: res }) => { |
|
|
.then(({ data: res }) => { |
|
|
console.log(res); |
|
|
console.log(res); |
|
|
if (res.code !== 0) { |
|
|
if (res.code !== 0) { |
|
@ -610,8 +627,9 @@ export default { |
|
|
console.log("获取导出情失败", err); |
|
|
console.log("获取导出情失败", err); |
|
|
return this.$message.error("网络错误"); |
|
|
return this.$message.error("网络错误"); |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
props: { |
|
|
props: { |
|
|
serviceId: { |
|
|
serviceId: { |
|
|
type: String, |
|
|
type: String, |
|
@ -627,7 +645,6 @@ export default { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|