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.
 
 
 

84 lines
1.6 KiB

import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime'
const { t } = useI18n() // 国际化
/**
* @returns {Array} 配置
*/
export const Configuration = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '策略代码',
field: 'strategyCode',
sort: 'custom',
table: {
width: 150,
fixed: 'left'
},
},
{
label: '规则代码',
field: 'ruleCode',
sort: 'custom',
table: {
width: 150
},
},
{
label: '配置名称',
field: 'configurationCode',
sort: 'custom',
table: {
width: 150
},
},
{
label: '描述',
field: 'description',
sort: 'custom',
table: {
width: 150
},
},
{
label: '配置值',
field: 'configurationValue',
sort: 'custom',
table: {
width: 150
},
},
{
label: '配置分组',
field: 'groupCode',
sort: 'custom',
table: {
width: 150
},
},
{
label: '操作',
field: 'action',
isDetail: false,
isForm: false ,
table: {
width: 150,
fixed: 'right'
}
}
]))
//表单校验
export const ConfigurationRules = reactive({
strategyCode: [
{ required: true, message: '请输入策略代码', trigger: 'blur' }
],
ruleCode: [
{ required: true, message: '请输入规则代码', trigger: 'blur' }
],
configurationCode: [
{ required: true, message: '请输入配置名称', trigger: 'blur' }
],
configurationValue: [
{ required: true, message: '请输入配置值', trigger: 'blur' }
],
})