修改江西测试用例
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user