From 60930863e57b14c4d852cdae1ec3d270e8deda95 Mon Sep 17 00:00:00 2001
From: ZhangXianQiang <1135831638@qq.com>
Date: 星期二, 19 三月 2024 16:44:34 +0800
Subject: [PATCH] feat:考核数据

---
 src/views/screen/components/screen-examine/components/examine-chart.vue |   74 +++++++++++++++++++++---------------
 1 files changed, 43 insertions(+), 31 deletions(-)

diff --git a/src/views/screen/components/screen-examine/components/examine-chart.vue b/src/views/screen/components/screen-examine/components/examine-chart.vue
index 0a6b467..3146d3d 100644
--- a/src/views/screen/components/screen-examine/components/examine-chart.vue
+++ b/src/views/screen/components/screen-examine/components/examine-chart.vue
@@ -1,61 +1,73 @@
 <template>
   <div class="chart-container">
-    <div class="rank-chart" ref="rankChart"></div>
+    <div class="rank-chart">
+      <div class="hola-item" v-for="item in dataList" :key="item.id">
+        <examine-hola :startColor="'#02C77E'" :endColor="'#017770'" :centerValue="item.value"
+          :bottomTitle="item.name"></examine-hola>
+      </div>
+    </div>
   </div>
 </template>
 
 <script>
 import * as echarts from 'echarts';
+import ExamineHola from './examine-hola.vue';
 let barChart = null;
 export default {
   name: 'ExamineChart',
+  components: {
+    ExamineHola
+  },
   data() {
     return {
-
+      dataList: [
+        {id: 1,name: '骞冲彴鍦ㄧ嚎鐜�', value: 60},
+        {id: 2,name: '涓�鏈轰竴妗e悎鏍肩巼', value: 20},
+        {id: 3,name: '妗f鑰冩牳姣�', value: 60},
+        {id: 4,name: '鐐逛綅鍦ㄧ嚎鐜�', value: 40},
+        {id: 5,name: '褰曞儚鍙敤鐜�', value: 80},
+        {id: 6,name: '閲嶇偣鐐逛綅褰曞儚鍙敤鐜�', value: 20},
+        {id: 7,name: '鏍囨敞姝g‘鐜�', value: 24},
+        {id: 8,name: '瑙嗗浘搴撳鎺ョǔ瀹氭��', value: 25},
+        {id: 9,name: '淇℃伅閲囬泦鍑嗙‘鐜�', value: 75},
+        {id: 10,name: '杞﹁締鍗″彛璁惧鏃堕挓鍑嗙‘鎬�', value: 12},
+        {id: 11,name: '璁惧鎶撴媿鍥剧墖鏃堕挓鍑嗙‘鎬�', value: 82},
+        {id: 12,name: '浜鸿劯鍗″彛淇℃伅閲囬泦鍑嗙‘鐜�', value: 13},
+        {id: 13,name: '璁惧鎶撴媿鍥剧墖鍚堟牸鎬�', value: 91},
+        {id: 14,name: '璁惧鎶撴媿鍥剧墖鏃堕挓鍑嗙‘鎬�', value: 12},
+        {id: 15,name: '骞冲彴鍦ㄧ嚎鐜�', value: 42},
+      ]
     }
   },
 
   methods: {
-    initChart() {
-      const options = {
-        xAxis: {
-          type: 'category',
-          data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
-        },
-        yAxis: {
-          type: 'value'
-        },
-        series: [
-          {
-            data: [120, 200, 150, 80, 70, 110, 130],
-            type: 'bar'
-          }
-        ]
-      }
-      barChart.setOption(options,true);
-    }
+
+
   },
   mounted() {
-    barChart = echarts.init(this.$refs.rankChart);
-
-    this.initChart();
-  },
-  beforeDestroy() {
-    if (lineChart) {
-      barChart.dispose();
-    }
-  },
-
+  }
 }
 </script>
 
 <style lang="scss" scoped>
 .chart-container {
   width: 100%;
-  height: 400px;
+  height: 100%;
+
   .rank-chart {
     width: 100%;
     height: 100%;
+    display: flex;
+    justify-content: space-between;
+    flex-wrap: wrap;
+    align-content: space-between;
+
+    .hola-item {
+      flex-shrink: 0;
+      width: 180px;
+      height: 150px;
+      color: #008000
+    }
   }
 }
 </style>
\ No newline at end of file

--
Gitblit v1.8.0