From 0906c54770971020cf2d243d06d57a2f6fbbc18c Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期五, 18 十月 2024 13:05:48 +0800 Subject: [PATCH] 1. 添加数据产品目录 --- src/components.d.ts | 22 ++++++++-- src/components/core/SiderMenu.vue | 13 +++--- src/constants/menu.js | 53 +++++++++++++++----------- 3 files changed, 55 insertions(+), 33 deletions(-) diff --git a/src/components.d.ts b/src/components.d.ts index ab61589..124cacb 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -12,39 +12,51 @@ BasePanelLayout: typeof import('./components/core/BasePanelLayout.vue')['default'] CompQuickSet: typeof import('./components/search-option/CompQuickSet.vue')['default'] Content: typeof import('./components/core/Content.vue')['default'] - ElAffix: typeof import('element-plus/es')['ElAffix'] ElAside: typeof import('element-plus/es')['ElAside'] ElAvatar: typeof import('element-plus/es')['ElAvatar'] ElBadge: typeof import('element-plus/es')['ElBadge'] ElBreadcrumb: typeof import('element-plus/es')['ElBreadcrumb'] ElBreadcrumbItem: typeof import('element-plus/es')['ElBreadcrumbItem'] ElButton: typeof import('element-plus/es')['ElButton'] - ElCalendar: typeof import('element-plus/es')['ElCalendar'] ElCard: typeof import('element-plus/es')['ElCard'] - ElCascader: typeof import('element-plus/es')['ElCascader'] - ElCheckbox: typeof import('element-plus/es')['ElCheckbox'] ElCol: typeof import('element-plus/es')['ElCol'] + ElCollapse: typeof import('element-plus/es')['ElCollapse'] + ElCollapseItem: typeof import('element-plus/es')['ElCollapseItem'] ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider'] ElContainer: typeof import('element-plus/es')['ElContainer'] + 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'] ElEmpty: typeof import('element-plus/es')['ElEmpty'] 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'] + ElImage: typeof import('element-plus/es')['ElImage'] + 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'] ElMenuItemGroup: typeof import('element-plus/es')['ElMenuItemGroup'] + ElOption: typeof import('element-plus/es')['ElOption'] ElPopover: typeof import('element-plus/es')['ElPopover'] 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'] ElSpace: typeof import('element-plus/es')['ElSpace'] + ElStep: typeof import('element-plus/es')['ElStep'] + ElSteps: typeof import('element-plus/es')['ElSteps'] ElSubMenu: typeof import('element-plus/es')['ElSubMenu'] + 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'] ElText: typeof import('element-plus/es')['ElText'] ElTree: typeof import('element-plus/es')['ElTree'] + ElUpload: typeof import('element-plus/es')['ElUpload'] Footer: typeof import('./components/core/Footer.vue')['default'] FormCol: typeof import('./components/layout/FormCol.vue')['default'] FYBgTaskCard: typeof import('./components/bg-task/FYBgTaskCard.vue')['default'] diff --git a/src/components/core/SiderMenu.vue b/src/components/core/SiderMenu.vue index d38af30..abe2269 100644 --- a/src/components/core/SiderMenu.vue +++ b/src/components/core/SiderMenu.vue @@ -56,9 +56,9 @@ </template> <!-- 鍟嗘爣 --> - <el-row ref="subTitleRef" class="sub-title" justify="center"> + <!-- <el-row ref="subTitleRef" class="sub-title" justify="center"> <el-space>{{ collapse ? '' : subTitle }}</el-space> - </el-row> + </el-row> --> </el-menu> </template> @@ -77,7 +77,7 @@ data() { return { popVisible: false, - menuHeight: '600px', + menuHeight: '800px', title: '鐢熸�佺幆澧冪嚎涓婄洃绠�', subTitle: '漏涓婃捣椋炵窘鐜繚绉戞妧鏈夐檺鍏徃', sysIndex: 0, @@ -120,7 +120,8 @@ calMenuHeight() { const h1 = this.$refs.headerRef.$el.offsetHeight; const h2 = this.$refs.header2Ref.$el.offsetHeight; - const h3 = this.$refs.subTitleRef.$el.offsetHeight; + // const h3 = this.$refs.subTitleRef.$el.offsetHeight; + const h3 = 0; return `calc(100vh - ${h1}px - ${h2}px - ${h3}px)`; }, menuPath(m) { @@ -138,7 +139,7 @@ this.navPage(...this.menuPath(this.menus[0])); }, mounted() { - this.menuHeight = this.calMenuHeight(); + // this.menuHeight = this.calMenuHeight(); } }; </script> @@ -178,7 +179,7 @@ .el-menu-vertical-demo:not(.el-menu--collapse) { /* width: 200px; */ min-height: 100vh; - max-height: 100vh; + /* max-height: 100vh; */ } .el-menu--collapse { diff --git a/src/constants/menu.js b/src/constants/menu.js index 741fa96..9e744ee 100644 --- a/src/constants/menu.js +++ b/src/constants/menu.js @@ -35,6 +35,37 @@ }, ], }, + { + icon: 'DataAnalysis', + name: '鏁版嵁浜у搧', + children: [ + { + path: '/fysp/data-product/profollow', + icon: 'Document', + name: '闂鍔ㄦ�佽窡韪�', + }, + { + path: '/fysp/data-product/proanalysis', + icon: 'Document', + name: '闂鏁存敼鍒嗘瀽', + }, + { + path: '/fysp/data-product/standardjudge', + icon: 'Document', + name: '瑙勮寖鎬ц瘎浼�', + }, + { + path: '/fysp/data-product/dailyreport', + icon: 'Document', + name: '鏃ユ姤绠$悊', + }, + { + path: '/fysp/data-product/scenereport', + icon: 'Document', + name: '鍦烘櫙鎶ュ憡', + }, + ], + }, // { // path: '/changecheck', // icon: 'Search', @@ -83,28 +114,6 @@ icon: 'Files', name: '瀵瑰鏀寔' }, - - // { - // icon: 'Search', - // name: '涓氬姟鍒嗘瀽', - // children: [ - // { - // path: '/analysis/profollow', - // icon: 'Search', - // name: '闂鍔ㄦ�佽窡韪�', - // }, - // { - // path: '/analysis/proanalysis', - // icon: 'Search', - // name: '闂鏁存敼鍒嗘瀽', - // }, - // { - // path: '/analysis/standardjudge', - // icon: 'Search', - // name: '瑙勮寖鎬ц瘎浼�', - // }, - // ], - // }, // { // path: '/dailyreport', // icon: 'Search', -- Gitblit v1.9.3