江西测试问题整改

This commit is contained in:
guanj
2025-07-16 18:31:31 +08:00
parent 2f5ab61e9c
commit 6f15ce04fb
53 changed files with 286 additions and 234 deletions

View File

@@ -1,6 +1,6 @@
<template>
<div>
<TableHeader date-picker ref="TableHeaderRef">
<TableHeader date-picker area ref="TableHeaderRef">
<template v-slot:select>
<el-form-item label="对象类型">
<el-select
@@ -17,6 +17,23 @@
></el-option>
</el-select>
</el-form-item>
<el-form-item label="终端厂家:">
<el-select
v-model="tableStore.table.params.manufacturer"
multiple
collapse-tags
clearable
value-key="id"
placeholder="请选择终端厂家"
>
<el-option
v-for="item in terminaloption"
:key="item.id"
:label="item.name"
:value="item"
></el-option>
</el-select>
</el-form-item>
</template>
<template v-slot:operation></template>
@@ -203,6 +220,7 @@ const TableHeaderRef = ref()
const abnormal: any = ref([])
const mapList: any = ref([])
const segmented = ref(1)
const terminaloption = dictData.getBasicData('Dev_Manufacturers')
const time = ref(['', ''])
const tableStore = new TableStore({
@@ -214,6 +232,7 @@ const tableStore = new TableStore({
column: [],
beforeSearchFun: () => {
loading.value = true
tableStore.table.params.deptId = tableStore.table.params.deptIndex
time.value = [tableStore.table.params.startTime, tableStore.table.params.endTime]
},
loadCallback: () => {
@@ -403,11 +422,11 @@ const echart = () => {
}
}
}
tableStore.table.params.deptId = dictData.state.area[0].id
// tableStore.table.params.deptId = dictData.state.area[0].id
tableStore.table.params.objType = ''
tableStore.table.params.alarmDayLimit = 5
tableStore.table.params.warnDayLimit = 1
tableStore.table.params.manufacturer = ''
const quantityClick = (e: any, num: number) => {
if (num == 0 && e.ids?.length == 0) return
alarmDetailsRef.value.open(e, time.value, num)
@@ -442,11 +461,11 @@ const onExport = () => {
})
}
onMounted(() => {
TableHeaderRef.value.setDatePicker([
{ label: '年份', value: 1 },
{ label: '季度', value: 2 },
{ label: '月份', value: 3 }
])
// TableHeaderRef.value.setDatePicker([
// { label: '年份', value: 1 },
// { label: '季度', value: 2 },
// { label: '月份', value: 3 }
// ])
queryFirstNode({ type: 0 }).then(res => {
objTypeList.value = res.data
})