完善店员申请关联与预约页面
自动发布开发环境 Nacos 配置 / publish (push) Successful in 21s
环境分支晋级检查 / environment-promotion-source (pull_request_target) Successful in 8s

This commit is contained in:
2026-11-03 23:29:40 +08:00
parent 1fc46f3835
commit 4b4c1ddef5
18 changed files with 442 additions and 64 deletions
+7 -5
View File
@@ -123,9 +123,10 @@ async function run() {
assert.strictEqual(dayState.dayLanes[0].artistId, '__unassigned__')
assert.strictEqual(dayState.dayLanes[0].blocks.length, 1)
assert.strictEqual(dayState.unassignedCount, 1)
assert.strictEqual(dayState.timelineHeight, 2934)
assert.strictEqual(dayState.hours.find(item => item.label === '14:00').top, 1014)
assert.strictEqual(dayState.dayLanes[0].blocks[0].height, 240)
assert.strictEqual(dayState.timelineHeight, 1854)
assert.strictEqual(dayState.timelineViewportHeight, 820)
assert.strictEqual(dayState.hours.find(item => item.label === '14:00').top, 654)
assert.strictEqual(dayState.dayLanes[0].blocks[0].height, 150)
const shortAppointmentState = dayPage.buildDayView({
businessStartTime: '10:30',
businessEndTime: '11:30',
@@ -133,9 +134,10 @@ async function run() {
appointments: [{ orderItemId: 9, date: '2026-10-12', startTime: '2026-10-12 10:45:00', durationMinutes: 15, artistId: 1 }]
})
assert.strictEqual(shortAppointmentState.hours[0].top, 54)
assert.strictEqual(shortAppointmentState.hours[1].top, 294)
assert.strictEqual(shortAppointmentState.hours[1].top, 204)
assert.strictEqual(shortAppointmentState.timelineViewportHeight, 204)
const shortAppointmentLane = shortAppointmentState.dayLanes.find(lane => lane.artistId === 1)
assert.strictEqual(shortAppointmentLane.blocks[0].height, 60)
assert.strictEqual(shortAppointmentLane.blocks[0].height, 40)
assert.strictEqual(shortAppointmentLane.blocks[0].compact, true)
const missingHoursPage = createPage({ viewMode: 'day', currentDateText: '2026-10-12' })
const missingHoursEmptyState = missingHoursPage.buildDayView({