diff --git a/src/components/Review.vue b/src/components/Review.vue index ec0f0fa..2746311 100644 --- a/src/components/Review.vue +++ b/src/components/Review.vue @@ -1,11 +1,61 @@ \ No newline at end of file +.header { + display: flex; + align-items: center; + justify-content: space-between; +} + diff --git a/src/components/TaskForm.vue b/src/components/TaskForm.vue index 038d961..e56cdb8 100644 --- a/src/components/TaskForm.vue +++ b/src/components/TaskForm.vue @@ -13,6 +13,7 @@ const buttonName = route.meta.buttonText; const taskName = ref(''); const taskDescription = ref(''); +const materialURL = ref(''); const priority = ref({ urgency: 0, importance: 0, @@ -33,6 +34,7 @@ const createTask = () => { request.post("/tasks", { taskName: taskName.value, taskDescription: taskDescription.value, + materialURL: materialURL.value, ...priority.value }).then(result => { if (result.code == 200) { @@ -52,6 +54,7 @@ const loadTask = () => { const data = result.data; taskName.value = data.taskName; taskDescription.value = data.taskDescription; + materialURL.value = data.materialURL || data.materialUrl || ""; priority.value = { urgency: data.urgency, importance: data.importance, @@ -77,6 +80,7 @@ const updateTask = () => { id: taskId, taskName: taskName.value, taskDescription: taskDescription.value, + materialURL: materialURL.value, ...priority.value }).then(result => { if (result.code == 200) { @@ -142,6 +146,10 @@ const columnSpan = computed(() => { > + + + +