功能(任务与复习): 增加材料地址与复习总览表格
This commit is contained in:
@@ -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(() => {
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="材料地址:">
|
||||
<el-input v-model="materialURL" placeholder="请输入学习材料URL"></el-input>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="优先级:">
|
||||
<el-row :gutter="10">
|
||||
<el-col :span="columnSpan">
|
||||
|
||||
Reference in New Issue
Block a user