feat(shared): 演练任务预估配置对前端公开
背景:PRD R-06 要求批量任务提交前展示预估条数与成本;A6 提交演练任务的弹层需要读取生效配置,原先两项预估配置为 public:false,前端无法预展示。 改动:将 task.estimate.demo_cost_per_item / task.estimate.demo_seconds_per_item 的 public 置为 true(数值非敏感、演练任务不产生真实计费);frontend 读取失败时仍回退 shared 默认值,后端继续做最终校验与计算。 影响面:/system/configs/effective 多返回两项 task.* 配置;系统配置页与权限不变。 回滚:撤销提交即可,前端预估回退到 shared 默认值。 验证:web 单测 / typecheck 通过;API 集成与 e2e 通过;effective 接口实测返回三项 task 配置。
This commit is contained in:
1 parent
633765f10f
commit
b377618ff9
1 file changed
+4
-2
@@ -495,7 +495,8 @@ export const SYSTEM_CONFIG_DEFINITIONS: readonly SystemConfigDefinition[] = [
|
|||||||
max: 100,
|
max: 100,
|
||||||
step: 0.01,
|
step: 0.01,
|
||||||
editable: true,
|
editable: true,
|
||||||
public: false,
|
// A6-FE-01:提交演练任务前必须展示预估成本(PRD R-06),由前端读生效配置计算;数值非敏感且不产生真实计费
|
||||||
|
public: true,
|
||||||
sortOrder: 270,
|
sortOrder: 270,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -510,7 +511,8 @@ export const SYSTEM_CONFIG_DEFINITIONS: readonly SystemConfigDefinition[] = [
|
|||||||
min: 1,
|
min: 1,
|
||||||
max: 3600,
|
max: 3600,
|
||||||
editable: true,
|
editable: true,
|
||||||
public: false,
|
// A6-FE-01:提交前展示预估时长,口径同预估成本
|
||||||
|
public: true,
|
||||||
sortOrder: 275,
|
sortOrder: 275,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user