3 Commits dcec7eabc5 ... 3704e624c6

Author SHA1 Message Date
  ZL 3704e624c6 新增角色组件样式修改 3 weeks ago
  ZL 069e4a9268 Merge remote-tracking branch 'origin/dev' into ZL 3 weeks ago
  ZL f8e2aa8bd2 更换新增角色应用组件 3 weeks ago
1 changed files with 6 additions and 21 deletions
  1. 6 21
      jeecgboot-vue3/src/views/system/role/role.data.ts

+ 6 - 21
jeecgboot-vue3/src/views/system/role/role.data.ts

@@ -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,