UNPKG

@jdlinker/linker

Version:

jdLinker 系统模块

111 lines (109 loc) 2.37 kB
import { BasicColumn, FormSchema } from '@jdlinker/ui'; //列表数据 export const columns: BasicColumn[] = [ { title: '任务名称', align: 'center', dataIndex: 'name', }, { title: '推送方式', align: 'center', dataIndex: 'mode', customRender: ({ record }) => { return record.mode.text; }, }, { title: '说明', align: 'center', dataIndex: 'description', }, { title: '升级超时时间', align: 'center', dataIndex: 'timeoutSeconds', }, { title: '创建时间', align: 'center', dataIndex: 'createTime', }, ]; //查询数据 export const searchFormSchema: FormSchema[] = [ { label: '任务名称', field: 'name', component: 'Input', }, { label: '推送方式', field: 'mode', component: 'Input', }, ]; //表单数据 // export const formSchema: FormSchema[] = [ // { // label: '任务名称', // field: 'name', // component: 'Input', // }, // { // label: '升级方式', // field: 'mode', // component: 'Input', // dynamicRules: ({model,schema}) => { // return [ // { required: true, message: '请输入升级方式!'}, // ]; // }, // }, // { // label: '固件id', // field: 'firmwareId', // component: 'Input', // }, // { // label: '产品id', // field: 'productId', // component: 'Input', // dynamicRules: ({model,schema}) => { // return [ // { required: true, message: '请输入产品id!'}, // ]; // }, // }, // { // label: '说明', // field: 'description', // component: 'Input', // }, // { // label: '升级超时时间', // field: 'timeoutSeconds', // component: 'Input', // }, // { // label: '创建时间', // field: 'createTime', // component: 'Input', // }, // // TODO 主键隐藏字段,目前写死为ID // { // label: '', // field: 'id', // component: 'Input', // show: false, // }, // ]; // // /** // * 流程表单调用这个方法获取formSchema // * @param _formData // */ // export function getBpmFormSchema(_formData): FormSchema[] { // // 默认和原始表单保持一致 如果流程中配置了权限数据,这里需要单独处理formSchema // return formSchema; // }