diff --git a/src/__tests__/integration/task-form-flow.spec.ts b/src/__tests__/integration/task-form-flow.spec.ts index 4b6a9dd..4d52358 100644 --- a/src/__tests__/integration/task-form-flow.spec.ts +++ b/src/__tests__/integration/task-form-flow.spec.ts @@ -81,6 +81,17 @@ describe('TaskForm 交互流程(集成)', () => { wrapper.unmount() }) + it('优先级维度区块展示取值范围与各维度含义说明', async () => { + const { wrapper } = await mountAddForm() + + const hint = wrapper.find('.priority-hint') + expect(hint.exists()).toBe(true) + expect(hint.text()).toContain('取值范围均为 0') + expect(hint.text()).toContain('急迫性代表时间压力') + expect(hint.text()).toContain('主观优先级是你的直觉判断') + wrapper.unmount() + }) + it('后端返回失败时提示错误、不跳转', async () => { mockedPost.mockResolvedValue({ code: 500, message: '任务名称重复' } as any) const { wrapper, router } = await mountAddForm() diff --git a/src/components/TaskForm.vue b/src/components/TaskForm.vue index 25dc812..13f3141 100644 --- a/src/components/TaskForm.vue +++ b/src/components/TaskForm.vue @@ -412,6 +412,9 @@ defineExpose({ +
+ 五个维度取值范围均为 0–5,数值越大表示程度越高,0 表示不适用或未评估。急迫性代表时间压力,重要性代表对当前目标的权重,内容难度代表学习该内容的困难程度,未来价值代表对长期目标的价值,主观优先级是你的直觉判断。系统综合这些维度排序,更倾向「重要但不紧急」的任务,急迫性作为兜底。 +