From 8855507bb48f804b2b9b8507be0687ddc0b42afb Mon Sep 17 00:00:00 2001 From: wkc <978997012@qq.com> Date: Mon, 9 Mar 2026 12:22:40 +0800 Subject: [PATCH] =?UTF-8?q?feat(ui):=20=E5=9C=A8=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E9=A1=B5=E9=9D=A2=E6=B7=BB=E5=8A=A0=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E7=B1=BB=E5=9E=8B=E6=A0=87=E7=AD=BE=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在项目名称旁添加配置类型标签 - 默认配置显示蓝色"默认配置"标签 - 自定义配置显示橙色"自定义配置"标签 - 添加 getConfigTypeLabel 和 getConfigTypeStyle 方法 - 为标签添加左边距以改善视觉效果 - 纯前端实现,无需后端修改 Ref: docs/plans/2026-03-09-param-config-type-display-design.md --- ruoyi-ui/src/views/ccdiProject/detail.vue | 24 +++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/ruoyi-ui/src/views/ccdiProject/detail.vue b/ruoyi-ui/src/views/ccdiProject/detail.vue index 0b26519..f167053 100644 --- a/ruoyi-ui/src/views/ccdiProject/detail.vue +++ b/ruoyi-ui/src/views/ccdiProject/detail.vue @@ -17,6 +17,14 @@ > {{ getStatusLabel(projectInfo.projectStatus) }} + + + {{ getConfigTypeLabel(projectInfo.configType) }} +

@@ -219,6 +227,22 @@ export default { }; return statusMap[status] || "未知"; }, + /** 获取配置类型标签文字 */ + getConfigTypeLabel(configType) { + const configTypeMap = { + "default": "默认配置", + "custom": "自定义配置" + } + return configTypeMap[configType] || "默认配置" + }, + /** 获取配置类型标签样式 */ + getConfigTypeStyle(configType) { + const styleMap = { + "default": "info", // 蓝色 + "custom": "warning" // 橙色 + } + return styleMap[configType] || "info" + }, /** 标签页切换 */ handleTabChange(tab) { console.log("切换到标签页:", tab.name);