From c638f7d9c1c1fefe66bc3e9f68e1915ee1b61026 Mon Sep 17 00:00:00 2001 From: cat-shark <1716967236@qq.com> Date: Sun, 13 Sep 2026 22:48:56 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E8=A1=A5=E5=85=85=E4=BC=98=E5=85=88?= =?UTF-8?q?=E7=BA=A7=E7=BB=B4=E5=BA=A6=E5=8F=96=E5=80=BC=E8=8C=83=E5=9B=B4?= =?UTF-8?q?=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/__tests__/integration/task-form-flow.spec.ts | 11 +++++++++++ src/components/TaskForm.vue | 10 ++++++++++ 2 files changed, 21 insertions(+) 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 表示不适用或未评估。急迫性代表时间压力,重要性代表对当前目标的权重,内容难度代表学习该内容的困难程度,未来价值代表对长期目标的价值,主观优先级是你的直觉判断。系统综合这些维度排序,更倾向「重要但不紧急」的任务,急迫性作为兜底。 +