3
0

3 Ревизии dcec7eabc5 ... 3704e624c6

Автор SHA1 Съобщение Дата
  ZL 3704e624c6 新增角色组件样式修改 преди 3 седмици
  ZL 069e4a9268 Merge remote-tracking branch 'origin/dev' into ZL преди 3 седмици
  ZL f8e2aa8bd2 更换新增角色应用组件 преди 3 седмици
променени са 1 файла, в които са добавени 6 реда и са изтрити 21 реда
  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,