import { BasicColumn } from '/@/components/Table'; import { FormSchema } from '/@/components/Table'; export const columns: BasicColumn[] = [ { title: '类型名称', dataIndex: 'itemText', align: 'left', width: 120, }, { title: '值', dataIndex: 'itemValue', width: 100, }, { title: '所属系统', dataIndex: 'description', width: 100, }, { title: '排序', dataIndex: 'sortOrder', width: 100, }, ]; export const passwordFormSchema: FormSchema[] = [ { label: '值', field: 'devicekind', component: 'Input', show: false, }, { label: '名称', field: 'itemText', component: 'Input', }, { label: '是否校验密码', field: 'bpass', component: 'RadioGroup', defaultValue: 0, componentProps: { options: [ { label: '是', value: 1, }, { label: '否', value: 0, }, ], }, }, { label: '旧密码', field: 'oldPassword', component: 'InputPassword', }, { label: '新密码', field: 'password', component: 'InputPassword', }, ]; export const formSchema: FormSchema[] = [ { label: '', field: 'id', component: 'Input', show: false, }, { label: '', field: 'dictId', component: 'Input', show: false, }, { label: '名称', field: 'itemText', component: 'Input', }, { label: '数据值', field: 'itemValue', component: 'Input', }, // { // label: '描述', // field: 'description', // component: 'Input', // }, { label: '所属系统', field: 'description', component: 'JDictSelectTag', componentProps: { dictCode: 'kindtype ', placeholder: '请选择所属系统', }, // colProps: { span: 6 }, }, { label: '排序值', field: 'sortOrder', suffix: '值越小越靠前', component: 'InputNumber', }, ];