|
@@ -132,17 +132,6 @@ export const searchUsermodelSchema: FormSchema[] = [
|
|
|
|
|
|
];
|
|
|
|
|
|
-export const onCleanCode = (formRef: any) => {
|
|
|
- console.log('cleanCode');
|
|
|
- console.log('formRef.value', formRef);
|
|
|
- if (formRef) {
|
|
|
- formRef.setFieldsValue({
|
|
|
- roleCode: '',
|
|
|
- })
|
|
|
- console.log('formRef.value', formRef.validate);
|
|
|
-
|
|
|
- }
|
|
|
-};
|
|
|
|
|
|
export const formSchema: FormSchema[] = [
|
|
|
{
|
|
@@ -159,12 +148,8 @@ export const formSchema: FormSchema[] = [
|
|
|
api: appList,
|
|
|
labelField: 'name',
|
|
|
valueField: 'id',
|
|
|
- placeholder: '请选择应用',
|
|
|
- onChange: (value) => {
|
|
|
- onCleanCode();
|
|
|
- },
|
|
|
+ placeholder: '请选择应用'
|
|
|
},
|
|
|
- colProps: { span: 6 },
|
|
|
},
|
|
|
{
|
|
|
field: 'roleName',
|