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 +
- // // ' ' +
- // // `