回填显示任务详情
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user