增加字段
This commit is contained in:
parent
13e7d78f1b
commit
4e72128bbd
@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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);
|
||||
|
@ -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', {
|
||||
|
Loading…
Reference in New Issue
Block a user