From 01ee5903be302f9807656c9405807c08ae41d30c Mon Sep 17 00:00:00 2001 From: Hironsan Date: Tue, 8 Aug 2023 16:14:41 +0900 Subject: [PATCH] Enable to bulk assign in frontend --- frontend/components/example/ActionMenu.vue | 8 +- .../components/example/FormAssignment.vue | 132 ++++++++++++++++++ frontend/pages/projects/_id/dataset/index.vue | 12 ++ .../example/apiAssignmentRepository.ts | 5 + 4 files changed, 156 insertions(+), 1 deletion(-) create mode 100644 frontend/components/example/FormAssignment.vue diff --git a/frontend/components/example/ActionMenu.vue b/frontend/components/example/ActionMenu.vue index 33b88cc5..47d39b8e 100644 --- a/frontend/components/example/ActionMenu.vue +++ b/frontend/components/example/ActionMenu.vue @@ -5,12 +5,13 @@ @create="$emit('create')" @upload="$emit('upload')" @download="$emit('download')" + @assign="$emit('assign')" /> diff --git a/frontend/pages/projects/_id/dataset/index.vue b/frontend/pages/projects/_id/dataset/index.vue index ee2ebc61..a66c2f04 100644 --- a/frontend/pages/projects/_id/dataset/index.vue +++ b/frontend/pages/projects/_id/dataset/index.vue @@ -4,6 +4,7 @@ + + + { + const url = `/projects/${projectId}/assignments/bulk_assign` + await this.request.post(url, workloadAllocation) + } }