|
|
|
@ -10,6 +10,7 @@ import { BasicModal, useModalInner } from '@/components/Modal' |
|
|
|
import { BasicForm, useForm } from '@/components/Form' |
|
|
|
|
|
|
|
import { getExaHistorys } from '@/api/alert/exa' |
|
|
|
import {EXAHistoryReqVO} from "@/api/alert/warn"; |
|
|
|
|
|
|
|
const props = defineProps({ |
|
|
|
itemName: { |
|
|
|
@ -65,14 +66,9 @@ const [registerHistoryModal, { setModalProps }] = useModalInner(async (data) => |
|
|
|
}) |
|
|
|
|
|
|
|
async function handleSubmitR() { |
|
|
|
const serachFormData = getFieldsValue() |
|
|
|
const exaHistoryReqVO = getFieldsValue() as EXAHistoryReqVO |
|
|
|
loading.value = true |
|
|
|
const exaHistoryReqVO = { |
|
|
|
startTime: serachFormData.startTime, |
|
|
|
endTime: serachFormData.endTime, |
|
|
|
itemName: props.itemName, |
|
|
|
interval: 100, |
|
|
|
} |
|
|
|
exaHistoryReqVO.itemName = props.itemName |
|
|
|
historyData.value = await getExaHistorys(exaHistoryReqVO) |
|
|
|
|
|
|
|
loading.value = false |
|
|
|
|