修改江西测试用例

This commit is contained in:
guanj
2025-07-24 09:32:24 +08:00
parent 40564ee283
commit fce9cf2ce0
6 changed files with 370 additions and 9 deletions

View File

@@ -14,7 +14,7 @@
v-model="formData.condition"
multiple
collapse-tags
:multiple-limit="5"
:multiple-limit="checked ? 1 : 3"
filterable
placeholder="请选择指标"
@change="conditionChange"
@@ -68,7 +68,13 @@
</el-form> -->
<div id="canvas" class="mt10" :style="height1" style="overflow-y: auto" v-loading="loading">
<my-echart :options="item.option" v-for="item in list" :style="height" @triggerPoint="triggerPoint" />
<my-echart
:options="item.option"
v-for="item in list"
style="min-height: 210px"
:style="height"
@triggerPoint="triggerPoint"
/>
</div>
</div>
<div :style="{ height: pageHeight.height }" style="padding: 10px; overflow: hidden" v-if="!view">
@@ -137,6 +143,7 @@ const typeOptions = ref([
{ label: 'cp95值', value: 4 }
])
onMounted(() => {
datePickerRef.value.setTheDate(5)
init()
})
const height: any = ref(mainHeight(200, 1))
@@ -144,6 +151,9 @@ const height1: any = ref(mainHeight(160))
const checkChange = () => {
if (checked.value) {
monitoringPoint.setShowCheckBox(true)
if (formData.condition.length > 0) {
formData.condition = formData.condition.slice(0, 1)
}
} else {
monitoringPoint.setShowCheckBox(false)
init()
@@ -157,6 +167,10 @@ const init = () => {
formData.lineId = checked.value ? monitoringPoint.state.lineIds : [monitoringPoint.state.lineId]
formData.searchBeginTime = datePickerRef.value.timeValue[0]
formData.searchEndTime = datePickerRef.value.timeValue[1]
if (formData.lineId.length > 3) {
return ElMessage.warning('最多只能选择3个监测点')
}
let directionValue = formData.condition.findIndex(item => {
if (item === '39') {
item = '50'
@@ -165,6 +179,7 @@ const init = () => {
return false
}
})
getHistoryResult(formData)
.then(async (res: any) => {
if (directionValue >= 0) {

View File

@@ -13,7 +13,7 @@ import User from '@/views/pqs/runManage/assessment/components/uese/index.vue'
import Assess from '@/views/pqs/runManage/assessment/components/assess/index.vue'
import Dictionary from '@/views/pqs/runManage/assessment/components/dictionary/index.vue'
defineOptions({
// name: 'runManage/assessment'
name: 'runManage/assessment'
})
const activeName = ref('1')
</script>

View File

@@ -109,7 +109,7 @@ const map = (res: any) => {
color: ['#ccc', '#07CCCA ']
},
min: 0,
max: res.reduce((max, obj) => Math.max(max, obj.value), 0),
max: res.reduce((max, obj) => Math.max(max, obj.value), 0) || 1,
calculable: true,
textStyle: {
color: '#000',

View File

@@ -46,6 +46,16 @@ const options3 = ref({})
const options4 = ref({})
const init = () => {
let label = {
normal: {
show: true,
textStyle: {
//数值样式
color: '#fff',
fontSize: 14
}
}
}
loading.value = true
formData.searchBeginTime = datePickerRef.value.timeValue[0]
formData.searchEndTime = datePickerRef.value.timeValue[1]
@@ -97,7 +107,7 @@ const init = () => {
data: res[0].data.map(item => item.name)
},
yAxis: {
name: '次数' // 给X轴加单位
name: '' // 给X轴加单位
},
color: ['#07CCCA', '#FFBF00'],
options: {
@@ -107,6 +117,7 @@ const init = () => {
type: 'bar',
barMaxWidth: 20,
stack: 'account',
// color: 'green',
data: res[0].data.map(item => item.onLine)
},
@@ -115,6 +126,7 @@ const init = () => {
type: 'bar',
barMaxWidth: 20,
stack: 'account',
// color: 'orange',
data: res[0].data.map(item => item.offLine)
}
@@ -136,7 +148,7 @@ const init = () => {
data: res[1].data.map(item => item.name)
},
yAxis: {
name: '次数' // 给X轴加单位
name: '' // 给X轴加单位
},
color: ['#07CCCA', '#FFBF00'],
options: {
@@ -146,6 +158,7 @@ const init = () => {
type: 'bar',
barMaxWidth: 20,
stack: 'account',
// color: 'green',
data: res[1].data.map(item => item.onLine)
},
@@ -154,6 +167,7 @@ const init = () => {
type: 'bar',
barMaxWidth: 20,
stack: 'account',
// color: 'orange',
data: res[1].data.map(item => item.offLine)
}
@@ -175,7 +189,7 @@ const init = () => {
data: res[0].data.map(item => item.name)
},
yAxis: {
name: '次' // 给X轴加单位
name: '次' // 给X轴加单位
},
color: ['#07CCCA', '#FFBF00', '#77DA63'],
options: {
@@ -184,6 +198,7 @@ const init = () => {
name: '暂降次数',
type: 'bar',
stack: 'account',
barWidth: 20,
data: res[0].data.map(item => item.sagsCount)
@@ -192,6 +207,7 @@ const init = () => {
name: '中断次数',
type: 'bar',
stack: 'account',
barWidth: 20,
data: res[0].data.map(item => item.breakCount)
@@ -200,6 +216,7 @@ const init = () => {
name: '暂升次数',
type: 'bar',
stack: 'account',
barWidth: 20,
data: res[0].data.map(item => item.upCount)
@@ -222,7 +239,7 @@ const init = () => {
data: res[1].data.map(item => item.name)
},
yAxis: {
name: '次'
name: '次'
},
options: {
series: [
@@ -230,6 +247,7 @@ const init = () => {
name: '暂降次数',
type: 'bar',
stack: 'account',
barWidth: 20,
data: res[1].data.map(item => item.sagsCount)
@@ -238,6 +256,7 @@ const init = () => {
name: '中断次数',
type: 'bar',
stack: 'account',
barWidth: 20,
data: res[1].data.map(item => item.breakCount)