style(admin): 分类管理弹窗标题去掉「· 分组名」后缀(2026-11-17 用户口径「不要显示周丽娥」)
modal-sub span 与 .modal-sub 样式整段删除;挂载用例改反向钉(.modal-sub 不存在、分组名不进标题),翻组/直建等其余 20 例不受影响。vitest 21 例全绿+vue-tsc rc=0。
This commit is contained in:
@@ -254,7 +254,7 @@ watch(totalPages, (pages) => {
|
|||||||
<div v-if="visible" class="modal-mask" @click.self="emit('close')">
|
<div v-if="visible" class="modal-mask" @click.self="emit('close')">
|
||||||
<div class="manage-modal">
|
<div class="manage-modal">
|
||||||
<div class="modal-head">
|
<div class="modal-head">
|
||||||
<h3>分类管理<span v-if="ownerGroupName" class="modal-sub">· {{ ownerGroupName }}</span></h3>
|
<h3>分类管理</h3>
|
||||||
<button class="modal-close" type="button" aria-label="关闭" @click="emit('close')">×</button>
|
<button class="modal-close" type="button" aria-label="关闭" @click="emit('close')">×</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -359,12 +359,6 @@ watch(totalPages, (pages) => {
|
|||||||
font-weight: 650;
|
font-weight: 650;
|
||||||
color: #24384d;
|
color: #24384d;
|
||||||
}
|
}
|
||||||
.modal-sub {
|
|
||||||
margin-left: 6px;
|
|
||||||
color: #5b6f83;
|
|
||||||
font-size: 13px;
|
|
||||||
font-weight: 500;
|
|
||||||
}
|
|
||||||
.modal-close {
|
.modal-close {
|
||||||
width: 30px;
|
width: 30px;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
|
|||||||
@@ -69,12 +69,13 @@ async function mountDialog(editable = true): Promise<VueWrapper<Element>> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
describe('京东分类管理对话框(V204 独立页 2026-11-17 并入京东数据库页)', () => {
|
describe('京东分类管理对话框(V204 独立页 2026-11-17 并入京东数据库页)', () => {
|
||||||
it('打开即按当前分组取分类(ownerGroupId 必带);标题带当前分组名', async () => {
|
it('打开即按当前分组取分类(ownerGroupId 必带);标题不带分组名(2026-11-17 用户口径「不要显示周丽娥」)', async () => {
|
||||||
jdApi.fetchJdProductGroups.mockResolvedValue([group(7, '裙装', 3)])
|
jdApi.fetchJdProductGroups.mockResolvedValue([group(7, '裙装', 3)])
|
||||||
const wrapper = await mountDialog()
|
const wrapper = await mountDialog()
|
||||||
expect(jdApi.fetchJdProductGroups).toHaveBeenCalledWith(GROUP_A)
|
expect(jdApi.fetchJdProductGroups).toHaveBeenCalledWith(GROUP_A)
|
||||||
expect(wrapper.get('.manage-modal').text()).toContain('分类管理')
|
expect(wrapper.get('.manage-modal').text()).toContain('分类管理')
|
||||||
expect(wrapper.get('.manage-modal').text()).toContain('甲组', '标题/上下文带当前分组名')
|
expect(wrapper.find('.modal-sub').exists()).toBe(false, '标题后缀(· 分组名)已删,不得长回来')
|
||||||
|
expect(wrapper.get('.manage-modal').text()).not.toContain('甲组', '分组名不进标题')
|
||||||
expect(wrapper.findAll('.option-row')).toHaveLength(1)
|
expect(wrapper.findAll('.option-row')).toHaveLength(1)
|
||||||
wrapper.unmount()
|
wrapper.unmount()
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user