优化分组树,行政区划树的展示

This commit is contained in:
648540858
2024-09-26 15:57:55 +08:00
parent 97b0616039
commit c3267403ba
9 changed files with 16 additions and 7 deletions

View File

@@ -16,7 +16,7 @@
<vue-easy-tree
class="flow-tree"
ref="veTree"
node-key="deviceId"
node-key="treeId"
height="78vh"
lazy
style="padding: 0 0 2rem 0.5rem"
@@ -74,6 +74,7 @@ export default {
loadNode: function (node, resolve) {
if (node.level === 0) {
resolve([{
treeId: "",
deviceId: "",
name: "根资源组",
isLeaf: false,

View File

@@ -16,7 +16,7 @@
<vue-easy-tree
class="flow-tree"
ref="veTree"
node-key="deviceId"
node-key="treeId"
height="78vh"
lazy
style="padding: 0 0 2rem 0.5rem"
@@ -74,6 +74,7 @@ export default {
loadNode: function (node, resolve) {
if (node.level === 0) {
resolve([{
treeId: "",
deviceId: "",
name: "根资源组",
isLeaf: false,

View File

@@ -67,8 +67,8 @@
<el-table-column label="添加状态" min-width="100">
<template slot-scope="scope">
<div slot="reference" class="name-wrapper">
<el-tag size="medium" :title="scope.row.gbBusinessGroupId" v-if="scope.row.gbBusinessGroupId">已添加</el-tag>
<el-tag size="medium" type="info" v-if="!scope.row.gbBusinessGroupId">未添加</el-tag>
<el-tag size="medium" :title="scope.row.gbParentId" v-if="scope.row.gbParentId">已添加</el-tag>
<el-tag size="medium" type="info" v-if="!scope.row.gbParentId">未添加</el-tag>
</div>
</template>
</el-table-column>