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: 'collegecode' }, { title: '学院', align: "center", dataIndex: 'college' }, { title: '工号', align: "center", dataIndex: 'user' }, { title: '姓名', align: "center", dataIndex: 'cn' }, { title: '职务', align: "center", dataIndex: 'duties' }, { title: '身份', align: "center", dataIndex: 'identity' }, { title: '状态', align: "center", dataIndex: 'status' }, { title: '职称', align: "center", dataIndex: 'zdxms' }, { title: '职务名称', align: "center", dataIndex: 'zwmc' }, { title: '职务代码', align: "center", dataIndex: 'zwdm' }, ]; //查询数据 export const searchFormSchema: FormSchema[] = [ ]; //表单数据 export const formSchema: FormSchema[] = [ { label: '学院编码', field: 'collegecode', component: 'Input', }, { label: '学院', field: 'college', component: 'Input', dynamicRules: ({model,schema}) => { return [ { required: true, message: '请输入学院!'}, ]; }, }, { label: '工号', field: 'user', component: 'Input', dynamicRules: ({model,schema}) => { return [ { required: true, message: '请输入工号!'}, ]; }, }, { label: '姓名', field: 'cn', component: 'Input', dynamicRules: ({model,schema}) => { return [ { required: true, message: '请输入姓名!'}, ]; }, }, { label: '职务', field: 'duties', component: 'Input', }, { label: '身份', field: 'identity', component: 'Input', }, { label: '状态', field: 'status', component: 'Input', }, { label: '职称', field: 'zdxms', component: 'Input', }, { label: '职务名称', field: 'zwmc', component: 'Input', }, { label: '职务代码', field: 'zwdm', component: 'Input', }, // TODO 主键隐藏字段,目前写死为ID { label: '', field: 'id', component: 'Input', show: false, }, ];