This commit is contained in:
joylink_fanyuhong 2024-10-21 14:56:07 +08:00
commit b8d08b40bb
3 changed files with 6 additions and 2 deletions

View File

@ -73,7 +73,7 @@ export interface Item {
export async function alarmInfoListQuery( export async function alarmInfoListQuery(
params: PagingQueryParams params: PagingQueryParams
): Promise<PageDto<Item>> { ): Promise<PageDto<Item>> {
const response = await api.post('/api/alertRecord/page/detail', params); const response = await api.get('/api/alertRecord/page/detail', { params });
return response.data; return response.data;
} }

View File

@ -17,6 +17,8 @@ interface AlarmInfoCreateParams {
export interface AlarmInfoListItem { export interface AlarmInfoListItem {
id: number; id: number;
lineId: number;
lineType: string;
alertType: string; alertType: string;
timeConfigList: TimeConfigItem[]; timeConfigList: TimeConfigItem[];
areaConfigId: number; areaConfigId: number;

View File

@ -128,7 +128,7 @@
</q-card-section> </q-card-section>
<q-card-actions align="right"> <q-card-actions align="right">
<q-btn color="primary" label="创建" type="submit" /> <q-btn color="primary" label="确定" type="submit" />
<q-btn label="取消" type="reset" v-close-popup /> <q-btn label="取消" type="reset" v-close-popup />
</q-card-actions> </q-card-actions>
</q-form> </q-form>
@ -459,6 +459,8 @@ function onCreate() {
function editData(row: AlarmInfoListItem) { function editData(row: AlarmInfoListItem) {
creatForm.id = row.id + ''; creatForm.id = row.id + '';
creatForm.lineId = row.lineId + '';
creatForm.lineType = row.lineType;
creatForm.alertType = (showAlertTypeData as never)[row.alertType + '']; creatForm.alertType = (showAlertTypeData as never)[row.alertType + ''];
creatForm.tipTimeIds = row.timeConfigList?.map( creatForm.tipTimeIds = row.timeConfigList?.map(
(timeConfig) => (ShowTipTimeConfig as never)[timeConfig.timeType + ''] (timeConfig) => (ShowTipTimeConfig as never)[timeConfig.timeType + '']