import { FormProps, FormSchema } from '/@/components/Form'; import { BasicColumn } from '/@/components/Table'; export const formConfig = { useCustomConfig: false, }; export const searchFormSchema: FormSchema[] = [ { field: 'gsName', label: '评价体系名称', component: 'Input', }, { field: 'typeCode', label: '评价对象', component: 'XjrSelect', componentProps: { datasourceType: 'dic', params: { itemId: '1995320402390622209' }, labelField: 'name', valueField: 'value', getPopupContainer: () => document.body, }, }, { field: 'valid', label: '是否有效', component: 'XjrSelect', componentProps: { datasourceType: 'dic', params: { itemId: '1978057078528327681' }, labelField: 'name', valueField: 'value', getPopupContainer: () => document.body, }, }, ]; export const columns: BasicColumn[] = [ { dataIndex: 'gsName', title: '评价体系名称', componentType: 'input', align: 'left', sorter: true, }, { dataIndex: 'typeCode', title: '评价对象', componentType: 'select', align: 'left', sorter: true, }, { dataIndex: 'valid', title: '是否有效', componentType: 'select', align: 'left', sorter: true, }, ]; //表单事件 export const formEventConfigs = { 0: [ { type: 'circle', color: '#2774ff', text: '开始节点', icon: '#icon-kaishi', bgcColor: '#D8E5FF', isUserDefined: false, }, { color: '#F6AB01', icon: '#icon-chushihua', text: '初始化表单', bgcColor: '#f9f5ea', isUserDefined: false, nodeInfo: { processEvent: [] }, }, ], 1: [ { color: '#B36EDB', icon: '#icon-shujufenxi', text: '获取表单数据', detail: '(新增无此操作)', bgcColor: '#F8F2FC', isUserDefined: false, nodeInfo: { processEvent: [] }, }, ], 2: [ { color: '#F8625C', icon: '#icon-jiazai', text: '加载表单', bgcColor: '#FFF1F1', isUserDefined: false, nodeInfo: { processEvent: [] }, }, ], 3: [ { color: '#6C6AE0', icon: '#icon-jsontijiao', text: '提交表单', bgcColor: '#F5F4FF', isUserDefined: false, nodeInfo: { processEvent: [] }, }, ], 4: [ { type: 'circle', color: '#F8625C', text: '结束节点', icon: '#icon-jieshuzhiliao', bgcColor: '#FFD6D6', isLast: true, isUserDefined: false, }, ], }; export const formProps: FormProps = { labelCol: { span: 3, offset: 0 }, labelAlign: 'right', layout: 'horizontal', size: 'default', schemas: [ { key: '7da475c726b04a9396e9236bdfb7fb40', field: 'gsName', label: '评价体系名称', type: 'input', component: 'Input', colProps: { span: 12 }, defaultValue: '', componentProps: { width: '100%', span: '', defaultValue: '', labelWidthMode: 'fix', labelFixWidth: 120, responsive: false, respNewRow: false, placeholder: '请输入评价体系名称', maxlength: null, prefix: '', suffix: '', addonBefore: '', addonAfter: '', disabled: false, allowClear: false, showLabel: true, required: true, rules: [], events: {}, isSave: false, isShow: true, scan: false, style: { width: '100%' }, }, }, { key: '451442ecd8944843bb0915bcc2921664', field: 'typeCode', label: '评价对象', type: 'select', component: 'XjrSelect', colProps: { span: 12 }, componentProps: { width: '100%', span: '', labelWidthMode: 'fix', labelFixWidth: 120, responsive: false, respNewRow: false, placeholder: '请选择下拉选择', sepTextField: '', showLabel: true, showSearch: false, clearable: false, disabled: false, mode: '', staticOptions: [ { key: 1, label: 'Option 1', value: 'Option 1' }, { key: 2, label: 'Option 2', value: 'Option 2' }, { key: 3, label: 'Option 3', value: 'Option 3' }, ], defaultSelect: null, datasourceType: 'dic', params: { itemId: '1995320402390622209' }, labelField: 'name', valueField: 'value', apiConfig: { path: 'CodeGeneration/selection', method: 'GET', apiId: '93d735dcb7364a0f8102188ec4d77ac7', }, dicOptions: [], required: true, rules: [], events: {}, isShow: true, itemId: '1995320402390622209', style: { width: '100%' }, }, }, // { // key: 'd63f78edce284497bbcd892b61fc92d7', // field: 'valid', // label: '是否有效', // type: 'select', // component: 'XjrSelect', // colProps: { span: 24 }, // componentProps: { // width: '100%', // span: '', // labelWidthMode: 'fix', // labelFixWidth: 120, // responsive: false, // respNewRow: false, // placeholder: '请选择下拉选择', // sepTextField: '', // showLabel: true, // showSearch: false, // clearable: false, // disabled: false, // mode: 'multiple', // staticOptions: [ // { key: 1, label: 'Option 1', value: 'Option 1' }, // { key: 2, label: 'Option 2', value: 'Option 2' }, // { key: 3, label: 'Option 3', value: 'Option 3' }, // ], // defaultSelect: null, // datasourceType: 'dic', // params: { itemId: '1978057078528327681' }, // labelField: 'name', // valueField: 'value', // apiConfig: { // path: 'CodeGeneration/selection', // method: 'GET', // apiId: '93d735dcb7364a0f8102188ec4d77ac7', // }, // dicOptions: [], // required: false, // rules: [], // events: {}, // isShow: true, // itemId: '1978057078528327681', // style: { width: '100%' }, // }, // }, ], showActionButtonGroup: false, buttonLocation: 'center', actionColOptions: { span: 24 }, showResetButton: false, showSubmitButton: false, hiddenComponent: [], };