1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
| import type { VbenFormSchema } from '#/adapter/form';
|
| import { getSimpleAccountList } from '#/api/mp/account';
|
| /** 菜单未选中标识 */
| export const MENU_NOT_SELECTED = '__MENU_NOT_SELECTED__';
|
| /** 菜单级别枚举 */
| export enum Level {
| Child = '2',
| Parent = '1',
| Undefined = '0',
| }
|
| /** 列表的搜索表单 */
| export function useGridFormSchema(): VbenFormSchema[] {
| return [
| {
| fieldName: 'accountId',
| label: '公众号',
| component: 'ApiSelect',
| componentProps: {
| api: getSimpleAccountList,
| labelField: 'name',
| valueField: 'id',
| autoSelect: 'first',
| placeholder: '请选择公众号',
| },
| },
| ];
| }
|
|