瀏覽代碼

🐛 feat<任务列表>: 创建任务问题

xinyan 10 月之前
父節點
當前提交
0df5a80527
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/views/reportManage/TaskManage/index.vue
  2. 1 1
      src/views/reportManage/dataCenter/utils/columns.ts

+ 1 - 1
src/views/reportManage/TaskManage/index.vue

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

+ 1 - 1
src/views/reportManage/dataCenter/utils/columns.ts

@@ -47,7 +47,7 @@ export const dayColumns = ref([
       },
     ]
   },
-  { title: '操作', width: 120, slots: { default: 'operate' }, align: 'center' },
+  { title: '操作', width: 120, slots: { default: 'operate' }, align: 'center' , fixed: 'right'},
 ]);
 
 export const weekColumns = ref([