kn-cli 1.0.131 → 1.0.133
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/vite.config.js +1 -1
- package/package.json +2 -1
- package/src/create.js +2 -0
- package/templates/template_admin_antd5/.vscode/settings.json +28 -0
- package/templates/template_admin_antd5/build.sh +8 -0
- package/templates/template_admin_antd5/cli.config.js +35 -0
- package/templates/template_admin_antd5/dev.sh +33 -0
- package/templates/template_admin_antd5/frontend_build.sh +48 -0
- package/templates/template_admin_antd5/init/prepare-commit-msg +5 -0
- package/templates/template_admin_antd5/init.sh +24 -0
- package/templates/template_admin_antd5/jsconfig.json +17 -0
- package/templates/template_admin_antd5/package.json +27 -0
- package/templates/template_admin_antd5/public/404.html +26 -0
- package/templates/template_admin_antd5/public/favicon.png +0 -0
- package/templates/template_admin_antd5/public/index.html +48 -0
- package/templates/template_admin_antd5/public/src/_antd.less +37 -0
- package/templates/template_admin_antd5/public/src/_mixin.module.less +79 -0
- package/templates/template_admin_antd5/public/src/_reset.module.less +134 -0
- package/templates/template_admin_antd5/public/src/_variable.module.less +85 -0
- package/templates/template_admin_antd5/public/src/assets/iconfont/iconfont.eot +0 -0
- package/templates/template_admin_antd5/public/src/assets/iconfont/iconfont.module.less +109 -0
- package/templates/template_admin_antd5/public/src/assets/iconfont/iconfont.svg +75 -0
- package/templates/template_admin_antd5/public/src/assets/iconfont/iconfont.ttf +0 -0
- package/templates/template_admin_antd5/public/src/assets/iconfont/iconfont.woff +0 -0
- package/templates/template_admin_antd5/public/src/assets/iconfont/iconfont.woff2 +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/arrow.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/avatar.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/icon-notice.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/icon-user.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/loadFail.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/loading.svg +40 -0
- package/templates/template_admin_antd5/public/src/assets/images/login/bg.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/login/logo.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/login/slogan.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/nav/icon-dep-active.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/nav/icon-dep.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/nav/icon-log-active.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/nav/icon-log.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/nav/icon-loginlog-active.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/nav/icon-loginlog.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/nav/icon-role-active.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/nav/icon-role.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/nav/icon-user-active.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/nav/icon-user.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/nav/nav-toggle.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/nav/slogan.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/noData.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/noSelect.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/permission/403.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/permission/404.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/permission/503.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/play.png +0 -0
- package/templates/template_admin_antd5/public/src/components/_table/column.jsx +47 -0
- package/templates/template_admin_antd5/public/src/components/_table/column.module.less +12 -0
- package/templates/template_admin_antd5/public/src/components/_table/index.jsx +71 -0
- package/templates/template_admin_antd5/public/src/components/_table/index.module.less +15 -0
- package/templates/template_admin_antd5/public/src/components/antd/antProvider.jsx +21 -0
- package/templates/template_admin_antd5/public/src/components/antd/index.jsx +146 -0
- package/templates/template_admin_antd5/public/src/components/antd/select/index.jsx +296 -0
- package/templates/template_admin_antd5/public/src/components/antd/select/index.module.less +21 -0
- package/templates/template_admin_antd5/public/src/components/antd/theme.js +173 -0
- package/templates/template_admin_antd5/public/src/components/antd/tooltip/detail/index.jsx +70 -0
- package/templates/template_admin_antd5/public/src/components/antd/tooltip/detail/index.module.less +12 -0
- package/templates/template_admin_antd5/public/src/components/antd/tooltip/index.jsx +69 -0
- package/templates/template_admin_antd5/public/src/components/antd/tooltip/index.module.less +28 -0
- package/templates/template_admin_antd5/public/src/components/auth/index.jsx +123 -0
- package/templates/template_admin_antd5/public/src/components/auth/index.module.less +7 -0
- package/templates/template_admin_antd5/public/src/components/auth/navCheck.jsx +27 -0
- package/templates/template_admin_antd5/public/src/components/badge/index.jsx +47 -0
- package/templates/template_admin_antd5/public/src/components/badge/index.module.less +44 -0
- package/templates/template_admin_antd5/public/src/components/button/index.jsx +17 -0
- package/templates/template_admin_antd5/public/src/components/debug/index.jsx +28 -0
- package/templates/template_admin_antd5/public/src/components/debug/index.module.less +10 -0
- package/templates/template_admin_antd5/public/src/components/empty/index.jsx +28 -0
- package/templates/template_admin_antd5/public/src/components/empty/index.module.less +20 -0
- package/templates/template_admin_antd5/public/src/components/error/index.jsx +39 -0
- package/templates/template_admin_antd5/public/src/components/icon/index.jsx +128 -0
- package/templates/template_admin_antd5/public/src/components/icon/playVideo/index.jsx +21 -0
- package/templates/template_admin_antd5/public/src/components/icon/playVideo/index.module.less +16 -0
- package/templates/template_admin_antd5/public/src/components/iconFont/index.jsx +20 -0
- package/templates/template_admin_antd5/public/src/components/iconFont/index.module.less +5 -0
- package/templates/template_admin_antd5/public/src/components/image/index.jsx +73 -0
- package/templates/template_admin_antd5/public/src/components/image/index.module.less +117 -0
- package/templates/template_admin_antd5/public/src/components/image/preview.jsx +85 -0
- package/templates/template_admin_antd5/public/src/components/layout/basic/index.jsx +49 -0
- package/templates/template_admin_antd5/public/src/components/layout/basic/index.module.less +76 -0
- package/templates/template_admin_antd5/public/src/components/layout/index.jsx +39 -0
- package/templates/template_admin_antd5/public/src/components/layout/index.module.less +63 -0
- package/templates/template_admin_antd5/public/src/components/layout/provider/index.jsx +32 -0
- package/templates/template_admin_antd5/public/src/components/leftMenu/index.jsx +106 -0
- package/templates/template_admin_antd5/public/src/components/leftMenu/index.module.less +42 -0
- package/templates/template_admin_antd5/public/src/components/link/index.jsx +39 -0
- package/templates/template_admin_antd5/public/src/components/link/index.module.less +11 -0
- package/templates/template_admin_antd5/public/src/components/menuIcon/index.jsx +33 -0
- package/templates/template_admin_antd5/public/src/components/menuIcon/index.module.less +49 -0
- package/templates/template_admin_antd5/public/src/components/page/pageLoading/index.jsx +51 -0
- package/templates/template_admin_antd5/public/src/components/page/pageLoading/index.module.less +29 -0
- package/templates/template_admin_antd5/public/src/components/popup/index.jsx +60 -0
- package/templates/template_admin_antd5/public/src/components/popup/index.module.less +18 -0
- package/templates/template_admin_antd5/public/src/components/react/index.jsx +13 -0
- package/templates/template_admin_antd5/public/src/components/resizeBox/index.jsx +144 -0
- package/templates/template_admin_antd5/public/src/components/resizeBox/index.module.css +90 -0
- package/templates/template_admin_antd5/public/src/components/select/defaultServicesSelect/index.jsx +182 -0
- package/templates/template_admin_antd5/public/src/components/select/dictSelect/index.jsx +84 -0
- package/templates/template_admin_antd5/public/src/components/select/index.jsx +7 -0
- package/templates/template_admin_antd5/public/src/components/select/useSelectList.jsx +217 -0
- package/templates/template_admin_antd5/public/src/components/table/aliTable/index.jsx +250 -0
- package/templates/template_admin_antd5/public/src/components/table/aliTable/index.module.less +105 -0
- package/templates/template_admin_antd5/public/src/components/table/column.jsx +128 -0
- package/templates/template_admin_antd5/public/src/components/table/column.module.less +50 -0
- package/templates/template_admin_antd5/public/src/components/table/imageTable/index.jsx +302 -0
- package/templates/template_admin_antd5/public/src/components/table/imageTable/index.module.less +196 -0
- package/templates/template_admin_antd5/public/src/components/table/imageTable/radio.jsx +15 -0
- package/templates/template_admin_antd5/public/src/components/table/imageTable/radio.module.less +18 -0
- package/templates/template_admin_antd5/public/src/components/table/index.jsx +475 -0
- package/templates/template_admin_antd5/public/src/components/table/index.module.less +133 -0
- package/templates/template_admin_antd5/public/src/components/text/index.jsx +98 -0
- package/templates/template_admin_antd5/public/src/components/text/index.module.less +13 -0
- package/templates/template_admin_antd5/public/src/components/toast/index.jsx +79 -0
- package/templates/template_admin_antd5/public/src/components/toast/index.module.less +43 -0
- package/templates/template_admin_antd5/public/src/components/topMenu/index.jsx +102 -0
- package/templates/template_admin_antd5/public/src/components/topMenu/index.module.less +89 -0
- package/templates/template_admin_antd5/public/src/components/topMenu/topBar/index.jsx +81 -0
- package/templates/template_admin_antd5/public/src/components/topMenu/topBar/index.module.less +97 -0
- package/templates/template_admin_antd5/public/src/components/video/index.jsx +96 -0
- package/templates/template_admin_antd5/public/src/components/video/index.module.less +132 -0
- package/templates/template_admin_antd5/public/src/components/video/preview.jsx +38 -0
- package/templates/template_admin_antd5/public/src/config.js +31 -0
- package/templates/template_admin_antd5/public/src/declarations.d.ts +1 -0
- package/templates/template_admin_antd5/public/src/dictionary/dictionary.js +289 -0
- package/templates/template_admin_antd5/public/src/dictionary/index.jsx +64 -0
- package/templates/template_admin_antd5/public/src/enum.js +41 -0
- package/templates/template_admin_antd5/public/src/hooks/index.jsx +29 -0
- package/templates/template_admin_antd5/public/src/hooks/useDebounceFn.jsx +33 -0
- package/templates/template_admin_antd5/public/src/hooks/useDelay.jsx +34 -0
- package/templates/template_admin_antd5/public/src/hooks/useEsc.jsx +98 -0
- package/templates/template_admin_antd5/public/src/hooks/useImageLoader.jsx +26 -0
- package/templates/template_admin_antd5/public/src/hooks/useInToView.jsx +58 -0
- package/templates/template_admin_antd5/public/src/hooks/useLoading.jsx +46 -0
- package/templates/template_admin_antd5/public/src/hooks/usePreload.jsx +67 -0
- package/templates/template_admin_antd5/public/src/hooks/useRouteMenu.jsx +263 -0
- package/templates/template_admin_antd5/public/src/hooks/useScrollTop.jsx +44 -0
- package/templates/template_admin_antd5/public/src/hooks/useSearch.jsx +163 -0
- package/templates/template_admin_antd5/public/src/hooks/useTableRowSelect.jsx +310 -0
- package/templates/template_admin_antd5/public/src/hooks/useThrottole.jsx +68 -0
- package/templates/template_admin_antd5/public/src/hooks/useTimer.jsx +42 -0
- package/templates/template_admin_antd5/public/src/hooks/useUpdate.jsx +16 -0
- package/templates/template_admin_antd5/public/src/hooks/useWatchServices.jsx +124 -0
- package/templates/template_admin_antd5/public/src/index.jsx +89 -0
- package/templates/template_admin_antd5/public/src/menuConfig/auth.jsx +92 -0
- package/templates/template_admin_antd5/public/src/menuConfig/dashboard.jsx +25 -0
- package/templates/template_admin_antd5/public/src/menuConfig/dna.jsx +76 -0
- package/templates/template_admin_antd5/public/src/menuConfig/index.jsx +17 -0
- package/templates/template_admin_antd5/public/src/mock/auth.js +33 -0
- package/templates/template_admin_antd5/public/src/mock/demo.js +122 -0
- package/templates/template_admin_antd5/public/src/mock/index.js +65 -0
- package/templates/template_admin_antd5/public/src/mock/utils.js +33 -0
- package/templates/template_admin_antd5/public/src/pages/antdComponents/index.jsx +142 -0
- package/templates/template_admin_antd5/public/src/pages/auth/user/create/index.jsx +47 -0
- package/templates/template_admin_antd5/public/src/pages/auth/user/create/index.module.less +6 -0
- package/templates/template_admin_antd5/public/src/pages/auth/user/dialog/index.jsx +96 -0
- package/templates/template_admin_antd5/public/src/pages/auth/user/index.jsx +214 -0
- package/templates/template_admin_antd5/public/src/pages/components/layout/index.jsx +75 -0
- package/templates/template_admin_antd5/public/src/pages/components/layout/index.module.less +78 -0
- package/templates/template_admin_antd5/public/src/pages/components/layout/titleBar/index.jsx +28 -0
- package/templates/template_admin_antd5/public/src/pages/components/layout/titleBar/index.module.less +44 -0
- package/templates/template_admin_antd5/public/src/pages/components/select/user.jsx +18 -0
- package/templates/template_admin_antd5/public/src/pages/demo/page1.jsx +21 -0
- package/templates/template_admin_antd5/public/src/pages/demo/page2.jsx +21 -0
- package/templates/template_admin_antd5/public/src/pages/demo/page3.jsx +21 -0
- package/templates/template_admin_antd5/public/src/pages/error/403.jsx +15 -0
- package/templates/template_admin_antd5/public/src/pages/error/404.jsx +15 -0
- package/templates/template_admin_antd5/public/src/pages/error/503.jsx +15 -0
- package/templates/template_admin_antd5/public/src/pages/error/permission.jsx +40 -0
- package/templates/template_admin_antd5/public/src/pages/error/permission.module.less +16 -0
- package/templates/template_admin_antd5/public/src/pages/home.jsx +90 -0
- package/templates/template_admin_antd5/public/src/pages/home.module.less +6 -0
- package/templates/template_admin_antd5/public/src/pages/login/index.jsx +113 -0
- package/templates/template_admin_antd5/public/src/pages/login/index.module.less +153 -0
- package/templates/template_admin_antd5/public/src/pages/pageTemplate.jsx +28 -0
- package/templates/template_admin_antd5/public/src/provider/app.jsx +201 -0
- package/templates/template_admin_antd5/public/src/provider/loading.jsx +47 -0
- package/templates/template_admin_antd5/public/src/provider/menu.jsx +161 -0
- package/templates/template_admin_antd5/public/src/provider/menu.module.less +35 -0
- package/templates/template_admin_antd5/public/src/route.jsx +127 -0
- package/templates/template_admin_antd5/public/src/services/demo.js +85 -0
- package/templates/template_admin_antd5/public/src/services/excel.js +43 -0
- package/templates/template_admin_antd5/public/src/services/http/index.js +155 -0
- package/templates/template_admin_antd5/public/src/services/index.js +126 -0
- package/templates/template_admin_antd5/public/src/services/interceptor/index.js +67 -0
- package/templates/template_admin_antd5/public/src/services/login.js +37 -0
- package/templates/template_admin_antd5/public/src/services/socket/index.jsx +99 -0
- package/templates/template_admin_antd5/public/src/services/token/index.js +41 -0
- package/templates/template_admin_antd5/public/src/type.js +67 -0
- package/templates/template_admin_antd5/public/src/utils/event.js +58 -0
- package/templates/template_admin_antd5/public/src/utils/format.js +135 -0
- package/templates/template_admin_antd5/public/src/utils/index.js +727 -0
- package/templates/template_admin_antd5/public/src/utils/menu.js +33 -0
- package/templates/template_admin_antd5/public/src/utils/rule.js +277 -0
- package/templates/template_admin_antd5/public/src/utils/storage.js +30 -0
- package/templates/template_admin_antd5/public/static/about.html +1 -0
- package/templates/template_admin_antd5/public/static/kssoLogin.html +22 -0
- package/templates/template_admin_antd5/readme.md +84 -0
- package/templates/template_admin_antd5/renamejstojsx.js +45 -0
- package/templates/template_admin_antd5/renameless.js +53 -0
- package/templates/template_admin_antd5/report.sh +25 -0
- package/templates/template_admin_antd5/shellUtil.sh +110 -0
- package/templates/template_admin_antd5/versionPublish.sh +16 -0
- package/templates/template_admin_antd5/webpack.api.js +105 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {LoadComponent,UpdateAuth} from '@/utils/menu';
|
|
3
|
+
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
import MenuIcon from '@/components/menuIcon';
|
|
6
|
+
|
|
7
|
+
import PageTemplate from '@/pages/pageTemplate';
|
|
8
|
+
|
|
9
|
+
const AuthUser = React.lazy(() => import('@/pages/auth/user'));
|
|
10
|
+
const AuthUserCreate = React.lazy(() => import('@/pages/auth/user/create'));
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @type {RouteMenuItem}
|
|
15
|
+
*/
|
|
16
|
+
const _AUTH={
|
|
17
|
+
name:'控制室',
|
|
18
|
+
url:'/auth',
|
|
19
|
+
msgCount:12,
|
|
20
|
+
primaryId:'auth',
|
|
21
|
+
auth:['auth1'],
|
|
22
|
+
children:[
|
|
23
|
+
{
|
|
24
|
+
name: '用户',
|
|
25
|
+
component:<AuthUser />,
|
|
26
|
+
icon:<MenuIcon name='icon-user'/>,
|
|
27
|
+
url: '/auth/user',
|
|
28
|
+
auth:true,
|
|
29
|
+
primaryId:'authUser',
|
|
30
|
+
msgCount:0,
|
|
31
|
+
children:[
|
|
32
|
+
{
|
|
33
|
+
component:<AuthUserCreate />,
|
|
34
|
+
name:'新建用户',
|
|
35
|
+
url:'/auth/user/create',
|
|
36
|
+
hideMenu:true
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: '部门',
|
|
42
|
+
icon:<MenuIcon name='icon-dep'/>,
|
|
43
|
+
url: '/auth/dep',
|
|
44
|
+
auth:true,
|
|
45
|
+
children:[
|
|
46
|
+
{
|
|
47
|
+
component:<PageTemplate name='部门列表' />,
|
|
48
|
+
name:'部门列表',
|
|
49
|
+
url:'/auth/dep/list',
|
|
50
|
+
auth:true,
|
|
51
|
+
children:[
|
|
52
|
+
{
|
|
53
|
+
component:<PageTemplate name='部门详情' />,
|
|
54
|
+
name:'部门详情',
|
|
55
|
+
routeTemplate:'/auth/dep/detail/:id',
|
|
56
|
+
hideMenu:true,
|
|
57
|
+
auth:true,
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
name: '角色',
|
|
66
|
+
component:<PageTemplate name='角色' />,
|
|
67
|
+
icon:<MenuIcon name='icon-role'/>,
|
|
68
|
+
url: '/auth/role',
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: '操作记录',
|
|
72
|
+
component:<PageTemplate name='操作记录' />,
|
|
73
|
+
icon:<MenuIcon name='icon-log'/>,
|
|
74
|
+
url: '/auth/log',
|
|
75
|
+
msgCount:12,
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: '登录日志',
|
|
79
|
+
component:<PageTemplate name='登录日志' />,
|
|
80
|
+
icon:<MenuIcon name='icon-loginlog'/>,
|
|
81
|
+
url: '/auth/loginLog',
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* @type {RouteMenuItem}
|
|
89
|
+
*/
|
|
90
|
+
const AUTH=UpdateAuth(_AUTH);
|
|
91
|
+
|
|
92
|
+
export default AUTH;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {LoadComponent,UpdateAuth} from '@/utils/menu';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @type {RouteMenuItem}
|
|
10
|
+
*/
|
|
11
|
+
const _DASHBOARD={
|
|
12
|
+
name:'仪表盘',
|
|
13
|
+
url:'/dashboard',
|
|
14
|
+
auth:['auth2'],
|
|
15
|
+
component:LoadComponent(React.lazy(() => import('@/pages/home'))),
|
|
16
|
+
children:[
|
|
17
|
+
],
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @type {RouteMenuItem}
|
|
22
|
+
*/
|
|
23
|
+
const DASHBOARD=UpdateAuth(_DASHBOARD);
|
|
24
|
+
|
|
25
|
+
export default DASHBOARD;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {LoadComponent,UpdateAuth} from '@/utils/menu';
|
|
3
|
+
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
import MenuIcon from '@/components/menuIcon';
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
const Page2 = React.lazy(() => import('@/pages/demo/page2'));
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @type {RouteMenuItem}
|
|
13
|
+
*/
|
|
14
|
+
const _DNA={
|
|
15
|
+
name:'基因库',
|
|
16
|
+
url:'/dna',
|
|
17
|
+
auth:['auth1'],
|
|
18
|
+
children:[
|
|
19
|
+
{
|
|
20
|
+
name: '父菜单1',
|
|
21
|
+
icon:<MenuIcon name='icon-dep'/>,
|
|
22
|
+
url: '/dna/parent',
|
|
23
|
+
auth:['auth2'],
|
|
24
|
+
children:[
|
|
25
|
+
{
|
|
26
|
+
component:LoadComponent(React.lazy(() => import('@/pages/demo/page1'))),
|
|
27
|
+
name:'子菜单1-1',
|
|
28
|
+
auth:['auth3'],
|
|
29
|
+
url:'/dna/parent/child1'
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: '父菜单2',
|
|
35
|
+
icon:<MenuIcon name='icon-dep'/>,
|
|
36
|
+
url: '/dna/parent2',
|
|
37
|
+
auth:true,
|
|
38
|
+
children:[
|
|
39
|
+
{
|
|
40
|
+
component:<Page2 name='父菜单2-子菜单1'/>,
|
|
41
|
+
name:'子菜单2-1',
|
|
42
|
+
auth:true,
|
|
43
|
+
url:'/dna/parent2/child1'
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: '父菜单3',
|
|
49
|
+
icon:<MenuIcon name='icon-dep'/>,
|
|
50
|
+
url: '/dna/parent3',
|
|
51
|
+
auth:true,
|
|
52
|
+
children:[
|
|
53
|
+
{
|
|
54
|
+
name:'子菜单3-1',
|
|
55
|
+
auth:true,
|
|
56
|
+
url:'/dna/parent3/child1',
|
|
57
|
+
children:[
|
|
58
|
+
{
|
|
59
|
+
component:<Page2 name='父菜单3-子菜单1-子子菜单1'/>,
|
|
60
|
+
name:'子菜单3-1-1',
|
|
61
|
+
auth:true,
|
|
62
|
+
url:'/dna/parent3/child1/child1'
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* @type {RouteMenuItem}
|
|
73
|
+
*/
|
|
74
|
+
const DNA=UpdateAuth(_DNA);
|
|
75
|
+
|
|
76
|
+
export default DNA;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// @ts-ignore
|
|
2
|
+
import React from 'react';
|
|
3
|
+
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
import DNA from './dna';
|
|
6
|
+
// @ts-ignore
|
|
7
|
+
import AUTH from './auth';
|
|
8
|
+
// @ts-ignore
|
|
9
|
+
import DASHBOARD from './dashboard';
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @type {RouteMenuItem[]}
|
|
16
|
+
*/
|
|
17
|
+
export default [DASHBOARD, DNA, AUTH]
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import {GET_REQUEST,waitTime} from './utils';
|
|
2
|
+
import {RESPONSE_STRUCT} from '@/services';
|
|
3
|
+
|
|
4
|
+
async function KSSOLOGIN(req,res){
|
|
5
|
+
const params = GET_REQUEST(req);
|
|
6
|
+
|
|
7
|
+
await waitTime();
|
|
8
|
+
return {
|
|
9
|
+
"code": 0,
|
|
10
|
+
"msg": "操作成功",
|
|
11
|
+
"data": {
|
|
12
|
+
"authorities": [],
|
|
13
|
+
"details": {
|
|
14
|
+
"remoteAddress": "172.16.32.116",
|
|
15
|
+
"sessionId": null
|
|
16
|
+
},
|
|
17
|
+
"authenticated": false,
|
|
18
|
+
"principal": "changx",
|
|
19
|
+
"credentials": null,
|
|
20
|
+
"token": "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJjaGFuZ3giLCJtb2RpZnkiOjAsInJlYWxOYW1lIjoi5bi45petIiwiY3JlYXRlZCI6MTcxMTQ0MTA5NzU2NSwidXNlck5hbWUiOiJjaGFuZ3giLCJleHAiOjE3MTE0ODQyOTcsInVzZXJJZCI6MTQsImp0aSI6MTQsImF1dGhvcml0aWVzIjpbeyJhdXRob3JpdHkiOiJncm91cC5kZWxldGUifSx7ImF1dGhvcml0eSI6InVzZXIudmlldyJ9LHsiYXV0aG9yaXR5Ijoicm9sZSJ9LHsiYXV0aG9yaXR5IjoicGVybWlzc2lvbi52aWV3In0seyJhdXRob3JpdHkiOiJkZXZpY2VfZ3JvdXAifSx7ImF1dGhvcml0eSI6InJvbGUudmlldyJ9LHsiYXV0aG9yaXR5IjoicGVybWlzc2lvbiJ9LHsiYXV0aG9yaXR5IjoiZ3JvdXAudmlldyJ9LHsiYXV0aG9yaXR5IjoiZGV2aWNlX2dyb3VwLmRlbGV0ZSJ9LHsiYXV0aG9yaXR5IjoidXNlci5lZGl0In0seyJhdXRob3JpdHkiOiJncm91cC5lZGl0In0seyJhdXRob3JpdHkiOiJkZXZpY2VfZ3JvdXAuYWRkIn0seyJhdXRob3JpdHkiOiJkZXZpY2VfZ3JvdXAuZWRpdCJ9LHsiYXV0aG9yaXR5IjoiZGV2aWNlX2dyb3VwLnZpZXcifSx7ImF1dGhvcml0eSI6InVzZXIifV19.aedlb-P96FuWt_xhqLuTOcudcZqThzloxcJpTmlanCB9bm2e_5RGlcPWxBbi7mdj5VGIQ36gCf1SDxy7aPewbw",
|
|
21
|
+
"userId": "14",
|
|
22
|
+
"username": "changx",
|
|
23
|
+
"realName": "常旭",
|
|
24
|
+
"isAdmin": false,
|
|
25
|
+
"modify": null,
|
|
26
|
+
"name": "changx"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export default {
|
|
32
|
+
'/api/ksso/auth':{post:KSSOLOGIN},
|
|
33
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import qs from 'qs';
|
|
2
|
+
import {GET_REQUEST,waitTime} from './utils';
|
|
3
|
+
import {RESPONSE_STRUCT} from '@/services';
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
import moment from 'moment';
|
|
6
|
+
|
|
7
|
+
const MAX_TOTAL=98;
|
|
8
|
+
let UPDATE_COUNT=0;
|
|
9
|
+
let CREATE_COUNT=0;
|
|
10
|
+
let LIST=null;
|
|
11
|
+
|
|
12
|
+
function updateListData(){
|
|
13
|
+
let list=[];
|
|
14
|
+
const selectValue=['1','2','3','4','5','6']
|
|
15
|
+
|
|
16
|
+
const createData=(id)=>{
|
|
17
|
+
return {
|
|
18
|
+
id:`${id}`,
|
|
19
|
+
updateCount:UPDATE_COUNT,
|
|
20
|
+
name: `名称`+ `${id}`.padStart(2,'0'),
|
|
21
|
+
phone: `1370000`+ `${id}`.padStart(4,'0'),
|
|
22
|
+
date: moment().add(id,'minute').unix()*1000,//format('YYYY-MM-DD HH:mm:ss'),
|
|
23
|
+
dateRange: [moment().add(id,'minute').unix()*1000,moment().add(id,'day').unix()*1000],
|
|
24
|
+
select: selectValue[id%selectValue.length],
|
|
25
|
+
longName: `这是一个很长的名称`+ `${id}`.padStart(2,'0'),
|
|
26
|
+
imgName: 'https://nebula-api.oss-cn-shanghai.aliyuncs.com/20240329/24163932-85ea-4372-9ff7-ee7c71748bcb/1711691401353-95387929.jpeg',
|
|
27
|
+
previewSrcs:[
|
|
28
|
+
'http://callcneter.oss-cn-shanghai.aliyuncs.com/140_zhangfan31711522544778-46413274',
|
|
29
|
+
'http://callcneter.oss-cn-shanghai.aliyuncs.com/140_zhangfan31711522539477-71557179',
|
|
30
|
+
'http://callcneter.oss-cn-shanghai.aliyuncs.com/140_zhangfan31711522552637-65222632',
|
|
31
|
+
'http://callcneter.oss-cn-shanghai.aliyuncs.com/140_zhangfan31711522549224-81138313',
|
|
32
|
+
],
|
|
33
|
+
videoName:'https://nebula-api.oss-cn-shanghai.aliyuncs.com/20240329/fc172bf8-1f61-4464-8d48-29b98a42fb4a/1711701991414-12827489.mp4',
|
|
34
|
+
disabled:id%2?true:false
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
for(let i=0;i<MAX_TOTAL;i++){
|
|
39
|
+
list.push(createData(i))
|
|
40
|
+
}
|
|
41
|
+
for(let i=0;i<CREATE_COUNT;i++){
|
|
42
|
+
list.push(createData(300+i))
|
|
43
|
+
}
|
|
44
|
+
LIST=list;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
async function CREATE(req,res){
|
|
49
|
+
CREATE_COUNT++;
|
|
50
|
+
updateListData();
|
|
51
|
+
const query = JSON.parse(req.body);
|
|
52
|
+
await waitTime();
|
|
53
|
+
return {
|
|
54
|
+
[RESPONSE_STRUCT.CODE]:0,
|
|
55
|
+
[RESPONSE_STRUCT.DATA]:query,
|
|
56
|
+
[RESPONSE_STRUCT.MSG]:''
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
async function UPDATE(req,res){
|
|
61
|
+
UPDATE_COUNT++;
|
|
62
|
+
updateListData();
|
|
63
|
+
const query = JSON.parse(req.body);
|
|
64
|
+
await waitTime();
|
|
65
|
+
|
|
66
|
+
return {
|
|
67
|
+
[RESPONSE_STRUCT.CODE]:0,
|
|
68
|
+
[RESPONSE_STRUCT.DATA]:query,
|
|
69
|
+
[RESPONSE_STRUCT.MSG]:''
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
async function GET_LIST(req){
|
|
74
|
+
const params = GET_REQUEST(req);
|
|
75
|
+
const {current,pageSize,...querys}= params;
|
|
76
|
+
if(!LIST)updateListData();
|
|
77
|
+
const strQuerys=JSON.stringify(querys);
|
|
78
|
+
let data=[];
|
|
79
|
+
let idx=(current-1)*pageSize;
|
|
80
|
+
for(let i=0;i<pageSize;i++){
|
|
81
|
+
if(idx>=MAX_TOTAL+CREATE_COUNT)break;
|
|
82
|
+
data.push({...LIST[idx],query:strQuerys});
|
|
83
|
+
idx++;
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
[RESPONSE_STRUCT.CODE]:0,
|
|
87
|
+
[RESPONSE_STRUCT.DATA]:data,
|
|
88
|
+
[RESPONSE_STRUCT.PAGINATION]:{
|
|
89
|
+
current:current,
|
|
90
|
+
pageSize:pageSize,
|
|
91
|
+
total:MAX_TOTAL
|
|
92
|
+
},
|
|
93
|
+
[RESPONSE_STRUCT.MSG]:''
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
async function GET_DETAIL(req){
|
|
98
|
+
const params = GET_REQUEST(req);
|
|
99
|
+
const {id}= params;
|
|
100
|
+
if(!LIST)updateListData();
|
|
101
|
+
for(let item of LIST){
|
|
102
|
+
if(item.id == id){
|
|
103
|
+
return {
|
|
104
|
+
[RESPONSE_STRUCT.CODE]:0,
|
|
105
|
+
[RESPONSE_STRUCT.DATA]:item,
|
|
106
|
+
[RESPONSE_STRUCT.MSG]:''
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
return {
|
|
111
|
+
[RESPONSE_STRUCT.CODE]:0,
|
|
112
|
+
[RESPONSE_STRUCT.DATA]:null,
|
|
113
|
+
[RESPONSE_STRUCT.MSG]:''
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
}
|
|
117
|
+
export default {
|
|
118
|
+
'/demo/list':{get:GET_LIST},
|
|
119
|
+
'/demo/create':{post:CREATE},
|
|
120
|
+
'/demo/update':{post:UPDATE},
|
|
121
|
+
'/demo/detail':{get:GET_DETAIL}
|
|
122
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
// @ts-ignore
|
|
2
|
+
import mock from 'mockjs-async';
|
|
3
|
+
|
|
4
|
+
import demo from './demo.js';
|
|
5
|
+
|
|
6
|
+
function regMock(list){
|
|
7
|
+
if(list){
|
|
8
|
+
let keys = Object.keys(list)
|
|
9
|
+
keys.map(key=>{
|
|
10
|
+
let pattern;
|
|
11
|
+
if(typeof key === 'string'){
|
|
12
|
+
pattern = new RegExp(key)
|
|
13
|
+
}else{
|
|
14
|
+
pattern=key;
|
|
15
|
+
}
|
|
16
|
+
let config = list[key];
|
|
17
|
+
if(typeof config == 'function'){
|
|
18
|
+
console.log(`[mock]注册 ()${pattern}`)
|
|
19
|
+
mock.mock(pattern,(options)=>{
|
|
20
|
+
return new Promise(reslove=>{
|
|
21
|
+
if(config){
|
|
22
|
+
config(options).then(ret=>{
|
|
23
|
+
console.log(`[mock]response ()${pattern}`,options,ret)
|
|
24
|
+
reslove(ret);
|
|
25
|
+
});
|
|
26
|
+
}else{
|
|
27
|
+
reslove();
|
|
28
|
+
}
|
|
29
|
+
})
|
|
30
|
+
});
|
|
31
|
+
}else{
|
|
32
|
+
let methods = Object.keys(config);
|
|
33
|
+
methods.forEach(method=>{
|
|
34
|
+
console.log(`[mock]注册 (${method})${pattern}`)
|
|
35
|
+
mock.mock(pattern,method,(options)=>{
|
|
36
|
+
return new Promise(reslove=>{
|
|
37
|
+
if(config[method]){
|
|
38
|
+
config[method](options).then(ret=>{
|
|
39
|
+
console.log(`[mock]response (${method})${pattern}`,options,ret)
|
|
40
|
+
reslove(ret);
|
|
41
|
+
});
|
|
42
|
+
}else{
|
|
43
|
+
reslove();
|
|
44
|
+
}
|
|
45
|
+
})
|
|
46
|
+
});
|
|
47
|
+
})
|
|
48
|
+
|
|
49
|
+
}
|
|
50
|
+
})
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* eslint-disable */
|
|
55
|
+
// @ts-ignore
|
|
56
|
+
if(MOCK){
|
|
57
|
+
console.log(`=========MOCK OPEN=======`)
|
|
58
|
+
regMock(demo);
|
|
59
|
+
}else{
|
|
60
|
+
console.log(`=========MOCK CLOSE=======`)
|
|
61
|
+
}
|
|
62
|
+
/* eslint-enable */
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
export default {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import qs from 'qs';
|
|
2
|
+
|
|
3
|
+
export const waitTime = (time = 500) => {
|
|
4
|
+
return new Promise((resolve) => {
|
|
5
|
+
setTimeout(() => {
|
|
6
|
+
resolve(true);
|
|
7
|
+
}, time);
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
export const REP_SUCCESS=async (req,res)=>{
|
|
13
|
+
await waitTime();
|
|
14
|
+
return res.json({code:0,data:{}})
|
|
15
|
+
}
|
|
16
|
+
export const REP_FAIL=async (req,res)=>{
|
|
17
|
+
await waitTime();
|
|
18
|
+
return res.json({code:1,message:'mock失败',data:{}})
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export const REP_500=async (req,res)=>{
|
|
22
|
+
await waitTime();
|
|
23
|
+
// console.log(res);
|
|
24
|
+
return res.status(500).send({})
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export const GET_REQUEST=(req)=>{
|
|
29
|
+
if(req.type=='GET'){
|
|
30
|
+
return qs.parse(req.url.split('?')[1]);
|
|
31
|
+
}
|
|
32
|
+
return JSON.parse(req.body);
|
|
33
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import {Layout,SearchBar,TitleBar,Content,Panel} from '@/pages/components/layout'
|
|
4
|
+
|
|
5
|
+
import ResizeBox from '@/components/resizeBox';
|
|
6
|
+
import { Button,Space,Input,Switch, Radio, Checkbox, InputNumber,Alert, Form } from '@/components/antd';
|
|
7
|
+
import Table, { DefaultPagination } from '@/components/table';
|
|
8
|
+
import { usePaginationWithForm } from '@/hooks';
|
|
9
|
+
|
|
10
|
+
import SelectUser from '@/pages/components/select/user';
|
|
11
|
+
import { FormatGetRequest, FormatTableService } from '@/services';
|
|
12
|
+
import { GET_LIST } from '@/services/demo';
|
|
13
|
+
import form from 'antd/es/form';
|
|
14
|
+
|
|
15
|
+
const PageTemplate = (props) => {
|
|
16
|
+
const {name} = props;
|
|
17
|
+
const [form] = Form.useForm();
|
|
18
|
+
|
|
19
|
+
const page = usePaginationWithForm({
|
|
20
|
+
afterService: [(req)=>{
|
|
21
|
+
debugger;
|
|
22
|
+
return req;
|
|
23
|
+
},FormatTableService],
|
|
24
|
+
beforeService:[FormatGetRequest],
|
|
25
|
+
service: GET_LIST,
|
|
26
|
+
pagination: DefaultPagination(),
|
|
27
|
+
form
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
const onSearch=()=>{
|
|
31
|
+
page.update({ pagination: { current: 1 }, clear: true });
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const onButton= ()=>{
|
|
35
|
+
return new Promise(resolve=>{
|
|
36
|
+
setTimeout(resolve,3000);
|
|
37
|
+
})
|
|
38
|
+
}
|
|
39
|
+
return (
|
|
40
|
+
<Layout>
|
|
41
|
+
<SearchBar>
|
|
42
|
+
<TitleBar label={`page1-${name}`}/>
|
|
43
|
+
<Alert message='antd5组件封装后效果预览'/>
|
|
44
|
+
</SearchBar>
|
|
45
|
+
<Content>
|
|
46
|
+
<Space direction='horizontal' wrap>
|
|
47
|
+
<ResizeBox title="Button">
|
|
48
|
+
<Space direction='horizontal' wrap>
|
|
49
|
+
<Button type="primary" onClick={onButton}>Primary Button</Button>
|
|
50
|
+
<Button onClick={onButton}>Default Button</Button>
|
|
51
|
+
<Button type="dashed" onClick={onButton}>Dashed Button</Button>
|
|
52
|
+
<Button type="text" onClick={onButton}>Text Button</Button>
|
|
53
|
+
<Button type="link" onClick={onButton}>Link Button</Button>
|
|
54
|
+
</Space>
|
|
55
|
+
</ResizeBox>
|
|
56
|
+
|
|
57
|
+
<ResizeBox title="Input">
|
|
58
|
+
<Space direction='horizontal' wrap>
|
|
59
|
+
<Input placeholder='input'/>
|
|
60
|
+
<InputNumber placeholder='number'/>
|
|
61
|
+
<Input.TextArea placeholder='textarea'/>
|
|
62
|
+
</Space>
|
|
63
|
+
</ResizeBox>
|
|
64
|
+
|
|
65
|
+
<ResizeBox title="Select">
|
|
66
|
+
<Space direction='horizontal' wrap>
|
|
67
|
+
<SelectUser mode={'multiple'} style={{width:'200px'}} allowClear/>
|
|
68
|
+
</Space>
|
|
69
|
+
</ResizeBox>
|
|
70
|
+
|
|
71
|
+
<ResizeBox title="Switch">
|
|
72
|
+
<Space direction='horizontal' wrap>
|
|
73
|
+
<Switch checkedChildren="开启" unCheckedChildren="关闭" />
|
|
74
|
+
</Space>
|
|
75
|
+
</ResizeBox>
|
|
76
|
+
|
|
77
|
+
<ResizeBox title="Check">
|
|
78
|
+
<Space direction='horizontal' wrap>
|
|
79
|
+
<Checkbox>选中</Checkbox>
|
|
80
|
+
</Space>
|
|
81
|
+
</ResizeBox>
|
|
82
|
+
|
|
83
|
+
<ResizeBox title="Radio">
|
|
84
|
+
<Space direction='horizontal' wrap>
|
|
85
|
+
<Radio.Group
|
|
86
|
+
options={[
|
|
87
|
+
{
|
|
88
|
+
label: 'Apple',
|
|
89
|
+
value: 'Apple',
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
label: 'Pear',
|
|
93
|
+
value: 'Pear',
|
|
94
|
+
},
|
|
95
|
+
]}
|
|
96
|
+
optionType="button"
|
|
97
|
+
buttonStyle="solid"
|
|
98
|
+
/>
|
|
99
|
+
|
|
100
|
+
<Radio.Group
|
|
101
|
+
options={[
|
|
102
|
+
{
|
|
103
|
+
label: 'Apple',
|
|
104
|
+
value: 'Apple',
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
label: 'Pear',
|
|
108
|
+
value: 'Pear',
|
|
109
|
+
},
|
|
110
|
+
]}
|
|
111
|
+
buttonStyle="solid"
|
|
112
|
+
/>
|
|
113
|
+
</Space>
|
|
114
|
+
</ResizeBox>
|
|
115
|
+
|
|
116
|
+
<ResizeBox title="Table">
|
|
117
|
+
<Form form={form}>
|
|
118
|
+
<Form.Item name='id'><Input /></Form.Item>
|
|
119
|
+
<Button onClick={onSearch}>查询</Button>
|
|
120
|
+
</Form>
|
|
121
|
+
<Table
|
|
122
|
+
page={page}
|
|
123
|
+
columns={[
|
|
124
|
+
{
|
|
125
|
+
title:'id',
|
|
126
|
+
dataIndex:'id'
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
title:'name',
|
|
130
|
+
dataIndex:'name'
|
|
131
|
+
}
|
|
132
|
+
]}
|
|
133
|
+
/>
|
|
134
|
+
</ResizeBox>
|
|
135
|
+
</Space>
|
|
136
|
+
</Content>
|
|
137
|
+
|
|
138
|
+
</Layout>
|
|
139
|
+
)
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export default PageTemplate;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {
|
|
3
|
+
Button,
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
} from '@/components/antd';
|
|
6
|
+
|
|
7
|
+
import ruler from '@/utils/rule';
|
|
8
|
+
import {px2rem} from '@/utils';
|
|
9
|
+
import {Layout,SearchBar,TitleBar,Content,Panel} from '@/pages/components/layout'
|
|
10
|
+
import {emUserState} from '@/dictionary';
|
|
11
|
+
import Table from '@/components/table';
|
|
12
|
+
import { usePaginationWithForm } from '@/hooks';
|
|
13
|
+
import Link from '@/components/link';
|
|
14
|
+
import {FormatTableService,FormatGetRequest} from '@/services'
|
|
15
|
+
import {
|
|
16
|
+
GET_LIST,
|
|
17
|
+
} from '@/services/demo';
|
|
18
|
+
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import styles from './index.module.less';
|
|
21
|
+
|
|
22
|
+
const AuthUserCreate = () => {
|
|
23
|
+
return (
|
|
24
|
+
<Layout>
|
|
25
|
+
<SearchBar>
|
|
26
|
+
<TitleBar label='新建用户' showBack optionRight={
|
|
27
|
+
<div className={styles.btns}>
|
|
28
|
+
<Button type='primary'>保存</Button>
|
|
29
|
+
<Button>取消</Button>
|
|
30
|
+
</div>
|
|
31
|
+
}/>
|
|
32
|
+
</SearchBar>
|
|
33
|
+
|
|
34
|
+
<Content>
|
|
35
|
+
<Panel title='基础信息'>
|
|
36
|
+
<div>123123</div>
|
|
37
|
+
</Panel>
|
|
38
|
+
<Panel title='权限配置'>
|
|
39
|
+
<div>123123</div>
|
|
40
|
+
</Panel>
|
|
41
|
+
</Content>
|
|
42
|
+
|
|
43
|
+
</Layout>
|
|
44
|
+
)
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export default AuthUserCreate;
|