修复行政区划树以及业务分组树的自动展开

This commit is contained in:
648540858
2024-09-27 11:17:45 +08:00
parent c3267403ba
commit 726380cec4
5 changed files with 33 additions and 20 deletions

View File

@@ -114,6 +114,7 @@ export default {
loading: false,
loadSnap: {},
regionId: "",
regionDeviceId: "",
multipleSelection: []
};
},
@@ -175,12 +176,12 @@ export default {
}
},
rowDblclick: function (row, rowIndex) {
if (row.gbCivilCode) {
this.$refs.regionTree.refresh(row.gbCivilCode)
}
// if (row.gbCivilCode) {
// this.$refs.regionTree.refresh(row.gbCivilCode)
// }
},
add: function (row) {
if (!this.regionId) {
if (!this.regionDeviceId) {
this.$message.info({
showClose: true,
message: "请选择左侧行政区划节点"
@@ -204,7 +205,7 @@ export default {
method: 'post',
url: `/api/common/channel/region/add`,
data: {
civilCode: this.regionId,
civilCode: this.regionDeviceId,
channelIds: channels
}
}).then((res)=> {
@@ -290,7 +291,8 @@ export default {
treeNodeClickEvent: function (device, data, isCatalog) {
},
chooseIdChange: function (id) {
chooseIdChange: function (id, deviceId) {
this.regionDeviceId = deviceId;
this.regionId = id;
},
}