feat: 本次提交更新内容如下

场景计划粗略完成
This commit is contained in:
笔记本里的永平
2025-07-23 19:44:50 +08:00
parent e23b37f0d7
commit e4b6ded6b9

View File

@@ -123,6 +123,7 @@ export default function NewPlan() {
// 编辑:拼接后端需要的完整参数
const editData = {
...formData,
...{ sceneId: Number(formData.scenario) },
id: Number(planId),
planId: Number(planId),
// 兼容后端需要的字段
@@ -131,6 +132,7 @@ export default function NewPlan() {
result = await updatePlan(planId, editData);
} else {
// 新建
formData.sceneId = Number(formData.scenario);
result = await createPlan(formData);
}
message.success(isEdit ? "计划已更新" : "获客计划已创建");