测试用例修改

This commit is contained in:
sjl
2025-07-28 13:24:01 +08:00
parent e90cecfb5b
commit 6305a38e9d
8 changed files with 61 additions and 25 deletions

View File

@@ -217,6 +217,7 @@ const tableStore = new TableStore({
showPage: false,
url: '/device-boot/LineIntegrityData/getLineIntegrityData',
method: 'POST',
column: [
{
title: formData.value.statisticalType.name,
@@ -229,7 +230,7 @@ const tableStore = new TableStore({
return row.cellValue ? row.cellValue : '/'
}
},
{
{
title: formData.value.statisticalType.name,
field: 'name',
align: 'left',
@@ -454,11 +455,11 @@ watch(
() => tableStore.table,
(val) => {
if(val.data.length > 0){
tableStore.table.column[0].visible = true
tableStore.table.column[1].visible = false
tableStore.table.column[0].visible = true
tableStore.table.column[1].visible = false
}else{
tableStore.table.column[0].visible = false
tableStore.table.column[1].visible = true
tableStore.table.column[0].visible = false
tableStore.table.column[1].visible = true
}
},
{

View File

@@ -75,6 +75,7 @@ const info = () => {
clickRow(List.value[0], 0)
setTime()
})
}
const setTime = () => {
timer.value = setInterval(() => {
@@ -83,7 +84,6 @@ const setTime = () => {
} else {
rowColor.value += 1
}
clickRow(List.value[rowColor.value], rowColor.value)
}, 1000 * 5)
}

View File

@@ -15,7 +15,6 @@ const height = mainHeight(330, 3)
const chartRef = ref<HTMLDivElement>()
const info = (item: any) => {
let chart = echarts.init(chartRef.value as HTMLDivElement)
let everyDepartment = {
stages: [
{ name: '在线率', max: 100 },
@@ -24,7 +23,7 @@ const info = (item: any) => {
],
scores: [item.onLineRate, item.passRate, item.integrityRate]
}
function contains(arr, obj) {
var i = arr.length
while (i--) {