Merge branch 'develop' of https://gitea.joylink.club/joylink/xian-ncc-da-client into develop
This commit is contained in:
commit
b8d08b40bb
|
@ -73,7 +73,7 @@ export interface Item {
|
|||
export async function alarmInfoListQuery(
|
||||
params: PagingQueryParams
|
||||
): 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;
|
||||
}
|
||||
|
||||
|
|
|
@ -17,6 +17,8 @@ interface AlarmInfoCreateParams {
|
|||
|
||||
export interface AlarmInfoListItem {
|
||||
id: number;
|
||||
lineId: number;
|
||||
lineType: string;
|
||||
alertType: string;
|
||||
timeConfigList: TimeConfigItem[];
|
||||
areaConfigId: number;
|
||||
|
|
|
@ -128,7 +128,7 @@
|
|||
</q-card-section>
|
||||
|
||||
<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-card-actions>
|
||||
</q-form>
|
||||
|
@ -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 + '']
|
||||
|
|
Loading…
Reference in New Issue