测试用例修改

This commit is contained in:
sjl
2025-07-25 14:15:26 +08:00
parent f670802868
commit c47d524f9d
24 changed files with 118 additions and 49 deletions

View File

@@ -159,16 +159,21 @@ const init = (row: any) => {
},
xAxis: {
data: xData.map(num => `${num}次`)
},
yAxis: {
name: tabsList.value[activeName.value].unit // 更新Y轴单位
},
series: [
{
name: tabsList.value[activeName.value].groupName,
name: tabsList.value[activeName.value].groupName + '(' + tabsList.value[activeName.value].unit + ')' ,
type: 'bar',
data: xData.map(num => {
return tabsList.value[activeName.value].data[`h${num}`]
})
},
{
name: '国标限值(' + tabsList.value[activeName.value].unit + ')', // 更新series名称中的单位
type: 'bar',
data: xData.map(num => {
return (
crossTheLine.value[
@@ -192,21 +197,20 @@ const echarts = (num: number) => {
text: ''
},
xAxis: {
name: tabsList.value[num].unit,
name: "次数",
data: []
},
yAxis: {},
yAxis: {name: tabsList.value[num].unit},
color: ['#2E8B57', '#DAA520'],
options: {
series: [
{
name: tabsList.value[num].groupName,
type: 'bar',
data: []
},
{
name: '国标限值(%)',
name: '国标限值('+ tabsList.value[num].unit +')',
type: 'bar',
// label: {
// normal: {
@@ -221,8 +225,9 @@ const echarts = (num: number) => {
}
onMounted(() => {
tabsList.value[0].echartsData = echarts(0)
tabsList.value[0].echartsData = echarts(1)
tabsList.value[0].echartsData = echarts(2)
tabsList.value[1].echartsData = echarts(1)
tabsList.value[2].echartsData = echarts(2)
console.log(tabsList.value)
getOverLimitData({ id: monitoringPoint.state.lineId }).then(res => {
crossTheLine.value = res.data
})