From 086334f0a163164d23f98b3c16e8c6076c8fd0c2 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 25 May 2021 17:39:32 +0000 Subject: [PATCH] --- ayanova/src/views/svc-task-group.vue | 183 ++++++++++++++++++++++++++- 1 file changed, 181 insertions(+), 2 deletions(-) diff --git a/ayanova/src/views/svc-task-group.vue b/ayanova/src/views/svc-task-group.vue index 75310ad7..b9c6a034 100644 --- a/ayanova/src/views/svc-task-group.vue +++ b/ayanova/src/views/svc-task-group.vue @@ -29,7 +29,56 @@ @change="fieldValueChanged('active')" > + + {{ $ay.t("TaskList") }} + $ayiPlus + + + + + + + + + @@ -147,7 +304,10 @@ export default { serverError: {} }, rights: window.$gz.role.defaultRightsObject(), - ayaType: window.$gz.type.TaskGroup + ayaType: window.$gz.type.TaskGroup, + selectedItem: null, + editItemDialog: false, + editItemIndex: 0 }; }, //WATCHERS @@ -195,6 +355,9 @@ export default { form() { return window.$gz.form; }, + thisVm() { + return this; + }, fieldValueChanged(ref) { if ( this.formState.ready && @@ -352,6 +515,20 @@ export default { } } //end methods + }, + computed: { + itemList: function() { + return this.obj.items + .map((x, i) => { + return { + index: i, + id: x.id, + sequence: x.sequence, + task: x.task + }; + }) + .sort((a, b) => a.sequence - b.sequence); + } } }; @@ -460,7 +637,9 @@ async function fetchTranslatedText() { await window.$gz.translation.cacheTranslations([ "TaskGroupName", "TaskGroupNotes", - "Task" + "Task", + "TaskList", + "Sequence" ]); }