fix(mobile): align supervisor profile workspace

This commit is contained in:
2026-07-17 04:42:49 +08:00
parent 5d82ff7b21
commit b3dd2c2cf1
2 changed files with 234 additions and 38 deletions
+13
View File
@@ -289,6 +289,19 @@ test('员工和主管个人页只展示脱敏手机号', async () => {
assert.doesNotMatch(supervisorProfile, /\{\{ phone \|\|/);
});
test('主管个人工作台展示真实指标和三项业务入口', async () => {
const source = await readFile(new URL('../src/pages/supervisor/profile/index.vue', import.meta.url), 'utf8');
assert.match(source, /\{\{ loading \? '--' : teamCount \}\}/);
assert.match(source, /\{\{ loading \? '--' : pendingReviewCount \}\}/);
assert.match(source, /\{\{ loading \? '--' : alertCount \}\}/);
assert.match(source, /主管业务入口/);
assert.match(source, /\/pages\/supervisor\/team\/index/);
assert.match(source, /\/pages\/supervisor\/reviews\/index/);
assert.match(source, /\/pages\/supervisor\/assign\/index/);
assert.match(source, /getPracticeTeamSnapshot/);
});
test('组织快照姓名不可读时用稳定身份标识展示', () => {
const profiles = buildTeamProfiles([], [], [
{ extPartyId: '13900001111', name: '???????' },