From 22bbdc4cf63f0c82cafd445bc475e2128fcd43c3 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Thu, 16 Sep 2021 09:41:23 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.105:10010/r/zhba_regulatory
---
src/views/securityUnitOperation/operationAnalysis.vue | 63 +++++++++++++++----------------
1 files changed, 30 insertions(+), 33 deletions(-)
diff --git a/src/views/securityUnitOperation/operationAnalysis.vue b/src/views/securityUnitOperation/operationAnalysis.vue
index defe937..ebaee46 100644
--- a/src/views/securityUnitOperation/operationAnalysis.vue
+++ b/src/views/securityUnitOperation/operationAnalysis.vue
@@ -6,33 +6,27 @@
<div class="rowTitle">
<img src="../../../public/img/bajgxt/u1618.png" />
<span>数据概览</span>
-
- <!-- <el-select class="select0" v-model="value0" placeholder="请选择">
- <el-option
- v-for="item in options0"
- :key="item.value"
- :label="item.label"
- :value="item.value"
- ></el-option>
- </el-select> -->
- <el-select
+ <avue-input-tree
class="select1"
- ref="treeForm"
- v-model="node.title"
- placeholder="请选择"
- >
- <el-option style="height: auto;" :value="node">
- <el-tree
- :data="options1"
- default-expand-all
- node-key="id"
- @node-click="handleNodeClick"
- :props="props"
- >
- </el-tree>
- </el-option>
- </el-select>
- <el-select
+ default-expand-all
+ v-model="value1"
+ placeholder="请选择内容"
+ type="tree"
+ :dic="options1"
+ :props="props"
+ @change="handleNodeClick"
+ ></avue-input-tree>
+ <avue-input-tree
+ class="select2"
+ default-expand-all
+ v-model="value2"
+ placeholder="请选择公司"
+ type="tree"
+ :dic="options2"
+ :props="props2"
+ @change="changeCompanys"
+ ></avue-input-tree>
+ <!-- <el-select
class="select2"
v-model="value2"
placeholder="请选择"
@@ -44,7 +38,7 @@
:label="item.enterpriseName"
:value="item.departmentid"
></el-option>
- </el-select>
+ </el-select> -->
<el-button @click="toOperationTable">进入数据统计表</el-button>
</div>
@@ -219,15 +213,18 @@
label: "title",
value: "id"
},
+ props2: {
+ children: "children",
+ label: "enterpriseName",
+ value: "departmentid"
+ },
node: {} //选中的记录
};
},
methods: {
//点击节点
- handleNodeClick(data) {
- this.node = data;
- this.value1 = data.id;
- this.$refs.treeForm.blur();
+ handleNodeClick(id) {
+ this.value1 = id;
this.getCompanys();
},
setAgeEchart() {
@@ -509,7 +506,7 @@
}
}
// 适配分辨率1600*900
-@media screen and (min-width: 1281px)and (max-width: 1600px) {
+@media screen and (min-width: 1281px) and (max-width: 1600px) {
.box-card {
font-size: 15px;
width: 128px;
@@ -594,7 +591,7 @@
}
}
}
-@media screen and (min-width: 1601px)and (max-width: 1920px) {
+@media screen and (min-width: 1601px) and (max-width: 1920px) {
.box-card {
width: 150px;
background: #00aaf1;
--
Gitblit v1.9.3