|
|
@ -38,47 +38,47 @@ |
|
|
|
<div class="mt-10"> |
|
|
|
<el-table :data="tableData" border> |
|
|
|
<el-table-column label="测站名称"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ scope.row.stnm }}</span> |
|
|
|
<template #default="{ row }"> |
|
|
|
<span>{{ row.stnm }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="测站编码"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ scope.row.stcd }}</span> |
|
|
|
<template #default="{ row }"> |
|
|
|
<span>{{ row.stcd }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="测站类型"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ scope.row.sttp }}</span> |
|
|
|
<template #default="{ row }"> |
|
|
|
<span>{{ row.sttp }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="预警类型"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ scope.row.alarmType }}</span> |
|
|
|
<template #default="{ row }"> |
|
|
|
<span>{{ row.alarmType }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="监测数据"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ scope.row.monitorData }}</span> |
|
|
|
<template #default="{ row }"> |
|
|
|
<span>{{ row.monitorData }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="监测时间"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ scope.row.monitorTime }}</span> |
|
|
|
<template #default="{ row }"> |
|
|
|
<span>{{ row.monitorTime }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="预警值" width="100"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ scope.row.alarmValue }}</span> |
|
|
|
<template #default="{ row }"> |
|
|
|
<span>{{ row.alarmValue }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="预警时间"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ scope.row.alarmTime }}</span> |
|
|
|
<template #default="{ row }"> |
|
|
|
<span>{{ row.alarmTime }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<!-- <el-table-column label="操作" width="120"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template #default="{ row }"> |
|
|
|
<el-button type="text" size="small">告警处置</el-button> |
|
|
|
<el-button type="text" size="small">解除本次预警</el-button> |
|
|
|
</template> |
|
|
@ -88,7 +88,7 @@ |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<script setup lang="ts"> |
|
|
|
import { ref, reactive, onMounted, watch } from 'vue'; |
|
|
|
import { ref, watch } from 'vue'; |
|
|
|
import dayjs from 'dayjs'; |
|
|
|
import { getReservoirCZAlarmPageData } from '@/api/reservoir'; |
|
|
|
|
|
|
@ -120,7 +120,7 @@ watch( |
|
|
|
// getTableData(); |
|
|
|
// }); |
|
|
|
|
|
|
|
function getTableData() { |
|
|
|
function getTableData(code = '') { |
|
|
|
getReservoirCZAlarmPageData({ |
|
|
|
startDate: startDate.value + ' 00:00:00', |
|
|
|
endDate: endDate.value + ' 23:59:59', |
|
|
@ -132,7 +132,7 @@ function getTableData() { |
|
|
|
paramsData.value.total = res.total; |
|
|
|
}); |
|
|
|
} |
|
|
|
function handleChangeDate(value) { |
|
|
|
function handleChangeDate(value: any) { |
|
|
|
switch (value) { |
|
|
|
case '0': |
|
|
|
startDate.value = dayjs().subtract(1, 'month').format('YYYY-MM-DD HH:mm:ss'); |
|
|
|