From 5044db830b35aeb7424c0f3081dcf78e6c314d8e Mon Sep 17 00:00:00 2001 From: joylink_zhaoerwei Date: Mon, 21 Oct 2024 11:19:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8A=A5=E8=AD=A6=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/AlertMock.ts | 2 +- src/api/DecisionInfo.ts | 2 ++ src/pages/DecisionInfoManage.vue | 4 +++- 3 files changed, 6 insertions(+), 2 deletions(-) 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 + '']