为行政区划树以及业务分组树添加操作提示

pull/1719/head
648540858 2024-12-10 22:21:45 +08:00
parent f616cc7da2
commit ad07fa5eb7
2 changed files with 12 additions and 6 deletions

View File

@ -8,9 +8,10 @@
<el-main style="padding: 5px;"> <el-main style="padding: 5px;">
<div class="page-header"> <div class="page-header">
<div class="page-title"> <div class="page-title">
<el-breadcrumb separator="/"> <el-breadcrumb separator="/" v-if="regionParents.length > 0">
<el-breadcrumb-item v-for="key in regionParents" key="key">{{ key }}</el-breadcrumb-item> <el-breadcrumb-item v-for="key in regionParents" key="key">{{ key }}</el-breadcrumb-item>
</el-breadcrumb> </el-breadcrumb>
<div v-else style="color: #00c6ff">未选择虚拟组织</div>
</div> </div>
<div class="page-header-btn"> <div class="page-header-btn">
<div style="display: inline;"> <div style="display: inline;">
@ -121,7 +122,7 @@ export default {
groupDeviceId: "", groupDeviceId: "",
groupId: "", groupId: "",
businessGroup: "", businessGroup: "",
regionParents: ["请选择虚拟组织"], regionParents: [],
multipleSelection: [] multipleSelection: []
}; };
}, },
@ -289,7 +290,11 @@ export default {
treeNodeClickEvent: function (group) { treeNodeClickEvent: function (group) {
if (group.deviceId === "" || group.deviceId === group.businessGroup) { if (group.deviceId === "" || group.deviceId === group.businessGroup) {
this.channelList = [] this.channelList = []
this.regionParents = ["请选择虚拟组织"]; this.regionParents = [];
this.$message.info({
showClose: true,
message: "当前为业务分组,挂载通道请选择其下的虚拟组织,如不存在可右键新建"
})
return return
} }
this.groupDeviceId = group.deviceId; this.groupDeviceId = group.deviceId;

View File

@ -8,9 +8,10 @@
<el-main style="padding: 5px;"> <el-main style="padding: 5px;">
<div class="page-header"> <div class="page-header">
<div class="page-title"> <div class="page-title">
<el-breadcrumb separator="/"> <el-breadcrumb separator="/" v-if="regionParents.length > 0">
<el-breadcrumb-item v-for="key in regionParents" key="key">{{ key }}</el-breadcrumb-item> <el-breadcrumb-item v-for="key in regionParents" key="key">{{ key }}</el-breadcrumb-item>
</el-breadcrumb> </el-breadcrumb>
<div v-else style="color: #00c6ff">未选择行政区划</div>
</div> </div>
<div class="page-header-btn"> <div class="page-header-btn">
<div style="display: inline;"> <div style="display: inline;">
@ -116,7 +117,7 @@ export default {
loadSnap: {}, loadSnap: {},
regionId: "", regionId: "",
regionDeviceId: "", regionDeviceId: "",
regionParents: ["请选择行政区划"], regionParents: [],
multipleSelection: [] multipleSelection: []
}; };
}, },
@ -285,7 +286,7 @@ export default {
this.regionDeviceId = region.deviceId; this.regionDeviceId = region.deviceId;
if (region.deviceId === "") { if (region.deviceId === "") {
this.channelList = [] this.channelList = []
this.regionParents = ["请选择行政区划"]; this.regionParents = [];
} }
this.initData(); this.initData();
// regionDeviceId // regionDeviceId