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: 'rwbh' }, { title: '课程编号', align: "center", dataIndex: 'kcbh' }, { title: '课程名称', align: "center", dataIndex: 'kcmc' }, { title: '教室编号', align: "center", dataIndex: 'jsbh' }, { title: '学年学期内部用', align: "center", dataIndex: 'xnxq' }, { title: '检测url', align: "center", dataIndex: 'detectionUrl' }, { title: '截取图片结果URL', align: "center", dataIndex: 'detectionOutImgUrl' }, { title: '截取图片计算人数返回结果', align: "center", dataIndex: 'detectionOutImgRes' }, { title: '检测次数(当前是第几次)', align: "center", dataIndex: 'detectionNum' }, { title: '当次检测人数', align: "center", dataIndex: 'num' }, ]; //查询数据 export const searchFormSchema: FormSchema[] = [ ]; //表单数据 export const formSchema: FormSchema[] = [ { label: '任务编号(课堂)', field: 'rwbh', component: 'Input', }, { label: '课程编号', field: 'kcbh', component: 'Input', }, { label: '课程名称', field: 'kcmc', component: 'Input', }, { label: '教室编号', field: 'jsbh', component: 'Input', }, { label: '学年学期内部用', field: 'xnxq', component: 'Input', }, { label: '检测url', field: 'detectionUrl', component: 'Input', }, { label: '截取图片结果URL', field: 'detectionOutImgUrl', component: 'Input', }, { label: '截取图片计算人数返回结果', field: 'detectionOutImgRes', component: 'Input', }, { label: '检测次数(当前是第几次)', field: 'detectionNum', component: 'InputNumber', }, { label: '当次检测人数', field: 'num', component: 'InputNumber', }, // TODO 主键隐藏字段,目前写死为ID { label: '', field: 'id', component: 'Input', show: false }, ]; /** * 流程表单调用这个方法获取formSchema * @param param */ export function getBpmFormSchema(_formData): FormSchema[] { // 默认和原始表单保持一致 如果流程中配置了权限数据,这里需要单独处理formSchema return formSchema; }