Commit 4c40ca22 authored by “yiyousong”'s avatar “yiyousong”

fix:修改业务事项管理

parent 1e8a1f1e
......@@ -391,14 +391,13 @@ export default {
}
},
// 获取批量加入id
onRightSelectChange(key, data) {
onRightSelectChange(key) {
this.selectedRowKeys = key;
this.matterIds = data.map((v) => v.id).join(",");
},
// 批量加入
handleAddAll() {
if (this.matterIds) {
this.handleIn(this.matterIds);
if (this.selectedRowKeys.length) {
this.handleIn(this.selectedRowKeys.join(","));
} else {
this.$message.warning("请先勾选数据");
return;
......@@ -439,14 +438,14 @@ export default {
return;
}
let res = await addMatterToSite({
siteId: this.siteId,
siteId: Number(this.siteId),
matterIds: String(matterId),
});
if (res.data.code === 1) {
this.$message.success("加入成功");
let { code, msg } = res.data;
if (code === 1) {
this.$message.success(msg);
this.getMatterSiteData();
this.selectedRowKeys = [];
this.matterIds = "";
this.$bus.$emit("addMatterSiteData");
} else {
this.$message.error("加入失败");
......
......@@ -663,15 +663,13 @@ export default {
let res = await addBatchSave(this.allCorrelationData);
let { code, msg } = res.data;
if (code === 1) {
this.$message.success("保存业务事项关联成功");
this.$message.success(msg);
this.isCorrelation = false;
this.iscConfirmLoading = false;
this.getBusinessMatterData();
this.$refs.formData.resetFields();
this.selectedRowKeys = [];
this.allCorrelationData = [];
} else {
this.$message.error(msg);
}
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment