|
|
|
@ -738,22 +738,18 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
confirmBatch() { |
|
|
|
if (this.selection.length > 0) { |
|
|
|
this.$confirm("是否确认信息", "提示", { |
|
|
|
confirmButtonText: "确定", |
|
|
|
cancelButtonText: "取消", |
|
|
|
type: "warning", |
|
|
|
this.$confirm("是否确认信息", "提示", { |
|
|
|
confirmButtonText: "确定", |
|
|
|
cancelButtonText: "取消", |
|
|
|
type: "warning", |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
this.confirresiBatch(); |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
this.confirresiBatch(); |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
if (err == "cancel") { |
|
|
|
} |
|
|
|
}); |
|
|
|
} else { |
|
|
|
this.$message.warning("请先选择要确认信息的居民"); |
|
|
|
} |
|
|
|
.catch((err) => { |
|
|
|
if (err == "cancel") { |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
handleSizeChange(val) { |
|
|
|
console.log(`每页 ${val} 条`); |
|
|
|
@ -1093,26 +1089,27 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
async confirresiBatch() { |
|
|
|
if (this.selection.length === 0) |
|
|
|
return this.$message.error("请选择之后进行操作"); |
|
|
|
let orgId = this.selection.map((item) => item.resiId); |
|
|
|
console.log(this.selection); |
|
|
|
let _obj = JSON.parse(JSON.stringify(this.$refs.myResiSearch.form)); |
|
|
|
_obj.attentionCrowds = _obj.attentionCrowds.flat(); |
|
|
|
|
|
|
|
const url = `/actual/base/residentCategoryUpdateInfo/unchangeMultiUpdate`; |
|
|
|
let parm = { |
|
|
|
orgId:orgId, |
|
|
|
orgType: "agency", |
|
|
|
pageNo: 1, |
|
|
|
pageSize: 100 |
|
|
|
|
|
|
|
}; |
|
|
|
const { data, code, msg } = await requestPost(url, parm); |
|
|
|
console.log(data, "data"); |
|
|
|
if (code !== 0) { |
|
|
|
return this.$message.error(msg); |
|
|
|
} else { |
|
|
|
this.$message.success("确认成功"); |
|
|
|
this.handleSearchFrom(); |
|
|
|
} |
|
|
|
|
|
|
|
let params = { |
|
|
|
pageNo: 1, |
|
|
|
pageSize: 100, |
|
|
|
..._obj, |
|
|
|
}; |
|
|
|
|
|
|
|
console.log(params); |
|
|
|
|
|
|
|
const { data, code, msg } = await requestPost(url, params); |
|
|
|
console.log(data, "data"); |
|
|
|
if (code !== 0) { |
|
|
|
return this.$message.error(msg); |
|
|
|
} else { |
|
|
|
this.$message.success("确认成功"); |
|
|
|
this.handleSearchFrom(); |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
async deleteresiBatch() { |
|
|
|
|