Commit 9470329d authored by 王晓旭's avatar 王晓旭

修改左边下拉框

parent c9537f15
...@@ -334,11 +334,11 @@ export default { ...@@ -334,11 +334,11 @@ export default {
if (res.code == 1) { if (res.code == 1) {
this.statData = res.data.data[0]; this.statData = res.data.data[0];
} else { } else {
this.$message.error(res.msg); this.$message.error(res.data);
} }
}) })
.catch((error) => { .catch((error) => {
this.$message.error(error.message); this.$message.error('同步统计设备中,请稍后再统计!');
}); });
}, },
......
...@@ -9,24 +9,27 @@ ...@@ -9,24 +9,27 @@
>切换为列表模式</el-button >切换为列表模式</el-button
> >
</div> </div>
<el-scrollbar style="height: 100%"> <div style="height: calc(100vh - 220px); overflow: auto;">
<el-tree <el-scrollbar style="height: 100%;">
size="mini" <el-tree
ref="siteTree" size="mini"
:data="areaData" ref="siteTree"
id="el-tree" :data="areaData"
node-key="id" id="el-tree"
indent="4" node-key="id"
:props="treeProps" indent="4"
:load="loadNode" :props="treeProps"
highlight-current :load="loadNode"
default-expand-all highlight-current
:expand-on-click-node="false" default-expand-all
:render-content="renderContent" :expand-on-click-node="false"
@node-click="handleNodeClick" :render-content="renderContent"
> @node-click="handleNodeClick"
</el-tree> >
</el-scrollbar> </el-tree>
</el-scrollbar>
</div>
</el-card> </el-card>
</el-row> </el-row>
<el-row :gutter="20" slot="rightTop" class="mytree"> <el-row :gutter="20" slot="rightTop" class="mytree">
...@@ -368,7 +371,8 @@ export default { ...@@ -368,7 +371,8 @@ export default {
width: 0; width: 0;
} }
.listbody { .listbody {
max-height: 700px; // max-height: 700px;
max-height: calc(100vh - 220px);
overflow: auto; overflow: auto;
.listtop { .listtop {
display: flex; display: flex;
...@@ -422,6 +426,9 @@ export default { ...@@ -422,6 +426,9 @@ export default {
border-bottom: 3px solid rgb(20, 134, 248); border-bottom: 3px solid rgb(20, 134, 248);
padding-bottom: 2px; padding-bottom: 2px;
} }
::v-deep .el-scrollbar__wrap{
overflow-x: unset !important;
}
.mytree ::v-deep { .mytree ::v-deep {
.el-tree--highlight-current .el-tree--highlight-current
::v-deep ::v-deep
......
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