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" ]); }