extend report by title
This commit is contained in:
parent
b56347c172
commit
b5a3ff4dc6
8 changed files with 38 additions and 5 deletions
|
@ -56,6 +56,7 @@ export default defineComponent({
|
|||
usingBarcode: false,
|
||||
content: {
|
||||
gear: undefined,
|
||||
title: "",
|
||||
description: "",
|
||||
location: "",
|
||||
note: "",
|
||||
|
@ -63,6 +64,7 @@ export default defineComponent({
|
|||
image: undefined,
|
||||
} as {
|
||||
gear: undefined | MinifiedEquipmentViewModel | MinifiedVehicleViewModel | MinifiedWearableViewModel;
|
||||
title: string;
|
||||
description: string;
|
||||
location: string;
|
||||
note: string;
|
||||
|
@ -83,7 +85,15 @@ export default defineComponent({
|
|||
this.step = index;
|
||||
this.successfull = index - 1;
|
||||
},
|
||||
updateContent(d: { description: string; location: string; note: string; reportedBy: string; image?: File }) {
|
||||
updateContent(d: {
|
||||
title: string;
|
||||
description: string;
|
||||
location: string;
|
||||
note: string;
|
||||
reportedBy: string;
|
||||
image?: File;
|
||||
}) {
|
||||
this.content.title = d.title;
|
||||
this.content.description = d.description;
|
||||
this.content.location = d.location;
|
||||
this.content.note = d.note;
|
||||
|
@ -102,6 +112,7 @@ export default defineComponent({
|
|||
this.usingBarcode = false;
|
||||
this.content = {
|
||||
gear: undefined,
|
||||
title: "",
|
||||
description: "",
|
||||
location: "",
|
||||
note: "",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue