From f7c3d76d37ccb0ea85f1d1fe15290c4140f9d0a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?piexlMax=28=E5=A5=87=E6=B7=BC?= Date: Thu, 19 Jun 2025 15:33:05 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=8F=9C=E5=8D=95=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E9=87=8D=E6=9E=84=E8=8F=9C=E5=8D=95=E8=A1=A8=E5=8D=95=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=E5=B9=B6=E6=9B=B4=E6=96=B0element-plus=E4=BE=9D?= =?UTF-8?q?=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/package.json | 2 +- web/src/view/superAdmin/menu/menu.vue | 731 +++++++++++++++----------- 2 files changed, 430 insertions(+), 303 deletions(-) diff --git a/web/package.json b/web/package.json index 8c059b93..7d0a7810 100644 --- a/web/package.json +++ b/web/package.json @@ -25,7 +25,7 @@ "chokidar": "^4.0.0", "core-js": "^3.38.1", "echarts": "5.5.1", - "element-plus": "^2.8.5", + "element-plus": "^2.10.2", "highlight.js": "^11.10.0", "install": "^0.13.0", "marked": "14.1.1", diff --git a/web/src/view/superAdmin/menu/menu.vue b/web/src/view/superAdmin/menu/menu.vue index 48007233..f0f1b3b9 100644 --- a/web/src/view/superAdmin/menu/menu.vue +++ b/web/src/view/superAdmin/menu/menu.vue @@ -119,315 +119,394 @@ - - - - - - 如果菜单包含子菜单,请创建router-view二级路由页面或者 - - 点我设置 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+
+

菜单参数配置

+ 新增菜单参数
- - - - - - - - - - - - - - - -
- - 新增可控按钮 - - - - -
- - - - - - - - - - - - + + + + + + + + + + + + + +
+ + +
+
+

可控按钮配置

+
+ + 新增可控按钮 + + + + + + +
+
+ + + + + + + + + + + +
@@ -445,7 +524,7 @@ import { canRemoveAuthorityBtnApi } from '@/api/authorityBtn' import { reactive, ref } from 'vue' import { ElMessage, ElMessageBox } from 'element-plus' - import { QuestionFilled } from '@element-plus/icons-vue' + import { QuestionFilled, InfoFilled, Delete } from '@element-plus/icons-vue' import { toDoc } from '@/utils/doc' import { toLowerCase } from '@/utils/stringFun' import ComponentsCascader from '@/view/superAdmin/menu/components/components-cascader.vue' @@ -705,4 +784,52 @@ margin-right: 8px; } } + + + + .form-tip { + margin-top: 8px; + font-size: 12px; + color: #909399; + display: flex; + align-items: center; + gap: 8px; + + .el-icon { + color: #409eff; + } + } + + .label-with-tooltip { + display: flex; + align-items: center; + gap: 6px; + + .el-icon { + color: #909399; + cursor: help; + + &:hover { + color: #409eff; + } + } + } + + .parameter-table, + .button-table { + border: 1px solid #ebeef5; + border-radius: 6px; + + :deep(.el-table__header) { + background-color: #fafafa; + } + + :deep(.el-table__body) { + .el-table__row { + &:hover { + background-color: #f5f7fa; + } + } + } + }