feat:【antd】【crm】修改时,负责人不允许直接修改
This commit is contained in:
@@ -37,6 +37,10 @@ export function useFormSchema(): VbenFormSchema[] {
|
||||
fieldName: 'ownerUserId',
|
||||
label: '负责人',
|
||||
rules: 'required',
|
||||
dependencies: {
|
||||
triggerFields: ['id'],
|
||||
disabled: (values) => values.id,
|
||||
},
|
||||
componentProps: {
|
||||
api: () => getSimpleUserList(),
|
||||
fieldNames: {
|
||||
@@ -227,4 +231,3 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
|
||||
},
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user