FEAT => 本次更新项目为:contentLibraries

This commit is contained in:
超级老白兔
2025-08-28 16:26:14 +08:00
parent f7b28d876d
commit 0a6f892ba8
4 changed files with 7 additions and 1 deletions

View File

@@ -54,4 +54,6 @@ export const defFormData: FormData = {
deveiceGroupsOptions: [], deveiceGroupsOptions: [],
wechatGroups: [], wechatGroups: [],
wechatGroupsOptions: [], wechatGroupsOptions: [],
contentGroups: [],
contentGroupsOptions: [],
}; };

View File

@@ -71,6 +71,8 @@ export default function NewPlan() {
deveiceGroupsOptions: detail.deveiceGroupsOptions ?? [], deveiceGroupsOptions: detail.deveiceGroupsOptions ?? [],
wechatGroups: detail.wechatGroups ?? [], wechatGroups: detail.wechatGroups ?? [],
wechatGroupsOptions: detail.wechatGroupsOptions ?? [], wechatGroupsOptions: detail.wechatGroupsOptions ?? [],
contentGroups: detail.contentGroups ?? [],
contentGroupsOptions: detail.contentGroupsOptions ?? [],
status: detail.status ?? 0, status: detail.status ?? 0,
messagePlans: detail.messagePlans ?? [], messagePlans: detail.messagePlans ?? [],
})); }));

View File

@@ -58,6 +58,8 @@ export interface MessageContentItem {
groupIds?: string[]; // 改为数组以支持GroupSelection组件 groupIds?: string[]; // 改为数组以支持GroupSelection组件
groupOptions?: any[]; // 添加群选项数组 groupOptions?: any[]; // 添加群选项数组
linkUrl?: string; linkUrl?: string;
coverImage?: string;
[key: string]: any;
} }
export interface MessageContentGroup { export interface MessageContentGroup {

View File

@@ -135,7 +135,7 @@ const NewMomentsSync: React.FC = () => {
const params = { const params = {
name: formData.taskName, name: formData.taskName,
deveiceGroups: formData.deveiceGroups, deveiceGroups: formData.deveiceGroups,
contentLibraries: formData.contentGroups.map((lib: any) => lib.id), contentGroups: formData.contentGroups.map((lib: any) => lib.id),
syncInterval: formData.syncInterval, syncInterval: formData.syncInterval,
syncCount: formData.syncCount, syncCount: formData.syncCount,
syncType: formData.syncType, // 账号类型真实传参 syncType: formData.syncType, // 账号类型真实传参