修改样式

This commit is contained in:
lq
2025-09-24 12:08:21 +08:00
parent dac4d7a20b
commit aed2681f4e
5 changed files with 175 additions and 27 deletions

View File

@ -128,7 +128,13 @@ import FilterPopup from './components/filter-popup.vue';
import DrowPopup from './components/draw-popup.vue';
import TaskItem from './components/task-item.vue';
// API引入
import { getTaskSchedules, delTaskSchedules, editTaskSchedules, createTask } from '@/api/all/assignment-management';
import {
getTaskSchedules,
delTaskSchedules,
editTaskSchedules,
createTask,
generateContent,
} from '@/api/all/assignment-management';
import { fetchAccountOperators, getMediaAccountList } from '@/api/all/propertyMarketing';
// 工具引入
import { useTableSelectionWithPagination } from '@/hooks/useTableSelectionWithPagination';
@ -224,7 +230,6 @@ const processTableData = (apiData: any[]) => {
dateHeaders.forEach((day) => {
rowData[day] = [];
});
// 分配任务到对应日期列
if (account.task_schedules?.length) {
account.task_schedules.forEach((task: any) => {
@ -472,12 +477,13 @@ const handleCellClick = (record: any, rowIndex: any, column: any) => {
};
// 任务操作处理
const handleTaskAction = (action: string, task: any, ...args: any[]) => {
const handleTaskAction = async (action: string, task: any, ...args: any[]) => {
console.log('handleTaskAction', action, task, args);
switch (action) {
case 'delete':
currentTask.value = task;
deleteTitle.value = task.type === 1 ? '删除内容稿件排期' : '删除选题排期';
deleteContent.value = `确认删除“${task.name}”吗?`;
deleteContent.value = `确认删除“${task.name || 'AI生成内容'}”吗?`;
showModal.value = true;
break;
case 'edit-time':
@ -486,6 +492,12 @@ const handleTaskAction = (action: string, task: any, ...args: any[]) => {
case 'goto-detail':
router.push(`/media-account/management-detail/${task.id}`);
break;
case 'ai-create':
const res = await generateContent(task.id);
if (res.code === 200) {
message.success(res.data.message);
}
break;
}
};