kn-cli 1.0.63 → 1.0.65
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/package.json +2 -1
- package/readme.md +6 -0
- package/src/create.js +2 -0
- package/templates/template_oa/public/src/components/IFrame/index.jsx +3 -0
- package/templates/template_oa/readme.md +6 -1
- package/templates/template_oa/webpack.api.js +7 -3
- package/templates/template_oa_jwt/.gitignore +6 -0
- package/templates/template_oa_jwt/build.sh +7 -0
- package/templates/template_oa_jwt/cli.config.js +30 -0
- package/templates/template_oa_jwt/dev.sh +89 -0
- package/templates/template_oa_jwt/frontend_build.sh +88 -0
- package/templates/template_oa_jwt/init/prepare-commit-msg +5 -0
- package/templates/template_oa_jwt/init.sh +33 -0
- package/templates/template_oa_jwt/jsconfig.json +10 -0
- package/templates/template_oa_jwt/package.json +25 -0
- package/templates/template_oa_jwt/public/404.html +26 -0
- package/templates/template_oa_jwt/public/favicon.ico +0 -0
- package/templates/template_oa_jwt/public/index.html +44 -0
- package/templates/template_oa_jwt/public/src/_antd.less +216 -0
- package/templates/template_oa_jwt/public/src/_reset.less +134 -0
- package/templates/template_oa_jwt/public/src/_variable.less +84 -0
- package/templates/template_oa_jwt/public/src/assets/iconfont/iconfont.eot +0 -0
- package/templates/template_oa_jwt/public/src/assets/iconfont/iconfont.less +57 -0
- package/templates/template_oa_jwt/public/src/assets/iconfont/iconfont.svg +36 -0
- package/templates/template_oa_jwt/public/src/assets/iconfont/iconfont.ttf +0 -0
- package/templates/template_oa_jwt/public/src/assets/iconfont/iconfont.woff +0 -0
- package/templates/template_oa_jwt/public/src/assets/iconfont/iconfont.woff2 +0 -0
- package/templates/template_oa_jwt/public/src/assets/images/NY-pop-bg.png +0 -0
- package/templates/template_oa_jwt/public/src/assets/images/avatar.png +0 -0
- package/templates/template_oa_jwt/public/src/assets/images/loading.svg +40 -0
- package/templates/template_oa_jwt/public/src/components/Alert/index.jsx +0 -0
- package/templates/template_oa_jwt/public/src/components/Alert/index.less +0 -0
- package/templates/template_oa_jwt/public/src/components/Auth/index.jsx +44 -0
- package/templates/template_oa_jwt/public/src/components/Dialog/index.jsx +150 -0
- package/templates/template_oa_jwt/public/src/components/Dialog/index.less +123 -0
- package/templates/template_oa_jwt/public/src/components/Empty/index.jsx +23 -0
- package/templates/template_oa_jwt/public/src/components/Empty/index.less +6 -0
- package/templates/template_oa_jwt/public/src/components/Footer/index.jsx +17 -0
- package/templates/template_oa_jwt/public/src/components/Footer/index.less +28 -0
- package/templates/template_oa_jwt/public/src/components/FormRow/index.jsx +39 -0
- package/templates/template_oa_jwt/public/src/components/FormRow/index.less +67 -0
- package/templates/template_oa_jwt/public/src/components/FormTable/index.jsx +137 -0
- package/templates/template_oa_jwt/public/src/components/FormTable/index.less +18 -0
- package/templates/template_oa_jwt/public/src/components/IFrame/index.jsx +44 -0
- package/templates/template_oa_jwt/public/src/components/IFrame/index.less +4 -0
- package/templates/template_oa_jwt/public/src/components/IconFont/index.jsx +10 -0
- package/templates/template_oa_jwt/public/src/components/IconFont/index.less +5 -0
- package/templates/template_oa_jwt/public/src/components/Layout/Basic/index.jsx +52 -0
- package/templates/template_oa_jwt/public/src/components/Layout/Basic/index.less +82 -0
- package/templates/template_oa_jwt/public/src/components/Layout/CenterBody/index.jsx +15 -0
- package/templates/template_oa_jwt/public/src/components/Layout/CenterBody/index.less +36 -0
- package/templates/template_oa_jwt/public/src/components/Layout/FormBlock/index.jsx +23 -0
- package/templates/template_oa_jwt/public/src/components/Layout/FormBlock/index.less +37 -0
- package/templates/template_oa_jwt/public/src/components/Layout/Provider/index.jsx +12 -0
- package/templates/template_oa_jwt/public/src/components/Layout/index.jsx +27 -0
- package/templates/template_oa_jwt/public/src/components/Layout/index.less +8 -0
- package/templates/template_oa_jwt/public/src/components/Link/index.jsx +24 -0
- package/templates/template_oa_jwt/public/src/components/Link/index.less +11 -0
- package/templates/template_oa_jwt/public/src/components/Loading/index.jsx +16 -0
- package/templates/template_oa_jwt/public/src/components/Loading/index.less +96 -0
- package/templates/template_oa_jwt/public/src/components/Nav/index.jsx +184 -0
- package/templates/template_oa_jwt/public/src/components/Nav/index.less +38 -0
- package/templates/template_oa_jwt/public/src/components/Page/PageLoading/index.jsx +30 -0
- package/templates/template_oa_jwt/public/src/components/Page/PageLoading/index.less +29 -0
- package/templates/template_oa_jwt/public/src/components/Popup/index.jsx +22 -0
- package/templates/template_oa_jwt/public/src/components/Popup/index.less +18 -0
- package/templates/template_oa_jwt/public/src/components/Select/DepSelect/index.jsx +47 -0
- package/templates/template_oa_jwt/public/src/components/Select/StaffSelect/index.jsx +97 -0
- package/templates/template_oa_jwt/public/src/components/Select/StaffSelect/index.less +24 -0
- package/templates/template_oa_jwt/public/src/components/Toast/index.jsx +60 -0
- package/templates/template_oa_jwt/public/src/components/Toast/index.less +43 -0
- package/templates/template_oa_jwt/public/src/components/Upload/index.jsx +358 -0
- package/templates/template_oa_jwt/public/src/components/title/index.jsx +12 -0
- package/templates/template_oa_jwt/public/src/components/title/index.less +21 -0
- package/templates/template_oa_jwt/public/src/dictionary/index.js +20 -0
- package/templates/template_oa_jwt/public/src/hooks/index.jsx +21 -0
- package/templates/template_oa_jwt/public/src/hooks/useDelay.jsx +29 -0
- package/templates/template_oa_jwt/public/src/hooks/useImageLoader.jsx +27 -0
- package/templates/template_oa_jwt/public/src/hooks/useLoading.jsx +42 -0
- package/templates/template_oa_jwt/public/src/hooks/useLogin.jsx +33 -0
- package/templates/template_oa_jwt/public/src/hooks/usePreload.jsx +66 -0
- package/templates/template_oa_jwt/public/src/hooks/useScrollTop.jsx +32 -0
- package/templates/template_oa_jwt/public/src/hooks/useSearch.jsx +137 -0
- package/templates/template_oa_jwt/public/src/hooks/useUpdate.jsx +11 -0
- package/templates/template_oa_jwt/public/src/index.jsx +50 -0
- package/templates/template_oa_jwt/public/src/mock/common.js +484 -0
- package/templates/template_oa_jwt/public/src/mock/index.js +63 -0
- package/templates/template_oa_jwt/public/src/mock/user.js +70 -0
- package/templates/template_oa_jwt/public/src/mock/utils.js +33 -0
- package/templates/template_oa_jwt/public/src/pages/components/pageTitle/index.jsx +13 -0
- package/templates/template_oa_jwt/public/src/pages/components/pageTitle/index.less +20 -0
- package/templates/template_oa_jwt/public/src/pages/components/totalRecord/index.jsx +21 -0
- package/templates/template_oa_jwt/public/src/pages/components/totalRecord/index.less +16 -0
- package/templates/template_oa_jwt/public/src/pages/demo/detail/index.jsx +14 -0
- package/templates/template_oa_jwt/public/src/pages/demo/index.jsx +399 -0
- package/templates/template_oa_jwt/public/src/pages/demo/index.less +15 -0
- package/templates/template_oa_jwt/public/src/pages/login/index.jsx +29 -0
- package/templates/template_oa_jwt/public/src/pages/login/index.less +44 -0
- package/templates/template_oa_jwt/public/src/pages/redirect/index.jsx +31 -0
- package/templates/template_oa_jwt/public/src/provider/app.jsx +66 -0
- package/templates/template_oa_jwt/public/src/route.jsx +45 -0
- package/templates/template_oa_jwt/public/src/services/common.js +133 -0
- package/templates/template_oa_jwt/public/src/services/demo.js +41 -0
- package/templates/template_oa_jwt/public/src/services/index.js +266 -0
- package/templates/template_oa_jwt/public/src/services/token.js +132 -0
- package/templates/template_oa_jwt/public/src/utils/index.js +115 -0
- package/templates/template_oa_jwt/public/static/about.html +1 -0
- package/templates/template_oa_jwt/public/static/kssoLogin.html +22 -0
- package/templates/template_oa_jwt/public/static/noAuth.html +217 -0
- package/templates/template_oa_jwt/public/static/noAuth.png +0 -0
- package/templates/template_oa_jwt/readme.md +71 -0
- package/templates/template_oa_jwt/report.sh +68 -0
- package/templates/template_oa_jwt/tools/iconfont/gulpfile.js +70 -0
- package/templates/template_oa_jwt/tools/iconfont/package.json +20 -0
- package/templates/template_oa_jwt/tools/iconfont/run.sh +39 -0
- package/templates/template_oa_jwt/tools/iconfont/svg/arrowBack.svg +1 -0
- package/templates/template_oa_jwt/tools/iconfont/svg/check.svg +1 -0
- package/templates/template_oa_jwt/tools/iconfont/svg/close.svg +1 -0
- package/templates/template_oa_jwt/tools/iconfont/svg/down.svg +1 -0
- package/templates/template_oa_jwt/tools/iconfont/svg/image.svg +1 -0
- package/templates/template_oa_jwt/tools/iconfont/svg/play.svg +1 -0
- package/templates/template_oa_jwt/tools/iconfont/svg/refresh.svg +1 -0
- package/templates/template_oa_jwt/tools/iconfont/svg/warn.svg +1 -0
- package/templates/template_oa_jwt/tools/iconfont/templates/_icons.css +26 -0
- package/templates/template_oa_jwt/tools/iconfont/templates/_icons.less +29 -0
- package/templates/template_oa_jwt/tools/iconfont/templates/index.html +56 -0
- package/templates/template_oa_jwt/tools/tinypng/package.json +11 -0
- package/templates/template_oa_jwt/tools/tinypng/run.sh +15 -0
- package/templates/template_oa_jwt/versionPublish.sh +27 -0
- package/templates/template_oa_jwt/webpack.api.js +61 -0
|
@@ -0,0 +1,484 @@
|
|
|
1
|
+
import { waitTime } from './utils.js';
|
|
2
|
+
|
|
3
|
+
const getCompany = async (req, res) => {
|
|
4
|
+
await waitTime();
|
|
5
|
+
return {
|
|
6
|
+
code: 'KN0200',
|
|
7
|
+
data: company
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
const getOrg = async (req) => {
|
|
12
|
+
await waitTime();
|
|
13
|
+
return {
|
|
14
|
+
code: 'KN0200',
|
|
15
|
+
data: org
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export default {
|
|
20
|
+
'/api/common/getBenefitDept': { get: getOrg },
|
|
21
|
+
'/api/filestore/list': { get: getCompany },
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
const org = [{
|
|
26
|
+
"org_id": '1',
|
|
27
|
+
"org_name": "恺英网络"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"org_id": '223',
|
|
31
|
+
"org_name": "财务中心"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"org_id": '224',
|
|
35
|
+
"org_name": "公共事务部"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"org_id": '225',
|
|
39
|
+
"org_name": "采购部"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"org_id": '266',
|
|
43
|
+
"org_name": "游戏发行事业群"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"org_id": '267',
|
|
47
|
+
"org_name": "平台技术部"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"org_id": '278',
|
|
51
|
+
"org_name": "XY市场部"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"org_id": '282',
|
|
55
|
+
"org_name": "内务支持组"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"org_id": '285',
|
|
59
|
+
"org_name": "游戏研发事业群"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"org_id": '293',
|
|
63
|
+
"org_name": "敢达工作室"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"org_sn": '347',
|
|
67
|
+
"org_name": "市场部"
|
|
68
|
+
},
|
|
69
|
+
]
|
|
70
|
+
|
|
71
|
+
const company = [
|
|
72
|
+
{
|
|
73
|
+
"sn": 1002,
|
|
74
|
+
"name": "Kingnet Technology (HK) Limited"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"sn": 1003,
|
|
78
|
+
"name": "上海恺英网络科技有限公司"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"sn": 1006,
|
|
82
|
+
"name": "上海恺鑫广告有限公司"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"sn": 1008,
|
|
86
|
+
"name": "上海悦腾网络科技有限公司"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"sn": 1014,
|
|
90
|
+
"name": "上海恺英软件技术有限公司"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"sn": 1015,
|
|
94
|
+
"name": "上海速艺网络科技有限公司"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"sn": 1016,
|
|
98
|
+
"name": "上海英梦网络科技有限公司"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"sn": 1017,
|
|
102
|
+
"name": "苏州聚和网络科技有限公司"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"sn": 1018,
|
|
106
|
+
"name": "上海欣承网络科技有限公司"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"sn": 1019,
|
|
110
|
+
"name": "Kingnet Entertainment Co., Ltd."
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"sn": 1024,
|
|
114
|
+
"name": "上海欣烁网络科技有限公司"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"sn": 1025,
|
|
118
|
+
"name": "上海恺英信息技术有限公司"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"sn": 1026,
|
|
122
|
+
"name": "上海恺英软件技术有限公司广州分公司"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"sn": 1028,
|
|
126
|
+
"name": "HONGKONG FAME CHAMPION TRADING CO.,LIMITED"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"sn": 1031,
|
|
130
|
+
"name": "恺英网络股份有限公司"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"sn": 1033,
|
|
134
|
+
"name": "恺英网络股份有限公司上海分公司"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"sn": 1034,
|
|
138
|
+
"name": "上海恺心影视传媒有限公司"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"sn": 1037,
|
|
142
|
+
"name": "上海越霖网络科技有限公司"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"sn": 1038,
|
|
146
|
+
"name": "浙江烁和网络科技有限公司"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"sn": 1039,
|
|
150
|
+
"name": "上海越见网络科技有限公司"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"sn": 1041,
|
|
154
|
+
"name": "上海指战网络科技有限公司"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"sn": 1042,
|
|
158
|
+
"name": "上海逗视网络科技有限公司"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"sn": 1043,
|
|
162
|
+
"name": "上海恺英网络科技有限公司龙岩分公司"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"sn": 1045,
|
|
166
|
+
"name": "浙江盛和网络科技有限公司"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"sn": 1047,
|
|
170
|
+
"name": "上饶市恺英网络科技有限公司"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"sn": 1048,
|
|
174
|
+
"name": "绍兴恺英网络科技有限公司"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"sn": 1054,
|
|
178
|
+
"name": "浙江九翎网络科技有限公司"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"sn": 1057,
|
|
182
|
+
"name": "海南骑兵网络科技有限公司"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"sn": 1061,
|
|
186
|
+
"name": "Rainbow Horse Limited"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"sn": 1062,
|
|
190
|
+
"name": "嘉兴盛游网络科技有限公司"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"sn": 1064,
|
|
194
|
+
"name": "积木堂(上海)信息技术有限公司"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"sn": 1065,
|
|
198
|
+
"name": "杭州恺英网络科技有限公司"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"sn": 1066,
|
|
202
|
+
"name": "绍兴盛宏网络科技有限公司"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"sn": 1067,
|
|
206
|
+
"name": "KINGNET TECHNOLOGY (AUSTRALIA)PTY LTD"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"sn": 1068,
|
|
210
|
+
"name": "浙江闲趣互娱网络科技有限公司"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"sn": 1069,
|
|
214
|
+
"name": "绍兴盛意网络科技有限公司"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"sn": 1070,
|
|
218
|
+
"name": "绍兴恺趣网络科技有限公司"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"sn": 1071,
|
|
222
|
+
"name": "宜春恺英网络科技有限公司"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"sn": 1072,
|
|
226
|
+
"name": "上海恺英网络科技有限公司茂名分公司"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"sn": 1074,
|
|
230
|
+
"name": "上饶盛英网络科技有限公司"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"sn": 1075,
|
|
234
|
+
"name": "海南恺英网络科技有限公司"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"sn": 1076,
|
|
238
|
+
"name": "上饶恺盛网络科技有限公司"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"sn": 1077,
|
|
242
|
+
"name": "上海恺盛网络科技有限公司"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"sn": 1079,
|
|
246
|
+
"name": "杭州征豪网络科技有限公司"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"sn": 1080,
|
|
250
|
+
"name": "上饶恺盛网络科技有限公司上海分公司"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"sn": 1081,
|
|
254
|
+
"name": "海南骑兵网络科技有限公司上海分公司"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"sn": 1082,
|
|
258
|
+
"name": "杭州恺兴网络科技有限公司"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"sn": 1083,
|
|
262
|
+
"name": "YABAITECHNOLOGYHKLIMITED"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"sn": 1084,
|
|
266
|
+
"name": "杭州恺兴网络科技有限公司上海分公司"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"sn": 1085,
|
|
270
|
+
"name": "绍兴恺英网络科技有限公司上海分公司"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"sn": 1087,
|
|
274
|
+
"name": "杭州恺辰网络科技有限公司"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"sn": 1088,
|
|
278
|
+
"name": "绍兴盛知网络科技有限公司杭州下沙分公司"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"sn": 1089,
|
|
282
|
+
"name": "绍兴盛宏网络科技有限公司杭州分公司"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"sn": 1090,
|
|
286
|
+
"name": "绍兴盛望网络科技有限公司杭州分公司"
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"sn": 1091,
|
|
290
|
+
"name": "绍兴盛意网络科技有限公司杭州分公司"
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"sn": 1092,
|
|
294
|
+
"name": "绍兴盛韵网络科技有限公司杭州下沙分公司"
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"sn": 1093,
|
|
298
|
+
"name": "绍兴盛动网络科技有限公司"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"sn": 1094,
|
|
302
|
+
"name": "绍兴盛动网络科技有限公司杭州分公司"
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"sn": 1095,
|
|
306
|
+
"name": "绍兴盛纪网络科技有限公司"
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"sn": 1096,
|
|
310
|
+
"name": "绍兴盛纪网络科技有限公司杭州分公司"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"sn": 1097,
|
|
314
|
+
"name": "Cedar Technology HK Limited"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"sn": 1098,
|
|
318
|
+
"name": "Ginkgo Technology HK Limited"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"sn": 1099,
|
|
322
|
+
"name": "Spruce Technology HK Limited"
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"sn": 1100,
|
|
326
|
+
"name": "艾米罗科技(深圳)有限公司"
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"sn": 1101,
|
|
330
|
+
"name": "上海叁号楼文化传播有限公司"
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"sn": 1102,
|
|
334
|
+
"name": "上海摘星润物网络科技有限公司"
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"sn": 1105,
|
|
338
|
+
"name": "杭州禹兮文化传播有限公司"
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"sn": 1106,
|
|
342
|
+
"name": "杭州亿沐网络科技有限公司"
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"sn": 1107,
|
|
346
|
+
"name": "杭州亿沐网络科技有限公司上海分公司"
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
"sn": 1108,
|
|
350
|
+
"name": "上海摘星润物网络科技有限公司广州分公司"
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"sn": 1109,
|
|
354
|
+
"name": "上饶盛乐网络科技有限公司"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"sn": 1110,
|
|
358
|
+
"name": "杭州盛玩网络科技有限公司"
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
"sn": 1111,
|
|
362
|
+
"name": "杭州恺想网络科技有限公司"
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"sn": 1112,
|
|
366
|
+
"name": "杭州恺想网络科技有限公司上海分公司"
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
"sn": 1113,
|
|
370
|
+
"name": "上海拾夕文化发展有限公司"
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"sn": 1115,
|
|
374
|
+
"name": "杭州恺辰网络科技有限公司广州分公司"
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
"sn": 1116,
|
|
378
|
+
"name": "上饶恺唯网络科技有限公司"
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"sn": 1117,
|
|
382
|
+
"name": "上海臣旎网络科技有限公司"
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"sn": 1118,
|
|
386
|
+
"name": "上饶嘉澜网络科技有限公司"
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"sn": 1119,
|
|
390
|
+
"name": "上饶盛灿网络科技有限公司"
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
"sn": 1120,
|
|
394
|
+
"name": "上饶盛罗网络科技有限公司"
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"sn": 1121,
|
|
398
|
+
"name": "上饶盛明网络科技有限公司"
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
"sn": 1122,
|
|
402
|
+
"name": "上饶盛炫网络科技有限公司"
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"sn": 1123,
|
|
406
|
+
"name": "杭州欣升网络科技有限公司"
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
"sn": 1124,
|
|
410
|
+
"name": "杭州星琪网络科技有限公司"
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
"sn": 1125,
|
|
414
|
+
"name": "杭州艺炫网络科技有限公司"
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
"sn": 1126,
|
|
418
|
+
"name": "杭州跃铭网络科技有限公司"
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
"sn": 1127,
|
|
422
|
+
"name": "杭州摘欣网络科技有限公司"
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
"sn": 1128,
|
|
426
|
+
"name": "上海尔塔网络科技有限公司"
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
"sn": 1129,
|
|
430
|
+
"name": "上海焕朋网络科技有限公司"
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
"sn": 1130,
|
|
434
|
+
"name": "杭州铭轶网络科技有限公司"
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"sn": 1131,
|
|
438
|
+
"name": "艾米罗科技(深圳)有限公司杭州分公司"
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
"sn": 1132,
|
|
442
|
+
"name": "恺芮(杭州)信息科技有限公司"
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
"sn": 1133,
|
|
446
|
+
"name": "恺芮(杭州)信息科技有限公司上海分公司"
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
"sn": 1134,
|
|
450
|
+
"name": "上海趣赫网络科技有限公司"
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
"sn": 1135,
|
|
454
|
+
"name": "上海晞霖网络科技有限公司"
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"sn": 1136,
|
|
458
|
+
"name": "上海盛薏网络科技有限公司"
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
"sn": 1137,
|
|
462
|
+
"name": "浙江恺星私募基金管理有限公司"
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
"sn": 1212,
|
|
466
|
+
"name": "上海路团科技有限公司"
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
"sn": 1213,
|
|
470
|
+
"name": "上海菲索广告有限公司"
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
"sn": 9028,
|
|
474
|
+
"name": "HONGKONGFAMECHAMPIONTRADINGCO.,LIMITED"
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
"sn": 9097,
|
|
478
|
+
"name": "CedarTechnologyHKLimited"
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
"sn": 9099,
|
|
482
|
+
"name": "SpruceTechnologyHKLimited"
|
|
483
|
+
}
|
|
484
|
+
]
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import mock from 'mockjs-async';
|
|
2
|
+
|
|
3
|
+
import common from './common.js';
|
|
4
|
+
function regMock(list){
|
|
5
|
+
if(list){
|
|
6
|
+
let keys = Object.keys(list)
|
|
7
|
+
keys.map(key=>{
|
|
8
|
+
let pattern;
|
|
9
|
+
if(typeof key === 'string'){
|
|
10
|
+
pattern = new RegExp(key)
|
|
11
|
+
}else{
|
|
12
|
+
pattern=key;
|
|
13
|
+
}
|
|
14
|
+
let config = list[key];
|
|
15
|
+
if(typeof config == 'function'){
|
|
16
|
+
console.log(`[mock]注册 ()${pattern}`)
|
|
17
|
+
mock.mock(pattern,(options)=>{
|
|
18
|
+
return new Promise(reslove=>{
|
|
19
|
+
if(config){
|
|
20
|
+
config(options).then(ret=>{
|
|
21
|
+
console.log(`[mock]response ()${pattern}`,options,ret)
|
|
22
|
+
reslove(ret);
|
|
23
|
+
});
|
|
24
|
+
}else{
|
|
25
|
+
reslove();
|
|
26
|
+
}
|
|
27
|
+
})
|
|
28
|
+
i
|
|
29
|
+
});
|
|
30
|
+
}else{
|
|
31
|
+
let methods = Object.keys(config);
|
|
32
|
+
methods.forEach(method=>{
|
|
33
|
+
console.log(`[mock]注册 (${method})${pattern}`)
|
|
34
|
+
mock.mock(pattern,method,(options)=>{
|
|
35
|
+
return new Promise(reslove=>{
|
|
36
|
+
if(config[method]){
|
|
37
|
+
config[method](options).then(ret=>{
|
|
38
|
+
console.log(`[mock]response (${method})${pattern}`,options,ret)
|
|
39
|
+
reslove(ret);
|
|
40
|
+
});
|
|
41
|
+
}else{
|
|
42
|
+
reslove();
|
|
43
|
+
}
|
|
44
|
+
})
|
|
45
|
+
i
|
|
46
|
+
});
|
|
47
|
+
})
|
|
48
|
+
|
|
49
|
+
}
|
|
50
|
+
})
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
/* eslint-disable */
|
|
54
|
+
if(MOCK){
|
|
55
|
+
console.log(`=========MOCK OPEN=======`)
|
|
56
|
+
regMock(common);
|
|
57
|
+
}else{
|
|
58
|
+
console.log(`=========MOCK CLOSE=======`)
|
|
59
|
+
}
|
|
60
|
+
/* eslint-enable */
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
export default {};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import {waitTime,REP_SUCCESS} from './utils.js';
|
|
2
|
+
import qs from 'qs';
|
|
3
|
+
import {GET_REQUEST} from './utils';
|
|
4
|
+
async function GET_USER(req,res){
|
|
5
|
+
const query = qs.parse(req.url.split('?')[1]);
|
|
6
|
+
const {name} = query;
|
|
7
|
+
await waitTime();
|
|
8
|
+
return {code:0,data:{name}}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
async function SET_USER(req,res){
|
|
12
|
+
const query = JSON.parse(req.body);
|
|
13
|
+
const {name,age}= query;
|
|
14
|
+
await waitTime();
|
|
15
|
+
|
|
16
|
+
return {
|
|
17
|
+
"code": 0,
|
|
18
|
+
"data":{name,age}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
async function GET_USER_LIST(req,res){
|
|
23
|
+
const {current,pageSize} = GET_REQUEST(req,res);
|
|
24
|
+
const MAX_TOTAL=98;
|
|
25
|
+
let data=[];
|
|
26
|
+
let idx=(current-1)*pageSize;
|
|
27
|
+
|
|
28
|
+
for(let i=0;i<pageSize;i++){
|
|
29
|
+
if(idx>=MAX_TOTAL)break;
|
|
30
|
+
data.push({
|
|
31
|
+
name:`${idx++}小朋友`
|
|
32
|
+
})
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
code:0,
|
|
36
|
+
data:{
|
|
37
|
+
list:data,
|
|
38
|
+
page:{
|
|
39
|
+
pageNum:current,
|
|
40
|
+
pageSize:pageSize,
|
|
41
|
+
total:MAX_TOTAL
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
async function GET_USER_TYPE(req,res){
|
|
48
|
+
let data=[];
|
|
49
|
+
for(let i=0;i<10;i++){
|
|
50
|
+
data.push({
|
|
51
|
+
label:`标题${i}`,
|
|
52
|
+
value:i,
|
|
53
|
+
key:`title${i}`
|
|
54
|
+
})
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
code:0,
|
|
58
|
+
data:data
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
export default {
|
|
66
|
+
'/userType':{get:GET_USER_TYPE},
|
|
67
|
+
'/userList':{get:GET_USER_LIST},
|
|
68
|
+
'/user':{get:GET_USER,post:SET_USER},
|
|
69
|
+
|
|
70
|
+
}
|
|
@@ -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,13 @@
|
|
|
1
|
+
import React, { useEffect, useState } from 'react';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import styles from './index.less';
|
|
5
|
+
const PageTitle=(props)=>{
|
|
6
|
+
return (
|
|
7
|
+
<section className={styles.pageTitle}>
|
|
8
|
+
<div className={styles.flag} />
|
|
9
|
+
<h3 className={styles.text}>{props.children}</h3>
|
|
10
|
+
</section>
|
|
11
|
+
);
|
|
12
|
+
}
|
|
13
|
+
export default PageTitle;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
|
|
2
|
+
.pageTitle{
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
border-bottom:1px solid rgb(232, 232, 232);
|
|
6
|
+
padding-bottom: 10px;
|
|
7
|
+
margin-bottom: 20px;
|
|
8
|
+
.flag{
|
|
9
|
+
background-color: #2a96fc;
|
|
10
|
+
margin-right: 7px;
|
|
11
|
+
width: 4px;
|
|
12
|
+
height: 18px;
|
|
13
|
+
display: block;
|
|
14
|
+
}
|
|
15
|
+
.text{
|
|
16
|
+
font-size: 16px;
|
|
17
|
+
color:#555;
|
|
18
|
+
margin:0;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { useEffect, useState } from 'react';
|
|
2
|
+
import styles from './index.less';
|
|
3
|
+
|
|
4
|
+
const TotalRecord=(props)=>{
|
|
5
|
+
const {count, right=''}= props;
|
|
6
|
+
|
|
7
|
+
return (
|
|
8
|
+
<hgroup
|
|
9
|
+
className={styles.totalRecord}
|
|
10
|
+
>
|
|
11
|
+
<span>
|
|
12
|
+
共有<span className={styles.count}>{count}</span>
|
|
13
|
+
条符合条件的记录
|
|
14
|
+
</span>
|
|
15
|
+
<hgroup className={styles.operGroup}>
|
|
16
|
+
{right}
|
|
17
|
+
</hgroup>
|
|
18
|
+
</hgroup>
|
|
19
|
+
)
|
|
20
|
+
}
|
|
21
|
+
export default TotalRecord;
|