职务维护去掉不需要的字段

pull/474/head
zhangdaiscott 2023-03-15 11:33:54 +08:00
parent 4c8f5c8afd
commit 7bfd40ae04
1 changed files with 36 additions and 36 deletions

View File

@ -2,22 +2,22 @@ import { BasicColumn, FormSchema } from '/@/components/Table';
import { rules } from '/@/utils/helper/validator'; import { rules } from '/@/utils/helper/validator';
export const columns: BasicColumn[] = [ export const columns: BasicColumn[] = [
{ // {
title: '职务编码', // title: '职务编码',
dataIndex: 'code', // dataIndex: 'code',
width: 200, // width: 200,
align: 'left', // align: 'left',
}, // },
{ {
title: '职务名称', title: '职务名称',
dataIndex: 'name', dataIndex: 'name',
width: 200, width: 200,
}, },
{ // {
title: '职务等级', // title: '职务等级',
dataIndex: 'postRank_dictText', // dataIndex: 'postRank_dictText',
width: 100, // width: 100,
}, // },
]; ];
export const searchFormSchema: FormSchema[] = [ export const searchFormSchema: FormSchema[] = [
@ -36,35 +36,35 @@ export const formSchema: FormSchema[] = [
component: 'Input', component: 'Input',
show: false, show: false,
}, },
{ // {
label: '职级', // label: '职级',
field: 'postRank', // field: 'postRank',
component: 'JDictSelectTag', // component: 'JDictSelectTag',
required: true, // required: true,
componentProps: { // componentProps: {
dictCode: 'position_rank', // dictCode: 'position_rank',
dropdownStyle: { // dropdownStyle: {
maxHeight: '100vh', // maxHeight: '100vh',
}, // },
getPopupContainer: () => document.body, // getPopupContainer: () => document.body,
}, // },
}, // },
{ {
field: 'name', field: 'name',
label: '职务名称', label: '职务名称',
component: 'Input', component: 'Input',
required: true, required: true,
}, },
{ // {
field: 'code', // field: 'code',
label: '职务编码', // label: '职务编码',
component: 'Input', // component: 'Input',
required: true, // required: true,
dynamicDisabled: ({ values }) => { // dynamicDisabled: ({ values }) => {
return !!values.id; // return !!values.id;
}, // },
dynamicRules: ({ model, schema }) => { // dynamicRules: ({ model, schema }) => {
return rules.duplicateCheckRule('sys_position', 'code', model, schema, true); // return rules.duplicateCheckRule('sys_position', 'code', model, schema, true);
}, // },
}, // },
]; ];