mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-05 14:52:00 +08:00
54 lines
903 B
TypeScript
54 lines
903 B
TypeScript
![]() |
import { reactive } from 'vue'
|
||
|
import { useI18n } from '@/hooks/web/useI18n'
|
||
|
import { CrudSchema, useCrudSchemas } from '@/hooks/web/useCrudSchemas'
|
||
|
const { t } = useI18n() // 国际化
|
||
|
|
||
|
// CrudSchema
|
||
|
const crudSchemas = reactive<CrudSchema[]>([
|
||
|
{
|
||
|
label: t('common.index'),
|
||
|
field: 'id',
|
||
|
type: 'index',
|
||
|
form: {
|
||
|
show: false
|
||
|
},
|
||
|
detail: {
|
||
|
show: false
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
label: '文件名',
|
||
|
field: 'path',
|
||
|
search: {
|
||
|
show: true
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
label: 'URL',
|
||
|
field: 'url'
|
||
|
},
|
||
|
{
|
||
|
label: '文件类型',
|
||
|
field: 'type'
|
||
|
},
|
||
|
{
|
||
|
label: t('common.createTime'),
|
||
|
field: 'createTime',
|
||
|
form: {
|
||
|
show: false
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
label: t('table.action'),
|
||
|
field: 'action',
|
||
|
width: '300px',
|
||
|
form: {
|
||
|
show: false
|
||
|
},
|
||
|
detail: {
|
||
|
show: false
|
||
|
}
|
||
|
}
|
||
|
])
|
||
|
export const { allSchemas } = useCrudSchemas(crudSchemas)
|