diff --git a/src/api/AlertMock.ts b/src/api/AlertMock.ts index 0f48670..f5d004d 100644 --- a/src/api/AlertMock.ts +++ b/src/api/AlertMock.ts @@ -73,7 +73,7 @@ export interface Item { export async function alarmInfoListQuery( params: PagingQueryParams ): Promise> { - const response = await api.post('/api/alertRecord/page/detail', params); + const response = await api.get('/api/alertRecord/page/detail', { params }); return response.data; } diff --git a/src/api/DecisionInfo.ts b/src/api/DecisionInfo.ts index 0eff91e..0d594db 100644 --- a/src/api/DecisionInfo.ts +++ b/src/api/DecisionInfo.ts @@ -17,6 +17,8 @@ interface AlarmInfoCreateParams { export interface AlarmInfoListItem { id: number; + lineId: number; + lineType: string; alertType: string; timeConfigList: TimeConfigItem[]; areaConfigId: number; diff --git a/src/pages/DecisionInfoManage.vue b/src/pages/DecisionInfoManage.vue index 7e7e331..b9896a1 100644 --- a/src/pages/DecisionInfoManage.vue +++ b/src/pages/DecisionInfoManage.vue @@ -128,7 +128,7 @@ - + @@ -459,6 +459,8 @@ function onCreate() { function editData(row: AlarmInfoListItem) { creatForm.id = row.id + ''; + creatForm.lineId = row.lineId + ''; + creatForm.lineType = row.lineType; creatForm.alertType = (showAlertTypeData as never)[row.alertType + '']; creatForm.tipTimeIds = row.timeConfigList?.map( (timeConfig) => (ShowTipTimeConfig as never)[timeConfig.timeType + '']