From a5eec77bda16ee2cc09944e81c424ce74e014296 Mon Sep 17 00:00:00 2001
From: GGJ <357021191@qq.com>
Date: Mon, 30 Sep 2024 11:47:25 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8E=86=E5=8F=B2=E8=B6=8B?=
=?UTF-8?q?=E5=8A=BF=E6=95=B0=E6=8D=AE=E7=BB=84=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../govern/device/control/tabs/trend.vue | 141 ++++++++++--------
1 file changed, 81 insertions(+), 60 deletions(-)
diff --git a/src/views/govern/device/control/tabs/trend.vue b/src/views/govern/device/control/tabs/trend.vue
index 4ec2dd4..1542a07 100644
--- a/src/views/govern/device/control/tabs/trend.vue
+++ b/src/views/govern/device/control/tabs/trend.vue
@@ -59,6 +59,7 @@ import Table from '@/components/table/index.vue'
import TableHeader from '@/components/table/header/index.vue'
import { getTabsDataByType } from '@/api/cs-device-boot/EquipmentDelivery'
import DatePicker from '@/components/form/datePicker/index.vue'
+import { color, gradeColor3 } from '@/components/echarts/color'
const dictData = useDictData()
defineOptions({
name: 'govern/device/control'
@@ -147,20 +148,7 @@ const init = async () => {
})
//颜色数组
- const colorList = [
- '#DAA521',
- '#A5292A',
- 'aqua',
- '#d81e06',
- '#2E8B58',
- 'coral',
- '#012B6A',
- 'brown',
- '#70B601',
- 'blueviolet',
- '#1DD0CE',
- 'cadetblue'
- ]
+ const colorList = color
//选择的指标使用方法处理
initSearchFormIndexAndCount(searchForm.value.index)
//查询历史趋势
@@ -232,27 +220,49 @@ const init = async () => {
// }
}
},
- // tooltip: {
- // trigger: 'axis',
- // // axisPointer: {
- // // type: 'shadow'
- // // },
- // // formatter: function (params: any) {
- // // var res = params[0].name + '
'
- // // for (var i = 0, l = params.length; i < l; i++) {
- // // params[i].unit =
- // // echartsData.value.options.yAxis[
- // // echartsData.value.options.series[params[i].seriesIndex].yAxisIndex
- // // ]?.name
- // // res +=
- // // params[i].seriesName +
- // // ' ' +
- // // `