修改报警接口
This commit is contained in:
parent
31ae2f378d
commit
5044db830b
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
@ -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 + '']
|
||||||
|
Loading…
Reference in New Issue
Block a user