From 9957857be07edd225e5884068bd89769acebdb6e Mon Sep 17 00:00:00 2001 From: hongawen <83944980@qq.com> Date: Fri, 11 Oct 2024 14:46:17 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/auto-imports.d.ts | 9 -- frontend/components.d.ts | 80 -------------- frontend/package.json | 2 +- .../ProTable/components/Pagination.vue | 4 + .../ProTable/components/TableColumn.vue | 1 - frontend/src/components/ProTable/index.vue | 102 ++++-------------- frontend/src/routers/modules/staticRouter.ts | 42 ++++++++ .../singlePlanList/components/details.vue | 1 - frontend/tsconfig.json | 1 + frontend/vite.config.ts | 3 +- 10 files changed, 68 insertions(+), 177 deletions(-) delete mode 100644 frontend/auto-imports.d.ts delete mode 100644 frontend/components.d.ts diff --git a/frontend/auto-imports.d.ts b/frontend/auto-imports.d.ts deleted file mode 100644 index 78813d8..0000000 --- a/frontend/auto-imports.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/* eslint-disable */ -/* prettier-ignore */ -// @ts-nocheck -// noinspection JSUnusedGlobalSymbols -// Generated by unplugin-auto-import -export {} -declare global { - const ElMessage: typeof import('element-plus/es')['ElMessage'] -} diff --git a/frontend/components.d.ts b/frontend/components.d.ts deleted file mode 100644 index 1a822d2..0000000 --- a/frontend/components.d.ts +++ /dev/null @@ -1,80 +0,0 @@ -/* eslint-disable */ -// @ts-nocheck -// Generated by unplugin-vue-components -// Read more: https://github.com/vuejs/core/pull/3399 -export {} - -/* prettier-ignore */ -declare module 'vue' { - export interface GlobalComponents { - 403: typeof import('./src/components/ErrorMessage/403.vue')['default'] - 404: typeof import('./src/components/ErrorMessage/404.vue')['default'] - 500: typeof import('./src/components/ErrorMessage/500.vue')['default'] - ColSetting: typeof import('./src/components/ProTable/components/ColSetting.vue')['default'] - Default: typeof import('./src/components/echarts/pie/default.vue')['default'] - Dialog: typeof import('./src/components/Dialog/index.vue')['default'] - ElAside: typeof import('element-plus/es')['ElAside'] - ElBreadcrumb: typeof import('element-plus/es')['ElBreadcrumb'] - ElBreadcrumbItem: typeof import('element-plus/es')['ElBreadcrumbItem'] - ElButton: typeof import('element-plus/es')['ElButton'] - ElCard: typeof import('element-plus/es')['ElCard'] - ElCheckbox: typeof import('element-plus/es')['ElCheckbox'] - ElCheckboxGroup: typeof import('element-plus/es')['ElCheckboxGroup'] - ElCol: typeof import('element-plus/es')['ElCol'] - ElColorPicker: typeof import('element-plus/es')['ElColorPicker'] - ElContainer: typeof import('element-plus/es')['ElContainer'] - ElDatePicker: typeof import('element-plus/es')['ElDatePicker'] - ElDescriptions: typeof import('element-plus/es')['ElDescriptions'] - ElDescriptionsItem: typeof import('element-plus/es')['ElDescriptionsItem'] - ElDialog: typeof import('element-plus/es')['ElDialog'] - ElDivider: typeof import('element-plus/es')['ElDivider'] - ElDrawer: typeof import('element-plus/es')['ElDrawer'] - ElDropdown: typeof import('element-plus/es')['ElDropdown'] - ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem'] - ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu'] - ElFooter: typeof import('element-plus/es')['ElFooter'] - ElForm: typeof import('element-plus/es')['ElForm'] - ElFormItem: typeof import('element-plus/es')['ElFormItem'] - ElHeader: typeof import('element-plus/es')['ElHeader'] - ElIcon: typeof import('element-plus/es')['ElIcon'] - ElInput: typeof import('element-plus/es')['ElInput'] - ElMain: typeof import('element-plus/es')['ElMain'] - ElMenu: typeof import('element-plus/es')['ElMenu'] - ElMenuItem: typeof import('element-plus/es')['ElMenuItem'] - ElOption: typeof import('element-plus/es')['ElOption'] - ElPagination: typeof import('element-plus/es')['ElPagination'] - ElProgress: typeof import('element-plus/es')['ElProgress'] - ElRadio: typeof import('element-plus/es')['ElRadio'] - ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup'] - ElRow: typeof import('element-plus/es')['ElRow'] - ElScrollbar: typeof import('element-plus/es')['ElScrollbar'] - ElSegmented: typeof import('element-plus/es')['ElSegmented'] - ElSelect: typeof import('element-plus/es')['ElSelect'] - ElSelectV2: typeof import('element-plus/es')['ElSelectV2'] - ElSpace: typeof import('element-plus/es')['ElSpace'] - ElStatistic: typeof import('element-plus/es')['ElStatistic'] - ElSubMenu: typeof import('element-plus/es')['ElSubMenu'] - ElSwitch: typeof import('element-plus/es')['ElSwitch'] - ElTable: typeof import('element-plus/es')['ElTable'] - ElTableColumn: typeof import('element-plus/es')['ElTableColumn'] - ElTabPane: typeof import('element-plus/es')['ElTabPane'] - ElTabs: typeof import('element-plus/es')['ElTabs'] - ElTag: typeof import('element-plus/es')['ElTag'] - ElTimePicker: typeof import('element-plus/es')['ElTimePicker'] - ElTooltip: typeof import('element-plus/es')['ElTooltip'] - ElTree: typeof import('element-plus/es')['ElTree'] - Grid: typeof import('./src/components/Grid/index.vue')['default'] - GridItem: typeof import('./src/components/Grid/components/GridItem.vue')['default'] - ImportExcel: typeof import('./src/components/ImportExcel/index.vue')['default'] - Loading: typeof import('./src/components/Loading/index.vue')['default'] - Pagination: typeof import('./src/components/ProTable/components/Pagination.vue')['default'] - ProTable: typeof import('./src/components/ProTable/index.vue')['default'] - RouterLink: typeof import('vue-router')['RouterLink'] - RouterView: typeof import('vue-router')['RouterView'] - SearchForm: typeof import('./src/components/SearchForm/index.vue')['default'] - SearchFormItem: typeof import('./src/components/SearchForm/components/SearchFormItem.vue')['default'] - SvgIcon: typeof import('./src/components/staticExtend/SvgIcon/src/SvgIcon.vue')['default'] - SwitchDark: typeof import('./src/components/SwitchDark/index.vue')['default'] - TableColumn: typeof import('./src/components/ProTable/components/TableColumn.vue')['default'] - } -} diff --git a/frontend/package.json b/frontend/package.json index fb2bdf2..93a9f0c 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -49,7 +49,7 @@ "@typescript-eslint/eslint-plugin": "^6.7.0", "@typescript-eslint/parser": "^6.7.0", "@vitejs/plugin-vue": "^5.0.5", - "@vitejs/plugin-vue-jsx": "^3.0.2", + "@vitejs/plugin-vue-jsx": "^3.1.0", "@vue/eslint-config-typescript": "^13.0.0", "@vue/tsconfig": "^0.5.1", "autoprefixer": "^10.4.20", diff --git a/frontend/src/components/ProTable/components/Pagination.vue b/frontend/src/components/ProTable/components/Pagination.vue index 5685f48..21efde0 100644 --- a/frontend/src/components/ProTable/components/Pagination.vue +++ b/frontend/src/components/ProTable/components/Pagination.vue @@ -6,6 +6,7 @@ :page-size="pageable.pageSize" :page-sizes="[10, 25, 50, 100]" :total="pageable.total" + :size="globalStore?.assemblySize ?? 'default'" layout="total, sizes, prev, pager, next, jumper" @size-change="handleSizeChange" @current-change="handleCurrentChange" @@ -13,6 +14,9 @@ - diff --git a/frontend/src/routers/modules/staticRouter.ts b/frontend/src/routers/modules/staticRouter.ts index 27e1303..c090b47 100644 --- a/frontend/src/routers/modules/staticRouter.ts +++ b/frontend/src/routers/modules/staticRouter.ts @@ -41,6 +41,48 @@ export const staticRouter: RouteRecordRaw[] = [ isKeepAlive: false, }, }, + { + path: "/plan/singlePlanList", + name: "singlePlanList", + component:()=> import("@/views/plan/singlePlanList/index.vue"), + meta: { + title: "单个计划列表", + icon: "List", + isLink: "", + isHide: false, + isFull: false, + isAffix: false, + isKeepAlive: false, + }, + }, + { + path: "/plan/preTest", + name: "preTest", + component:()=> import("@/views/plan/preTest/index.vue"), + meta: { + title: "预检测", + icon: "List", + isLink: "", + isHide: false, + isFull: false, + isAffix: false, + isKeepAlive: false, + }, + }, + { + path: "/plan/autoTest", + name: "autoTest", + component:()=> import("@/views/plan/autoTest/index.vue"), + meta: { + title: "自动检测", + icon: "List", + isLink: "", + isHide: false, + isFull: false, + isAffix: false, + isKeepAlive: false, + }, + }, // 错误页面路由 { path: "/403", diff --git a/frontend/src/views/plan/singlePlanList/components/details.vue b/frontend/src/views/plan/singlePlanList/components/details.vue index 94abf25..7b744fe 100644 --- a/frontend/src/views/plan/singlePlanList/components/details.vue +++ b/frontend/src/views/plan/singlePlanList/components/details.vue @@ -105,7 +105,6 @@