Przeglądaj źródła

更换新增角色应用组件

ZL 3 tygodni temu
rodzic
commit
f8e2aa8bd2

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