增加字段

This commit is contained in:
joylink_zhaoerwei 2023-08-24 16:14:21 +08:00
parent 13e7d78f1b
commit 4e72128bbd
3 changed files with 12 additions and 5 deletions

View File

@ -38,14 +38,18 @@ export async function alarmInfoListQuery(
/**
*
* @param recordId id
* * @param tipId id
* @param id id
* @param tipType
* @param alertLocationId id
*/
export function recordConfirmAlarmInfoByTipType(
id: number,
tipType: string
tipType: string,
alertLocationId?: number
): Promise<AlarmInfo<Item>> {
return api.get(`/api/alertRecord/confirm/${id}/${tipType}`);
return api.get(`/api/alertRecord/confirm/${id}/${tipType}`, {
params: alertLocationId,
});
}
/**

View File

@ -120,6 +120,7 @@ const alarmInfo = ref({
alertObject: '',
alertType: '',
locator_device_id: '',
alert_location_id: '',
});
const drivingInfo = ref('');
const submissionInfo = ref('');
@ -183,7 +184,8 @@ async function searchByTipType() {
const type = (saveAlertTypeData as never)[faultType.value];
const response = await recordConfirmAlarmInfoByTipType(
+messageUse.id,
type
type,
messageUse.alert_location_id
);
drivingInfo.value = JSON.parse(response.data.drivingInfo);
submissionInfo.value = JSON.parse(response.data.submissionInfo);

View File

@ -14,6 +14,7 @@ export interface AlarmInfo {
alert_object: string;
alert_type: number;
locator_device_id: string;
alert_location_id: number;
alarmStatus?: number;
}
export const useLineNetStore = defineStore('lineNet', {