决策信息接口修改
This commit is contained in:
parent
477aad487b
commit
ce0d4076c4
@ -7,7 +7,8 @@ export interface createParams {
|
|||||||
alertType: string;
|
alertType: string;
|
||||||
timeType: string;
|
timeType: string;
|
||||||
locationType: string;
|
locationType: string;
|
||||||
infoJson: string;
|
drivingInfo: string;
|
||||||
|
submissionInfo: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Item {
|
interface Item {
|
||||||
@ -15,7 +16,8 @@ interface Item {
|
|||||||
alertType: string;
|
alertType: string;
|
||||||
timeType: string;
|
timeType: string;
|
||||||
locationType: string;
|
locationType: string;
|
||||||
infoJson: string;
|
drivingInfo: string;
|
||||||
|
submissionInfo: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class PagingQueryParams extends PageQueryDto {
|
export class PagingQueryParams extends PageQueryDto {
|
||||||
|
@ -83,8 +83,14 @@
|
|||||||
/>
|
/>
|
||||||
<q-input
|
<q-input
|
||||||
outlined
|
outlined
|
||||||
label="提示信息"
|
label="行车方面"
|
||||||
v-model="creatForm.infoJson"
|
v-model="creatForm.drivingInfo"
|
||||||
|
lazy-rules
|
||||||
|
/>
|
||||||
|
<q-input
|
||||||
|
outlined
|
||||||
|
label="信息报送方面"
|
||||||
|
v-model="creatForm.submissionInfo"
|
||||||
lazy-rules
|
lazy-rules
|
||||||
/>
|
/>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
@ -154,11 +160,21 @@ const columnDefs: QTableColumn[] = [
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'infoJson',
|
name: 'drivingInfo',
|
||||||
label: '提示信息',
|
label: '行车方面',
|
||||||
field: (row) => {
|
field: (row) => {
|
||||||
if (row.infoJson) {
|
if (row.drivingInfo) {
|
||||||
return JSON.parse(row.infoJson);
|
return JSON.parse(row.drivingInfo);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
align: 'center',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'submissionInfo',
|
||||||
|
label: '信息报送方面',
|
||||||
|
field: (row) => {
|
||||||
|
if (row.submissionInfo) {
|
||||||
|
return JSON.parse(row.submissionInfo);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
align: 'center',
|
align: 'center',
|
||||||
@ -216,7 +232,8 @@ const creatForm = reactive({
|
|||||||
alertType: '',
|
alertType: '',
|
||||||
timeType: '',
|
timeType: '',
|
||||||
locationType: '',
|
locationType: '',
|
||||||
infoJson: '',
|
drivingInfo: '',
|
||||||
|
submissionInfo: '',
|
||||||
});
|
});
|
||||||
|
|
||||||
function onReset() {
|
function onReset() {
|
||||||
@ -224,7 +241,8 @@ function onReset() {
|
|||||||
creatForm.alertType = '';
|
creatForm.alertType = '';
|
||||||
creatForm.timeType = '';
|
creatForm.timeType = '';
|
||||||
creatForm.locationType = '';
|
creatForm.locationType = '';
|
||||||
creatForm.infoJson = '';
|
creatForm.drivingInfo = '';
|
||||||
|
creatForm.submissionInfo = '';
|
||||||
myForm.value?.resetValidation();
|
myForm.value?.resetValidation();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -238,10 +256,14 @@ function onCreate() {
|
|||||||
alertType: creatForm.alertType,
|
alertType: creatForm.alertType,
|
||||||
timeType: creatForm.timeType,
|
timeType: creatForm.timeType,
|
||||||
locationType: creatForm.locationType,
|
locationType: creatForm.locationType,
|
||||||
infoJson: creatForm.infoJson,
|
drivingInfo: creatForm.drivingInfo,
|
||||||
|
submissionInfo: creatForm.submissionInfo,
|
||||||
};
|
};
|
||||||
if (creatForm.infoJson) {
|
if (creatForm.drivingInfo) {
|
||||||
params.infoJson = JSON.stringify(creatForm.infoJson);
|
params.drivingInfo = JSON.stringify(creatForm.drivingInfo);
|
||||||
|
}
|
||||||
|
if (creatForm.submissionInfo) {
|
||||||
|
params.submissionInfo = JSON.stringify(creatForm.submissionInfo);
|
||||||
}
|
}
|
||||||
if (creatForm.id) {
|
if (creatForm.id) {
|
||||||
await updataAlarmInfo(+creatForm.id, params);
|
await updataAlarmInfo(+creatForm.id, params);
|
||||||
@ -269,7 +291,8 @@ function editData(row: any) {
|
|||||||
creatForm.alertType = row.alertType;
|
creatForm.alertType = row.alertType;
|
||||||
creatForm.timeType = row.timeType || '';
|
creatForm.timeType = row.timeType || '';
|
||||||
creatForm.locationType = row.locationType || '';
|
creatForm.locationType = row.locationType || '';
|
||||||
creatForm.infoJson = row.infoJson || '';
|
creatForm.drivingInfo = row.drivingInfo || '';
|
||||||
|
creatForm.submissionInfo = row.submissionInfo || '';
|
||||||
createFormShow.value = true;
|
createFormShow.value = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
* source: alertInfo.proto
|
* source: alertInfo.proto
|
||||||
* git: https://github.com/thesayyn/protoc-gen-ts */
|
* git: https://github.com/thesayyn/protoc-gen-ts */
|
||||||
import * as pb_1 from "google-protobuf";
|
import * as pb_1 from "google-protobuf";
|
||||||
export namespace state {
|
export namespace alert {
|
||||||
export class NccAlertInfoMessage extends pb_1.Message {
|
export class NccAlertInfoMessage extends pb_1.Message {
|
||||||
#one_of_decls: number[][] = [];
|
#one_of_decls: number[][] = [];
|
||||||
constructor(data?: any[] | {
|
constructor(data?: any[] | {
|
||||||
|
Loading…
Reference in New Issue
Block a user