From f0f9b2d58a657ebe913417c9f3d9561908a0097f Mon Sep 17 00:00:00 2001 From: cwchen <1048842385@qq.com> Date: Mon, 27 Oct 2025 13:16:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=80=E6=9C=AF=E6=96=B9=E6=A1=88=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/TableModel2/index.vue | 24 +-- src/router/index.js | 16 +- .../components/EnterpriseKnowledge.vue | 89 +-------- .../enterpriseLibrary/enterprise/index.vue | 7 +- .../enterpriseLibrary/personnel/index.vue | 8 +- .../technical/components/LeftType.vue | 177 ++++++++++++++++++ .../technical/components/RightTable.vue | 138 ++++++++++++++ .../technical/components/config.js | 32 ++++ .../enterpriseLibrary/technical/index.vue | 83 ++++++++ 9 files changed, 463 insertions(+), 111 deletions(-) create mode 100644 src/views/enterpriseLibrary/technical/components/LeftType.vue create mode 100644 src/views/enterpriseLibrary/technical/components/RightTable.vue create mode 100644 src/views/enterpriseLibrary/technical/components/config.js create mode 100644 src/views/enterpriseLibrary/technical/index.vue diff --git a/src/components/TableModel2/index.vue b/src/components/TableModel2/index.vue index e2c65bc..0ad55b5 100644 --- a/src/components/TableModel2/index.vue +++ b/src/components/TableModel2/index.vue @@ -135,7 +135,6 @@ ref="tableRef" :data="tableList" style="width: 100%" - :height="tableHeight" v-loading="loading" select-on-indeterminate @selection-change="handleSelectionChange" @@ -309,15 +308,6 @@ export default { flexDirection: 'column' } }, - /* 表格自适应高度 */ - tableHeight() { - const baseHeight = this.showSearch ? 200 : 120; // 搜索区域高度 - const toolbarHeight = this.showRightTools ? 40 : 0; // 工具栏高度 - const paginationHeight = 60; // 分页高度 - const cardPadding = 40; // 卡片内边距 - const tableHeight = `calc(100vh - ${baseHeight + toolbarHeight + paginationHeight + cardPadding}px)`; - return tableHeight; - } }, watch: { columnsList: { @@ -636,14 +626,14 @@ export default { box-shadow: 0px 4px 8px 0px rgba(76,76,76,0.2); border-radius: 4px 4px 4px 4px; color: #333; - border: 1px solid #d9d9d9; + border: none; font-size: 14px; transition: all 0.3s; &:hover { background: #f5f5f5; box-shadow: 0px 6px 12px 0px rgba(76,76,76,0.3); - border-color: #40a9ff; + color: #40a9ff; } } } @@ -658,10 +648,13 @@ export default { ::v-deep .el-table { width: 100%; + margin-bottom: 0; } ::v-deep .el-pagination { - margin-top: 20px; + margin-top: 0; + padding-top: 16px; + text-align: right; } } @@ -700,8 +693,9 @@ export default { // 表头样式 thead { th { - background-color: #fafafa; - color: #333; + background-color: #F1F6FF; + color: #424242; + font-size: 16px; font-weight: 600; } } diff --git a/src/router/index.js b/src/router/index.js index fec3b58..6ac85a9 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -274,7 +274,21 @@ export const dynamicRoutes = [ meta: { title: '人员详情', activeMenu: '/enterpriseLibrary/personnel', noCache: true } } ] - } + }, + { + path: '/technical', + component: Layout, + hidden: true, + permissions: ['enterpriseLibrary:technical:list'], + children: [ + { + path: 'index', + component: () => import('@/views/enterpriseLibrary/technical/index'), + name: 'Technical', + meta: { title: '技术方案库', activeMenu: '/enterpriseLibrary/technical', noCache: true } + } + ] + }, ] diff --git a/src/views/enterpriseLibrary/enterprise/components/EnterpriseKnowledge.vue b/src/views/enterpriseLibrary/enterprise/components/EnterpriseKnowledge.vue index 6ba2ffc..3b79d17 100644 --- a/src/views/enterpriseLibrary/enterprise/components/EnterpriseKnowledge.vue +++ b/src/views/enterpriseLibrary/enterprise/components/EnterpriseKnowledge.vue @@ -98,13 +98,10 @@ export default { // 卡片点击事件 handleCardClick(card) { - console.log('点击了知识库类型:', card.type) - // 查找对应的卡片数据 if (card && card.path) { // 如果有路径,则跳转到对应页面 this.$router.push({ - // path: card.path, name: card.name, query: { enterpriseId: encryptWithSM4(this.enterpriseId || '0'), @@ -186,7 +183,7 @@ export default { &:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15); transform: translateY(-2px); - border-color: #409EFF; + // border-color: #409EFF; } .card-icon { @@ -228,88 +225,4 @@ export default { } } } - -// 响应式设计 -@media (max-width: 1400px) { - .knowledge-grid { - grid-template-columns: repeat(3, 1fr); - gap: 14px; - } -} - -@media (max-width: 1000px) { - .knowledge-grid { - grid-template-columns: repeat(2, 1fr); - gap: 12px; - } -} - -@media (max-width: 768px) { - .app-container { - padding: 15px; - } - - .back-container { - margin-bottom: 20px; - } - - .knowledge-grid { - grid-template-columns: 1fr; - gap: 12px; - padding: 0 5px; - } - - .knowledge-card { - padding: 16px; - min-height: 100px; - - .card-icon { - margin-right: 12px; - - img { - width: auto; - height: auto; - max-width: 100%; - max-height: 100%; - } - } - - .card-content { - .card-title { - font-size: 16px; - margin-bottom: 10px; - } - - .card-description { - font-size: 13px; - } - } - } -} - -@media (max-width: 480px) { - .knowledge-card { - padding: 16px; - min-height: 160px; - - .card-icon { - img { - width: auto; - height: auto; - max-width: 100%; - max-height: 100%; - } - } - - .card-content { - .card-title { - font-size: 15px; - } - - .card-description { - font-size: 12px; - } - } - } -} \ No newline at end of file diff --git a/src/views/enterpriseLibrary/enterprise/index.vue b/src/views/enterpriseLibrary/enterprise/index.vue index fe041af..0a7e4f8 100644 --- a/src/views/enterpriseLibrary/enterprise/index.vue +++ b/src/views/enterpriseLibrary/enterprise/index.vue @@ -474,7 +474,7 @@ export default { .stat-label { display: block; - font-size: 12px; + font-size: 14px; color: #666; margin-bottom: 4px; } @@ -502,7 +502,7 @@ export default { padding: 12px 8px; border-radius: 6px; font-size: 12px; - font-weight: 500; + font-weight: normal; box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; cursor: pointer; @@ -516,8 +516,9 @@ export default { } span { - font-size: 12px; + font-size: 16px; white-space: nowrap; + font-weight: normal; } } diff --git a/src/views/enterpriseLibrary/personnel/index.vue b/src/views/enterpriseLibrary/personnel/index.vue index 329559e..b200091 100644 --- a/src/views/enterpriseLibrary/personnel/index.vue +++ b/src/views/enterpriseLibrary/personnel/index.vue @@ -2,14 +2,14 @@