Browse Source

更换新增角色应用组件

ZL 3 weeks ago
parent
commit
f8e2aa8bd2
1 changed files with 6 additions and 6 deletions
  1. 6 6
      jeecgboot-vue3/src/views/system/role/role.data.ts

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

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