103 lines
1.8 KiB
TypeScript
103 lines
1.8 KiB
TypeScript
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: 'entName'
|
||
},
|
||
{
|
||
title: '信用代码',
|
||
align: "center",
|
||
dataIndex: 'entCredit'
|
||
},
|
||
{
|
||
title: '企业编号',
|
||
align: "center",
|
||
dataIndex: 'entCode'
|
||
},
|
||
{
|
||
title: '负责人',
|
||
align: "center",
|
||
dataIndex: 'entCharge'
|
||
},
|
||
{
|
||
title: '联系电话',
|
||
align: "center",
|
||
dataIndex: 'entPhone'
|
||
},
|
||
];
|
||
|
||
//查询数据
|
||
export const searchFormSchema: FormSchema[] = [
|
||
];
|
||
|
||
//表单数据
|
||
export const formSchema: FormSchema[] = [
|
||
{
|
||
label: '企业名称',
|
||
field: 'entName',
|
||
component: 'Input',
|
||
},
|
||
{
|
||
label: '信用代码',
|
||
field: 'entCredit',
|
||
component: 'Input',
|
||
},
|
||
{
|
||
label: '企业编号',
|
||
field: 'entCode',
|
||
component: 'Input',
|
||
},
|
||
{
|
||
label: '负责人',
|
||
field: 'entCharge',
|
||
component: 'Input',
|
||
},
|
||
{
|
||
label: '联系电话',
|
||
field: 'entPhone',
|
||
component: 'Input',
|
||
},
|
||
{
|
||
label: '租户号',
|
||
field: 'tenantId',
|
||
component: 'Input',
|
||
},
|
||
{
|
||
label: '乐观锁',
|
||
field: 'reVision',
|
||
component: 'InputNumber',
|
||
},
|
||
{
|
||
label: '创建人',
|
||
field: 'createdBy',
|
||
component: 'Input',
|
||
},
|
||
{
|
||
label: '更新人',
|
||
field: 'updatedBy',
|
||
component: 'Input',
|
||
},
|
||
{
|
||
label: '逻辑删除',
|
||
field: 'isDel',
|
||
component: 'InputNumber',
|
||
},
|
||
{
|
||
label: '更新时间',
|
||
field: 'updatedTime',
|
||
component: 'DatePicker',
|
||
},
|
||
// TODO 主键隐藏字段,目前写死为ID
|
||
{
|
||
label: '',
|
||
field: 'id',
|
||
component: 'Input',
|
||
show: false,
|
||
},
|
||
];
|