dbsd_kczx/src/views/kc/jiaoshi/KcZhihuijiaoshi.data.ts

83 lines
1.3 KiB
TypeScript
Raw Normal View History

2023-04-21 00:41:02 +08:00
import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
{
title: '校区',
align: "center",
dataIndex: 'xq'
},
{
title: '项目',
align: "center",
dataIndex: 'xm'
},
{
title: '新ip',
align: "center",
dataIndex: 'ip'
},
{
title: '账号',
align: "center",
dataIndex: 'user'
},
{
title: '密码',
align: "center",
dataIndex: 'mima'
},
{
title: '备注',
align: "center",
dataIndex: 'bz'
},
];
//查询数据
export const searchFormSchema: FormSchema[] = [
];
//表单数据
export const formSchema: FormSchema[] = [
{
label: '校区',
field: 'xq',
component: 'Input',
},
{
label: '项目',
field: 'xm',
component: 'Input',
},
{
label: '新ip',
field: 'ip',
component: 'Input',
},
{
label: '账号',
field: 'user',
component: 'Input',
},
{
label: '密码',
field: 'mima',
component: 'Input',
},
{
label: '备注',
field: 'bz',
component: 'Input',
},
// TODO 主键隐藏字段目前写死为ID
{
label: '',
field: 'id',
component: 'Input',
show: false,
},
];