diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue
index 3f3f7fc..14dcf3f 100644
--- a/src/views/system/dept/index.vue
+++ b/src/views/system/dept/index.vue
@@ -31,12 +31,12 @@
重置
-
+
新增
-
+
@@ -52,11 +52,8 @@
-
-
-
- 修改
- 新增
+ 修改
+ 新增
-
+
新增
@@ -30,12 +30,10 @@
-
-
-
管理
- 修改
+ 修改
重置
-
+
新增
@@ -70,18 +70,17 @@
-
-
-
- 修改
- 新增
+ 修改
+
+ 新增
+
- 删除
+ 删除
@@ -100,6 +99,7 @@ import type GiTable from '@/components/GiTable/index.vue'
import type { TableInstanceColumns } from '@/components/GiTable/type'
import { DisEnableStatusList } from '@/constant/common'
import { isMobile } from '@/utils'
+import has from '@/utils/has'
defineOptions({ name: 'Menu' })
@@ -115,11 +115,18 @@ const columns: TableInstanceColumns[] = [
{ title: '外链', slotName: 'isExternal', align: 'center' },
{ title: '隐藏', slotName: 'isHidden', align: 'center' },
{ title: '缓存', slotName: 'isCache', align: 'center' },
- { title: '创建人', dataIndex: 'createUserString', show: false, ellipsis: true, tooltip: true },
+ { title: '创建人', dataIndex: 'createUserString', ellipsis: true, tooltip: true, show: false },
{ title: '创建时间', dataIndex: 'createTime', width: 180 },
- { title: '修改人', dataIndex: 'updateUserString', show: false, ellipsis: true, tooltip: true },
+ { title: '修改人', dataIndex: 'updateUserString', ellipsis: true, tooltip: true, show: false },
{ title: '修改时间', dataIndex: 'updateTime', width: 180, show: false },
- { title: '操作', slotName: 'action', width: 180, align: 'center', fixed: !isMobile() ? 'right' : undefined }
+ {
+ title: '操作',
+ slotName: 'action',
+ width: 180,
+ align: 'center',
+ fixed: !isMobile() ? 'right' : undefined,
+ show: has.hasPermOr(['system:menu:update', 'system:menu:delete', 'system:menu:add'])
+ }
]
const queryForm = reactive({
diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue
index fd0fa25..f571b9e 100644
--- a/src/views/system/role/index.vue
+++ b/src/views/system/role/index.vue
@@ -26,7 +26,7 @@
重置
-
+
新增
@@ -46,11 +46,9 @@
-
-
-
- 修改
+ 修改
重置
-
+
新增
-
+
@@ -69,11 +69,9 @@
-
-
-
- 修改
+ 修改