diff --git a/src/views/system/storage/index.vue b/src/views/system/storage/index.vue
index cfb69ac..3f3ad5c 100644
--- a/src/views/system/storage/index.vue
+++ b/src/views/system/storage/index.vue
@@ -26,7 +26,7 @@
重置
-
+
新增
@@ -47,12 +47,9 @@
-
-
-
- 修改
+ 修改
import { listStorage, deleteStorage, type StorageResp } from '@/apis'
import StorageAddModal from './StorageAddModal.vue'
-import type { TableInstance } from '@arco-design/web-vue'
+import type { TableInstanceColumns } from '@/components/GiTable/type'
import { useTable } from '@/hooks'
import { useDict } from '@/hooks/app'
import { isMobile } from '@/utils'
+import has from '@/utils/has'
import { DisEnableStatusList } from '@/constant/common'
defineOptions({ name: 'Storage' })
const { storage_type_enum } = useDict('storage_type_enum')
-const columns: TableInstance['columns'] = [
+const columns: TableInstanceColumns[] = [
{
title: '序号',
width: 66,
@@ -102,7 +100,14 @@ const columns: TableInstance['columns'] = [
{ title: '创建时间', dataIndex: 'createTime', width: 180 },
{ title: '修改人', dataIndex: 'updateUserString', show: false, ellipsis: true, tooltip: true },
{ title: '修改时间', dataIndex: 'updateTime', width: 180, show: false },
- { title: '操作', slotName: 'action', width: 130, align: 'center', fixed: !isMobile() ? 'right' : undefined }
+ {
+ title: '操作',
+ slotName: 'action',
+ width: 130,
+ show: has.hasPermOr(['system:storage:update', 'system:storage:delete']),
+ align: 'center',
+ fixed: !isMobile() ? 'right' : undefined
+ }
]
const queryForm = reactive({