回填显示任务详情

This commit is contained in:
lq
2025-09-25 15:44:29 +08:00
parent 89c773ac65
commit 064cc3c9f6
2 changed files with 72 additions and 22 deletions

View File

@ -514,15 +514,13 @@ const handleTaskAction = async (action: string, task: any, ...args: any[]) => {
const selectedDate = task.execution_time;
const date = new Date(selectedDate);
// 显示抽屉
drawerPopupRef.value.showDrawer(accountInfo, date);
// 等待抽屉打开后再填充数据
nextTick(() => {
console.log('修改任务');
// 显示抽屉
drawerPopupRef.value.showDrawer(accountInfo, date);
// if (task.work && task.work.id) {
// console.log('修改任务', task, task.work, task.work.id);
// drawerPopupRef.value.fillTaskData(task.work.id);
// }
// 将任务信息回填到draw-popup组件
drawerPopupRef.value.fillTaskData(task);
});
break;
}