From da4257bc32483409af02a06dd342c6981ec786ec Mon Sep 17 00:00:00 2001
From: liulijun <liulijun@hnkhzn.com>
Date: 星期一, 17 十一月 2025 17:14:14 +0800
Subject: [PATCH] 更新大屏幕页面和任务信息页面

---
 项目代码/BigScreen/src/common/echart/index.vue |   16 ++++++----------
 1 files changed, 6 insertions(+), 10 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/BigScreen/src/components/echart/index.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/BigScreen/src/common/echart/index.vue"
similarity index 75%
rename from "\351\241\271\347\233\256\344\273\243\347\240\201/BigScreen/src/components/echart/index.vue"
rename to "\351\241\271\347\233\256\344\273\243\347\240\201/BigScreen/src/common/echart/index.vue"
index 0ae38d4..6473245 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/BigScreen/src/components/echart/index.vue"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/BigScreen/src/common/echart/index.vue"
@@ -1,16 +1,11 @@
-<!--
- * @Author: daidai
- * @Date: 2022-02-28 16:29:08
- * @LastEditors: Please set LastEditors
- * @LastEditTime: 2022-09-27 15:05:45
- * @FilePath: \web-pc\src\pages\big-screen\components\echart\index.vue
--->
 <template>
   <div :id="id" :class="className" :style="{ height: height, width: width }" />
 </template>
 
 <script>
-import * as echarts from 'echarts';
+import tdTheme from './theme.json' // 寮曞叆榛樿涓婚
+import '../map/fujian.js'
+
 export default {
   name: 'echart',
   props: {
@@ -28,7 +23,7 @@
     },
     height: {
       type: String,
-      default: '100%'
+      default: '2.5rem'
     },
     options: {
       type: Object,
@@ -50,6 +45,7 @@
     }
   },
   mounted () {
+    this.$echarts.registerTheme('tdTheme', tdTheme); // 瑕嗙洊榛樿涓婚
     this.initChart();
   },
   beforeDestroy () {
@@ -59,7 +55,7 @@
   methods: {
     initChart () {
       // 鍒濆鍖杄chart
-      this.chart = echarts.init(this.$el)
+      this.chart = this.$echarts.init(this.$el, 'tdTheme')
       this.chart.setOption(this.options, true)
     }
   }

--
Gitblit v1.9.3