diff --git a/src/modules/04_registryNew/components/detail/GovernmentInformation/02_Discipline.vue b/src/modules/04_registryNew/components/detail/GovernmentInformation/02_Discipline.vue index c56189512..52eea8817 100644 --- a/src/modules/04_registryNew/components/detail/GovernmentInformation/02_Discipline.vue +++ b/src/modules/04_registryNew/components/detail/GovernmentInformation/02_Discipline.vue @@ -31,7 +31,7 @@ const { dialogRemove, } = mixin; -const disciplineData = reactive({ +const disciplineData = reactive({ date: new Date(), level: "", detail: "", @@ -299,7 +299,7 @@ function deleteData(idData: string) { function openDialogEdit(props: RequestItemsObject) { modal.value = true; edit.value = true; - id.value = props.id; + id.value = props.id ? props.id : ""; disciplineData.date = props.date; disciplineData.detail = props.detail; disciplineData.level = props.level; diff --git a/src/modules/04_registryNew/interface/index/discipline.ts b/src/modules/04_registryNew/interface/index/discipline.ts index 23807f482..bb6f106e7 100644 --- a/src/modules/04_registryNew/interface/index/discipline.ts +++ b/src/modules/04_registryNew/interface/index/discipline.ts @@ -1,13 +1,13 @@ interface RequestItemsObject { - id: string; + profileId: string, + id?: string; level: string; detail: string; unStigma: string; refCommandNo: string; refCommandDate: Date | null; - date: Date; - createdFullName: string; - createdAt: Date; + date: Date | null; + } interface FormFilter {