修改测试问题

This commit is contained in:
guanj
2026-06-12 11:02:46 +08:00
parent 1a09c31669
commit 1c01fe5ae1
15 changed files with 268 additions and 175 deletions

View File

@@ -32,9 +32,6 @@
</template>
<template v-slot:operation>
<el-button type="primary" @click="search" icon="el-icon-Search">查询</el-button>
<el-button :type="timeControl ? 'primary' : ''" icon="el-icon-Sort" @click="setTimeControl">
缺失数据
</el-button>
</template>
</TableHeader>
</div>
@@ -58,7 +55,7 @@ import { queryByCode, queryCsDictTree } from '@/api/system-boot/dictTree'
import { queryCommonStatisticalByTime } from '@/api/cs-harmonic-boot/stable'
import DatePicker from '@/components/form/datePicker/index.vue'
import MyEchart from '@/components/echarts/MyEchart.vue'
import { yMethod, completeTimeSeries } from '@/utils/echartMethod'
import { yMethod, exportSeriesCSV, completeTimeSeries } from '@/utils/echartMethod'
import TableHeader from '@/components/table/header/index.vue'
const MAX_CHECK = 2
@@ -308,7 +305,7 @@ const setEchart = () => {
itemHeight: 20,
itemStyle: { opacity: 0 },
type: 'scroll',
top: 25
},
grid: {
left: '20px',
@@ -317,7 +314,29 @@ const setEchart = () => {
top: '80px',
containLabel: true
},
toolbox: { feature: { saveAsImage: {} } },
toolbox: {
featureProps: {
myTool1: {
show: true,
title: '下载csv',
icon: 'path://M642 673.1H301.6c-9.9 0-17.9-8-17.9-17.9s8-17.9 17.9-17.9H642c9.9 0 17.9 8 17.9 17.9s-8 17.9-17.9 17.9zM642 511.8H301.6c-9.9 0-17.9-8-17.9-17.9 0-9.9 8-17.9 17.9-17.9H642c9.9 0 17.9 8 17.9 17.9 0 9.9-8 17.9-17.9 17.9zM480.7 350.6H301.6c-9.9 0-17.9-8-17.9-17.9s8-17.9 17.9-17.9h179.2c9.9 0 17.9 8 17.9 17.9s-8.1 17.9-18 17.9zM874.9 350.6H695.7c-49.4 0-89.6-40.2-89.6-89.6V81.9c0-9.9 8-17.9 17.9-17.9 9.9 0 17.9 8 17.9 17.9V261c0 29.6 24.1 53.7 53.7 53.7h179.2c9.9 0 17.9 8 17.9 17.9s-7.9 18-17.8 18zM794.3 959.7H221c-49.4 0-89.6-40.2-89.6-89.6V153.5c0-49.4 40.2-89.6 89.6-89.6h403.1c4.8 0 9.3 1.9 12.7 5.2L887.6 320c3.4 3.4 5.2 7.9 5.2 12.7v537.5c0 52.7-51.9 89.5-98.5 89.5zM221 99.8c-29.6 0-53.7 24.1-53.7 53.7v716.6c0 29.6 24.1 53.7 53.7 53.7h573.3c29 0 62.7-23.5 62.7-53.7v-530L616.7 99.8H221z',
onclick: () => {
const chartTitle =
zblist.value.filter(item => item.id == formInline.statisticalId)[0]?.name || '稳态数据'
exportSeriesCSV(echartsData.value.options.series, `${chartTitle}.csv`)
}
},
myTool2: {
show: true,
title: timeControl.value ? '关闭缺失数据' : '缺失数据',
icon: 'path://M832 512l-192-192v128H128v128h512v128l192-192zM192 512l192 192v-128h512v-128H384V320L192 512z',
iconStyle: timeControl.value ? { borderColor: '#409EFF' } : {},
onclick: () => {
setTimeControl()
}
}
}
},
color,
xAxis: {
name: '',