You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
|
|
|
|
import { dateFormatter } from '@/utils/formatTime'
|
|
|
|
import { string } from 'vue-types'
|
|
|
|
|
|
|
|
const trueFalse = [{
|
|
|
|
label: '是',
|
|
|
|
value: true
|
|
|
|
}, {
|
|
|
|
label: '否',
|
|
|
|
value: false
|
|
|
|
}]
|
|
|
|
|
|
|
|
// 表单校验
|
|
|
|
export const DynamicRuleRules = reactive({
|
|
|
|
description: [required]
|
|
|
|
})
|
|
|
|
|
|
|
|
export const DynamicRule = useCrudSchemas(reactive<CrudSchema[]>([
|
|
|
|
{
|
|
|
|
label: '编码',
|
|
|
|
field: 'code',
|
|
|
|
sort: 'custom',
|
|
|
|
isSearch: true,
|
|
|
|
isForm: false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: '描述',
|
|
|
|
field: 'description',
|
|
|
|
sort: 'custom',
|
|
|
|
isSearch: true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: '操作',
|
|
|
|
field: 'action',
|
|
|
|
isForm: false,
|
|
|
|
isDetail: false,
|
|
|
|
table: {
|
|
|
|
width: 150,
|
|
|
|
fixed: 'right'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]))
|