style: 补充优先级维度取值范围说明
This commit is contained in:
@@ -81,6 +81,17 @@ describe('TaskForm 交互流程(集成)', () => {
|
|||||||
wrapper.unmount()
|
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 () => {
|
it('后端返回失败时提示错误、不跳转', async () => {
|
||||||
mockedPost.mockResolvedValue({ code: 500, message: '任务名称重复' } as any)
|
mockedPost.mockResolvedValue({ code: 500, message: '任务名称重复' } as any)
|
||||||
const { wrapper, router } = await mountAddForm()
|
const { wrapper, router } = await mountAddForm()
|
||||||
|
|||||||
@@ -412,6 +412,9 @@ defineExpose({
|
|||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</div>
|
</div>
|
||||||
|
<p class="priority-hint">
|
||||||
|
五个维度取值范围均为 0–5,数值越大表示程度越高,0 表示不适用或未评估。急迫性代表时间压力,重要性代表对当前目标的权重,内容难度代表学习该内容的困难程度,未来价值代表对长期目标的价值,主观优先级是你的直觉判断。系统综合这些维度排序,更倾向「重要但不紧急」的任务,急迫性作为兜底。
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="group" v-if="isUpdateMode" v-loading="applicationLoading">
|
<div class="group" v-if="isUpdateMode" v-loading="applicationLoading">
|
||||||
@@ -553,6 +556,13 @@ defineExpose({
|
|||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.priority-hint {
|
||||||
|
margin: 10px 0 0;
|
||||||
|
font-size: 12px;
|
||||||
|
line-height: 1.7;
|
||||||
|
color: var(--text-secondary);
|
||||||
|
}
|
||||||
|
|
||||||
.application-header {
|
.application-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|||||||
Reference in New Issue
Block a user