|
@@ -416,6 +416,7 @@ async function handleStatusChange(row) {
|
|
id: row.id,
|
|
id: row.id,
|
|
status: row.status,
|
|
status: row.status,
|
|
};
|
|
};
|
|
|
|
+ // 传partial=1,可只修改状态
|
|
const query = { partial: 1, };
|
|
const query = { partial: 1, };
|
|
try {
|
|
try {
|
|
const response = await postUpdateTaskStatus(query, updatedData);
|
|
const response = await postUpdateTaskStatus(query, updatedData);
|
|
@@ -467,7 +468,6 @@ async function createTask() {
|
|
const resp = await postCreateTask(body);
|
|
const resp = await postCreateTask(body);
|
|
if (resp.code === 2000) {
|
|
if (resp.code === 2000) {
|
|
dialogFormVisible.value = false;
|
|
dialogFormVisible.value = false;
|
|
- gridOptions.data.push(body);
|
|
|
|
await getTaskList(); // 重新获取任务列表
|
|
await getTaskList(); // 重新获取任务列表
|
|
ElMessage({ message: '创建成功', type: 'success', });
|
|
ElMessage({ message: '创建成功', type: 'success', });
|
|
}
|
|
}
|