|
@@ -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[] = [
|
|
|
{
|
|
@@ -154,19 +143,15 @@ export const formSchema: FormSchema[] = [
|
|
|
{
|
|
|
label: '应用',
|
|
|
field: 'appId',
|
|
|
- required: true,
|
|
|
- component: 'JDictSelectTag',
|
|
|
+ component: 'ApiSelect',
|
|
|
componentProps: {
|
|
|
- dictCode: 'app_base_info,name,id',
|
|
|
- placeholder: '请选择应用',
|
|
|
- onChange: (value) => {
|
|
|
- onCleanCode();
|
|
|
- },
|
|
|
+ api: appList,
|
|
|
+ labelField: 'name',
|
|
|
+ valueField: 'id',
|
|
|
+ placeholder: '请选择应用'
|
|
|
},
|
|
|
-
|
|
|
},
|
|
|
-
|
|
|
- {
|
|
|
+ {
|
|
|
field: 'roleName',
|
|
|
label: '角色名称',
|
|
|
required: true,
|