From 80483dd17c0d57a37cc99e0bdfb103311aa9ef97 Mon Sep 17 00:00:00 2001
From: RuoYi <yzz_ivy@163.com>
Date: Tue, 24 Mar 2026 15:34:28 +0800
Subject: [PATCH] 菜单管理列表新增类型显示
---
ruoyi-ui/src/views/system/menu/index.vue | 26 +++++++++++++++-----------
1 files changed, 15 insertions(+), 11 deletions(-)
diff --git a/ruoyi-ui/src/views/system/menu/index.vue b/ruoyi-ui/src/views/system/menu/index.vue
index 6510a8e..4a0e473 100644
--- a/ruoyi-ui/src/views/system/menu/index.vue
+++ b/ruoyi-ui/src/views/system/menu/index.vue
@@ -66,10 +66,19 @@
:default-expand-all="isExpandAll"
:tree-props="{children: 'children', hasChildren: 'hasChildren'}"
>
- <el-table-column prop="menuName" label="菜单名称" :show-overflow-tooltip="true" width="160"></el-table-column>
- <el-table-column prop="icon" label="图标" align="center" width="100">
+ <el-table-column prop="menuName" label="菜单名称" :show-overflow-tooltip="true" width="220">
<template slot-scope="scope">
- <svg-icon :icon-class="scope.row.icon" />
+ <svg-icon :icon-class="scope.row.icon" />
+ <span class="ml5">{{ scope.row.menuName }}</span>
+ </template>
+ </el-table-column>
+ <el-table-column prop="menuName" label="类型" :show-overflow-tooltip="true" width="100">
+ <template slot-scope="scope">
+ <el-tag v-if="scope.row.menuType === 'M' && scope.row.isFrame === '0'" type="danger" size="small">外链</el-tag>
+ <el-tag v-else-if="scope.row.menuType === 'M'" type="primary" size="small">目录</el-tag>
+ <el-tag v-else-if="scope.row.menuType === 'C' && scope.row.isFrame === '0'" type="danger" size="small">外链</el-tag>
+ <el-tag v-else-if="scope.row.menuType === 'C'" type="success" size="small">菜单</el-tag>
+ <el-tag v-else-if="scope.row.menuType === 'F'" type="warning" size="small">按钮</el-tag>
</template>
</el-table-column>
<el-table-column prop="orderNum" label="排序" width="200">
@@ -77,16 +86,11 @@
<el-input-number v-model="scope.row.orderNum" controls-position="right" :min="0" size="mini" style="width: 88px" />
</template>
</el-table-column>
- <el-table-column prop="perms" label="权限标识" :show-overflow-tooltip="true"></el-table-column>
- <el-table-column prop="component" label="组件路径" :show-overflow-tooltip="true"></el-table-column>
+ <el-table-column prop="perms" label="权限标识" :show-overflow-tooltip="true" />
+ <el-table-column prop="component" label="组件路径" :show-overflow-tooltip="true" />
<el-table-column prop="status" label="状态" width="80">
<template slot-scope="scope">
- <dict-tag :options="dict.type.sys_normal_disable" :value="scope.row.status"/>
- </template>
- </el-table-column>
- <el-table-column label="创建时间" align="center" prop="createTime">
- <template slot-scope="scope">
- <span>{{ parseTime(scope.row.createTime) }}</span>
+ <dict-tag :options="dict.type.sys_normal_disable" :value="scope.row.status" />
</template>
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
--
Gitblit v1.9.3