Commit 16b86937 authored by 赵啸非's avatar 赵啸非

Merge remote-tracking branch 'origin/master'

parents 2a8c262b 83beff3e
<!-- <template> <template>
<admin-layout> <admin-layout>
<contextmenu <contextmenu
:itemList="menuItemList" :itemList="menuItemList"
...@@ -395,4 +395,4 @@ export default { ...@@ -395,4 +395,4 @@ export default {
margin: 0 auto; margin: 0 auto;
} }
} }
</style> --> </style>
...@@ -391,14 +391,13 @@ export default { ...@@ -391,14 +391,13 @@ export default {
} }
}, },
// 获取批量加入id // 获取批量加入id
onRightSelectChange(key, data) { onRightSelectChange(key) {
this.selectedRowKeys = key; this.selectedRowKeys = key;
this.matterIds = data.map((v) => v.id).join(",");
}, },
// 批量加入 // 批量加入
handleAddAll() { handleAddAll() {
if (this.matterIds) { if (this.selectedRowKeys.length) {
this.handleIn(this.matterIds); this.handleIn(this.selectedRowKeys.join(","));
} else { } else {
this.$message.warning("请先勾选数据"); this.$message.warning("请先勾选数据");
return; return;
...@@ -439,14 +438,14 @@ export default { ...@@ -439,14 +438,14 @@ export default {
return; return;
} }
let res = await addMatterToSite({ let res = await addMatterToSite({
siteId: this.siteId, siteId: Number(this.siteId),
matterIds: String(matterId), matterIds: String(matterId),
}); });
if (res.data.code === 1) { let { code, msg } = res.data;
this.$message.success("加入成功"); if (code === 1) {
this.$message.success(msg);
this.getMatterSiteData(); this.getMatterSiteData();
this.selectedRowKeys = []; this.selectedRowKeys = [];
this.matterIds = "";
this.$bus.$emit("addMatterSiteData"); this.$bus.$emit("addMatterSiteData");
} else { } else {
this.$message.error("加入失败"); this.$message.error("加入失败");
......
...@@ -663,15 +663,13 @@ export default { ...@@ -663,15 +663,13 @@ export default {
let res = await addBatchSave(this.allCorrelationData); let res = await addBatchSave(this.allCorrelationData);
let { code, msg } = res.data; let { code, msg } = res.data;
if (code === 1) { if (code === 1) {
this.$message.success("保存业务事项关联成功"); this.$message.success(msg);
this.isCorrelation = false; this.isCorrelation = false;
this.iscConfirmLoading = false; this.iscConfirmLoading = false;
this.getBusinessMatterData(); this.getBusinessMatterData();
this.$refs.formData.resetFields(); this.$refs.formData.resetFields();
this.selectedRowKeys = []; this.selectedRowKeys = [];
this.allCorrelationData = []; this.allCorrelationData = [];
} else {
this.$message.error(msg);
} }
} }
}); });
......
...@@ -11,7 +11,6 @@ export default { ...@@ -11,7 +11,6 @@ export default {
return {}; return {};
}, },
created() { created() {
console.log(process.env.VUE_APP_API_BASE_URL);
this.getToken(); this.getToken();
}, },
methods: { methods: {
...@@ -23,9 +22,9 @@ export default { ...@@ -23,9 +22,9 @@ export default {
this.$router.push("basicset/website"); this.$router.push("basicset/website");
} else { } else {
this.$message.warning("跳转失败,请重新登录"); this.$message.warning("跳转失败,请重新登录");
// setTimeout(() => { setTimeout(() => {
// location.href = process.env.VUE_APP_API_portal_URL + "/#/"; location.href = process.env.VUE_APP_API_portal_URL + "/#/";
// }, 2000); }, 2000);
} }
}, },
}, },
......
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