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
+
+
+
+
+
+ |
+ {{ $ay.t("Task") }}
+ |
+
+ {{ $ay.t("Sequence") }}
+ |
+ |
+
+
+
+
+ |
+ {{ item.task }}
+ |
+
+ {{ $ay.dec(item.sequence) }}
+ |
+
+
+
+
+ $ayiEdit
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{
+ $ay.t("Delete")
+ }}
+
+
+ {{ $ay.t("New") }}
+
+ {{ $ay.t("OK") }}
+
+
+
+
+ {{ $ay.t("OK") }}
+ {{ $ay.t("New") }}
+
+ {{ $ay.t("Delete") }}
+
+
+
+
+
+
+
@@ -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"
]);
}