diff --git a/src/modules/container-loading/pages/ContainersView.test.ts b/src/modules/container-loading/pages/ContainersView.test.ts index e1334e6d..de4dd8f2 100644 --- a/src/modules/container-loading/pages/ContainersView.test.ts +++ b/src/modules/container-loading/pages/ContainersView.test.ts @@ -456,7 +456,7 @@ describe('ContainersView', () => { expect(source).toContain("import RowActions, { type RowActionItem } from '@/shared/components/RowActions.vue'") expect(source).toContain("{ key: 'view', label: '查看', ariaLabel: containerViewLabel(row), priority: 500") expect(source).toContain("hasAction(row, 'EDIT_CONTAINER')") - expect(source).toContain(' { expect(source).toContain("row.planStatus === 'EDITING' ? canSmartLoading.value") expect(source).not.toContain('canSmartLoading && row.containerNo') expect(source).not.toContain('link type="primary" :aria-label="containerViewLabel') - expect(source).toContain(':loading="loading" stripe preference-key="container-loading-table"') + expect(source).toContain(':loading="loading" preference-key="container-loading-table"') + expect(source).toContain('appearance="integrated" :stripe="false"') }) it('updates an ACTIVE TRUCKING fleet inline and records actual empty return once', async () => { @@ -579,7 +580,7 @@ describe('ContainersView', () => { try { await flushPromises() const actions = wrapper.find('.el-table__body .row-actions') - expect(actions.findAll('button').map((button) => button.text())).toEqual(['查看', '编辑', ({ EDITING: '装柜', LOADING: '预装清单', COMPLETED: '装柜清单' })[planStatus], '']) + expect(actions.findAll('button').map((button) => button.text())).toEqual(['查看', '编辑', ({ EDITING: '装柜', LOADING: '预装清单', COMPLETED: '装柜清单' })[planStatus], '更多']) await actions.find('button[aria-label="更多货柜操作"]').trigger('click') await flushPromises() const link = Array.from(document.body.querySelectorAll('.el-dropdown-menu__item')) diff --git a/src/modules/container-loading/pages/ContainersView.vue b/src/modules/container-loading/pages/ContainersView.vue index 14de5a37..d8270edb 100644 --- a/src/modules/container-loading/pages/ContainersView.vue +++ b/src/modules/container-loading/pages/ContainersView.vue @@ -730,8 +730,12 @@ onMounted(async () => { await Promise.all([loadCustomers(), loadRows()]) })
- + diff --git a/src/modules/domestic-containers/routes.ts b/src/modules/domestic-containers/routes.ts index 7700008b..e677ff62 100644 --- a/src/modules/domestic-containers/routes.ts +++ b/src/modules/domestic-containers/routes.ts @@ -1,5 +1,5 @@ import type { RouteRecordRaw } from 'vue-router' export const domesticContainerRoutes = [ - { path: 'domestic-containers', name: 'domestic-containers', component: () => import('./pages/DomesticContainersView.vue'), meta: { title: '整柜业务', description: '管理国内仓整柜入库、出库与库存', permission: 'platform:domestic-container:list' } }, + { path: 'domestic-containers', name: 'domestic-containers', component: () => import('./pages/DomesticContainersView.vue'), meta: { showPageHeading: false, title: '整柜业务', description: '管理国内仓整柜入库、出库与库存', permission: 'platform:domestic-container:list' } }, { path: 'domestic-containers/inventories/:inventoryId', name: 'domestic-container-inventory-detail', component: () => import('./pages/DomesticContainerInventoryDetailView.vue'), meta: { title: '整柜库存详情', description: '查看整柜库存快照与不可变交易记录', permission: 'platform:domestic-container:list', showPageHeading: false } }, ] satisfies RouteRecordRaw[] diff --git a/src/modules/downloads/pages/DownloadCenterView.test.ts b/src/modules/downloads/pages/DownloadCenterView.test.ts index 00901441..3c0a936c 100644 --- a/src/modules/downloads/pages/DownloadCenterView.test.ts +++ b/src/modules/downloads/pages/DownloadCenterView.test.ts @@ -233,10 +233,10 @@ describe('DownloadCenterView', () => { const wrapper = mount(DownloadCenterView, { global: { plugins: [createPinia(), ElementPlus] } }) await wrapper.vm.$nextTick() - expect(wrapper.find('.table-panel').attributes('aria-busy')).toBe('true') + expect(wrapper.find('.el-table').attributes('aria-busy')).toBe('true') resolveRequest({ records: [], page: 1, size: 20, total: 0, pages: 0 }) await flushPromises() - expect(wrapper.find('.table-panel').attributes('aria-busy')).toBe('false') + expect(wrapper.find('.el-table').attributes('aria-busy')).toBe('false') }) it('does not schedule another refresh after an in-flight load finishes on an unmounted page', async () => { diff --git a/src/modules/downloads/pages/DownloadCenterView.vue b/src/modules/downloads/pages/DownloadCenterView.vue index 3f887a34..a2a74adc 100644 --- a/src/modules/downloads/pages/DownloadCenterView.vue +++ b/src/modules/downloads/pages/DownloadCenterView.vue @@ -266,25 +266,28 @@ onBeforeUnmount(() => {
- - + + -