From cfb813f540e11cbadf041b295c342b02da97da56 Mon Sep 17 00:00:00 2001
From: 付延余 <f-yanyu@outlook.com>
Date: 星期四, 28 四月 2022 15:55:00 +0800
Subject: [PATCH] 其他业务
---
src/pages/show/personnelTalents/personnelTalentsChild/PersonnelTalents_UnitPersonnel.vue | 32 ++++++++++++++++++++++++++------
1 files changed, 26 insertions(+), 6 deletions(-)
diff --git a/src/pages/show/personnelTalents/personnelTalentsChild/PersonnelTalents_UnitPersonnel.vue b/src/pages/show/personnelTalents/personnelTalentsChild/PersonnelTalents_UnitPersonnel.vue
index 2609e6a..963d7d5 100644
--- a/src/pages/show/personnelTalents/personnelTalentsChild/PersonnelTalents_UnitPersonnel.vue
+++ b/src/pages/show/personnelTalents/personnelTalentsChild/PersonnelTalents_UnitPersonnel.vue
@@ -46,7 +46,7 @@
</el-radio>
</el-radio-group>
</div>
- <div class="PT_unitPersonnel--Echarts"></div>
+ <div class="PT_unitPersonnel--Echarts" v-show="isShow"></div>
</div>
</div>
@@ -55,7 +55,7 @@
<script>
import nowSize from "../../../../libs/nowSize";
-import {getPersonTable} from '@/api/personnelTalents'
+import {getPersonTable} from '@/api/personnelTalents';
export default {
name: "PersonnelTalents_UnitPersonnel",
@@ -143,7 +143,13 @@
],
checkedCategory: '浜嬩笟鍗曚綅',
CARE_GORY: ['浜嬩笟鍗曚綅', '鍦ㄨ亴浜哄憳', '骞翠汉鍧囨敹鍏�'],
- tableHeight: window.innerHeight - nowSize(1000)
+ tableHeight: window.innerHeight - nowSize(1000),
+ isShow:true,
+ echartSeries:{
+ jumin:[120, 132, 101, 134, 90, 230],
+ chengzhen:[220, 182, 191, 234, 290, 330],
+ nongcun:[150, 232, 201, 154, 190, 330]
+ }
}
},
mounted() {
@@ -271,17 +277,17 @@
{
name: '灞呮皯浜哄潎鍙敮閰嶆敹鍏�',
type: 'line',
- data: [120, 132, 101, 134, 90, 230]
+ data: this.echartSeries.jumin
},
{
name: '鍩庨晣灞呮皯',
type: 'line',
- data: [220, 182, 191, 234, 290, 330]
+ data: this.echartSeries.chengzhen
},
{
name: '鍐滄潙灞呮皯',
type: 'line',
- data: [150, 232, 201, 154, 190, 330]
+ data: this.echartSeries.nongcun
}
]
};
@@ -293,6 +299,20 @@
// 閫氳繃鐐瑰嚮鏇存崲echarts鍥捐〃淇℃伅
selectEcharts(index) {
console.log(index);
+ switch(index){
+ case 0:
+ this.isShow = true;
+ this.echartSeries = {
+ jumin:[120, 132, 101, 134, 90, 230],
+ chengzhen:[220, 182, 191, 234, 290, 330],
+ nongcun:[150, 232, 201, 154, 190, 330]
+ }
+ this.Init_echarts()
+ break;
+ default:
+ this.isShow = false;
+ break;
+ }
},
// 29. 鏌ヨ浜嬩笟鍗曚綅浜哄憳鎯呭喌琛ㄦ牸鏁版嵁鎺ュ彛
getPersonTable() {
--
Gitblit v1.9.1