web-core-tcm 0.0.23 → 0.0.24
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 +41 -21
- package/.editorconfig +0 -7
- package/.github/workflows/test.yml +0 -29
- package/.prettierrc.json +0 -5
- package/.vscode/extensions.json +0 -15
- package/.vscode/settings.json +0 -9
- package/eslint.config.js +0 -83
- package/index.html +0 -24
- package/postcss.config.js +0 -29
- package/public/favicon.ico +0 -0
- package/public/icons/favicon-128x128.png +0 -0
- package/public/icons/favicon-16x16.png +0 -0
- package/public/icons/favicon-32x32.png +0 -0
- package/public/icons/favicon-96x96.png +0 -0
- package/quasar.config.ts +0 -220
- package/src/App.vue +0 -7
- package/src/api/algorithm/comprehensiveAlgorithm.ts +0 -20
- package/src/api/algorithm/index.ts +0 -50
- package/src/api/algorithm/inquiriesAlgorithm.ts +0 -19
- package/src/api/algorithm/inspectionsAlgorithm.ts +0 -11
- package/src/api/algorithm/lisemsAlgorithm.ts +0 -16
- package/src/api/algorithm/pulsationsAlgorithm.ts +0 -9
- package/src/api/authorization/alova/apiDefinitions.ts +0 -23
- package/src/api/authorization/alova/createApis.ts +0 -99
- package/src/api/authorization/alova/globals.d.ts +0 -373
- package/src/api/authorization/alova/implement/authorization.ts +0 -12
- package/src/api/authorization/alova/implement/index.ts +0 -1
- package/src/api/authorization/alova/index.ts +0 -23
- package/src/api/authorization/authorization.ts +0 -16
- package/src/api/authorization/index.ts +0 -2
- package/src/api/check/alova/apiDefinitions.ts +0 -30
- package/src/api/check/alova/createApis.ts +0 -99
- package/src/api/check/alova/globals.d.ts +0 -1248
- package/src/api/check/alova/implement/check.ts +0 -119
- package/src/api/check/alova/implement/index.ts +0 -1
- package/src/api/check/alova/index.ts +0 -23
- package/src/api/check/check.ts +0 -164
- package/src/api/check/index.ts +0 -2
- package/src/api/config/alova/index.ts +0 -72
- package/src/api/config/index.ts +0 -130
- package/src/api/device/device.js +0 -58
- package/src/api/doctor/alova/apiDefinitions.ts +0 -28
- package/src/api/doctor/alova/createApis.ts +0 -99
- package/src/api/doctor/alova/globals.d.ts +0 -550
- package/src/api/doctor/alova/implement/doctor.ts +0 -37
- package/src/api/doctor/alova/implement/index.ts +0 -1
- package/src/api/doctor/alova/index.ts +0 -23
- package/src/api/doctor/doctor.ts +0 -53
- package/src/api/doctor/index.ts +0 -2
- package/src/api/index.ts +0 -15
- package/src/api/metric/implement/index.ts +0 -1
- package/src/api/metric/implement/metric.ts +0 -98
- package/src/api/metric/index.ts +0 -2
- package/src/api/metric/metric.ts +0 -114
- package/src/api/oauth/alova/apiDefinitions.ts +0 -26
- package/src/api/oauth/alova/createApis.ts +0 -99
- package/src/api/oauth/alova/globals.d.ts +0 -451
- package/src/api/oauth/alova/implement/index.ts +0 -1
- package/src/api/oauth/alova/implement/oauth.ts +0 -19
- package/src/api/oauth/alova/index.ts +0 -22
- package/src/api/oauth/index.ts +0 -2
- package/src/api/oauth/oauth.ts +0 -15
- package/src/api/outpatient/alova/apiDefinitions.ts +0 -27
- package/src/api/outpatient/alova/createApis.ts +0 -99
- package/src/api/outpatient/alova/globals.d.ts +0 -676
- package/src/api/outpatient/alova/implement/index.ts +0 -1
- package/src/api/outpatient/alova/implement/outpatient.ts +0 -66
- package/src/api/outpatient/alova/index.ts +0 -23
- package/src/api/outpatient/index.ts +0 -2
- package/src/api/outpatient/outpatient.ts +0 -62
- package/src/api/patient/alova/apiDefinitions.ts +0 -41
- package/src/api/patient/alova/createApis.ts +0 -99
- package/src/api/patient/alova/globals.d.ts +0 -1677
- package/src/api/patient/alova/implement/index.ts +0 -2
- package/src/api/patient/alova/implement/meta.ts +0 -488
- package/src/api/patient/alova/implement/patient.ts +0 -77
- package/src/api/patient/alova/index.ts +0 -24
- package/src/api/patient/core.ts +0 -131
- package/src/api/patient/index.ts +0 -4
- package/src/api/patient/meta.ts +0 -466
- package/src/api/patient/patient.ts +0 -98
- package/src/api/prescription/alova/apiDefinitions.ts +0 -29
- package/src/api/prescription/alova/createApis.ts +0 -99
- package/src/api/prescription/alova/globals.d.ts +0 -959
- package/src/api/prescription/alova/implement/herbal.ts +0 -48
- package/src/api/prescription/alova/implement/index.ts +0 -2
- package/src/api/prescription/alova/implement/prescription.ts +0 -45
- package/src/api/prescription/alova/index.ts +0 -23
- package/src/api/prescription/herbal.ts +0 -44
- package/src/api/prescription/index.ts +0 -3
- package/src/api/prescription/prescription.ts +0 -68
- package/src/api/scientist/alova/apiDefinitions.ts +0 -27
- package/src/api/scientist/alova/createApis.ts +0 -99
- package/src/api/scientist/alova/globals.d.ts +0 -438
- package/src/api/scientist/alova/implement/index.ts +0 -1
- package/src/api/scientist/alova/implement/scientist.ts +0 -29
- package/src/api/scientist/alova/index.ts +0 -23
- package/src/api/scientist/index.ts +0 -2
- package/src/api/scientist/scientist.ts +0 -49
- package/src/assets/quasar-logo-vertical.svg +0 -15
- package/src/boot/.gitkeep +0 -0
- package/src/components/ExampleComponent.vue +0 -37
- package/src/components/models.ts +0 -8
- package/src/css/app.scss +0 -1
- package/src/css/quasar.variables.scss +0 -25
- package/src/env.d.ts +0 -7
- package/src/index.ts +0 -4
- package/src/layouts/UserLayout.vue +0 -106
- package/src/pages/LoginPage.vue +0 -32
- package/src/proto/Images.proto +0 -7
- package/src/proto/WaveMap.proto +0 -10
- package/src/proto/index.ts +0 -2
- package/src/proto/types/Images_pb.ts +0 -48
- package/src/proto/types/WaveMap_pb.ts +0 -59
- package/src/router/index.ts +0 -37
- package/src/router/routes.ts +0 -14
- package/src/util/RichTextUtil.ts +0 -5
- package/src/util/datetime.ts +0 -43
- package/src/util/export.ts +0 -46
- package/src/util/helper.ts +0 -159
- package/src/util/image.ts +0 -28
- package/src/util/number.ts +0 -146
- package/src/util/s256.js +0 -30
- package/src/util/secret.ts +0 -60
- package/src/util/string.ts +0 -121
- package/tsconfig.json +0 -3
|
@@ -1,438 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* OpenAPI definition - version v0
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* OpenAPI version: 3.1.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This file is auto generated by the alova's vscode plugin.
|
|
12
|
-
*
|
|
13
|
-
* https://alova.js.org/devtools/vscode
|
|
14
|
-
*
|
|
15
|
-
* **Do not edit the file manually.**
|
|
16
|
-
*/
|
|
17
|
-
import type { Alova, AlovaMethodCreateConfig, AlovaGenerics, Method } from 'alova';
|
|
18
|
-
import type { $$userConfigMap, alovaInstance } from './index';
|
|
19
|
-
import type apiDefinitions from './apiDefinitions';
|
|
20
|
-
|
|
21
|
-
type CollapsedAlova = typeof alovaInstance;
|
|
22
|
-
type UserMethodConfigMap = typeof $$userConfigMap;
|
|
23
|
-
|
|
24
|
-
type Alova2MethodConfig<Responded> =
|
|
25
|
-
CollapsedAlova extends Alova<
|
|
26
|
-
AlovaGenerics<
|
|
27
|
-
any,
|
|
28
|
-
any,
|
|
29
|
-
infer RequestConfig,
|
|
30
|
-
infer Response,
|
|
31
|
-
infer ResponseHeader,
|
|
32
|
-
infer L1Cache,
|
|
33
|
-
infer L2Cache,
|
|
34
|
-
infer SE
|
|
35
|
-
>
|
|
36
|
-
>
|
|
37
|
-
? Omit<
|
|
38
|
-
AlovaMethodCreateConfig<
|
|
39
|
-
AlovaGenerics<Responded, any, RequestConfig, Response, ResponseHeader, L1Cache, L2Cache, SE>,
|
|
40
|
-
any,
|
|
41
|
-
Responded
|
|
42
|
-
>,
|
|
43
|
-
'params'
|
|
44
|
-
>
|
|
45
|
-
: never;
|
|
46
|
-
|
|
47
|
-
// Extract the return type of transform function that define in $$userConfigMap, if it not exists, use the default type.
|
|
48
|
-
type ExtractUserDefinedTransformed<
|
|
49
|
-
DefinitionKey extends keyof typeof apiDefinitions,
|
|
50
|
-
Default
|
|
51
|
-
> = DefinitionKey extends keyof UserMethodConfigMap
|
|
52
|
-
? UserMethodConfigMap[DefinitionKey]['transform'] extends (...args: any[]) => any
|
|
53
|
-
? Awaited<ReturnType<UserMethodConfigMap[DefinitionKey]['transform']>>
|
|
54
|
-
: Default
|
|
55
|
-
: Default;
|
|
56
|
-
type Alova2Method<
|
|
57
|
-
Responded,
|
|
58
|
-
DefinitionKey extends keyof typeof apiDefinitions,
|
|
59
|
-
CurrentConfig extends Alova2MethodConfig<any>
|
|
60
|
-
> =
|
|
61
|
-
CollapsedAlova extends Alova<
|
|
62
|
-
AlovaGenerics<
|
|
63
|
-
any,
|
|
64
|
-
any,
|
|
65
|
-
infer RequestConfig,
|
|
66
|
-
infer Response,
|
|
67
|
-
infer ResponseHeader,
|
|
68
|
-
infer L1Cache,
|
|
69
|
-
infer L2Cache,
|
|
70
|
-
infer SE
|
|
71
|
-
>
|
|
72
|
-
>
|
|
73
|
-
? Method<
|
|
74
|
-
AlovaGenerics<
|
|
75
|
-
CurrentConfig extends undefined
|
|
76
|
-
? ExtractUserDefinedTransformed<DefinitionKey, Responded>
|
|
77
|
-
: CurrentConfig['transform'] extends (...args: any[]) => any
|
|
78
|
-
? Awaited<ReturnType<CurrentConfig['transform']>>
|
|
79
|
-
: ExtractUserDefinedTransformed<DefinitionKey, Responded>,
|
|
80
|
-
any,
|
|
81
|
-
RequestConfig,
|
|
82
|
-
Response,
|
|
83
|
-
ResponseHeader,
|
|
84
|
-
L1Cache,
|
|
85
|
-
L2Cache,
|
|
86
|
-
SE
|
|
87
|
-
>
|
|
88
|
-
>
|
|
89
|
-
: never;
|
|
90
|
-
|
|
91
|
-
export interface ScientistState {
|
|
92
|
-
id?: string;
|
|
93
|
-
name?: string;
|
|
94
|
-
createdTimestamp?: string;
|
|
95
|
-
updatedTimestamp?: string;
|
|
96
|
-
identityNumber?: string;
|
|
97
|
-
gender?: string;
|
|
98
|
-
phoneNumber?: string;
|
|
99
|
-
birthdate?: string;
|
|
100
|
-
}
|
|
101
|
-
export interface SortObject {
|
|
102
|
-
empty?: boolean;
|
|
103
|
-
sorted?: boolean;
|
|
104
|
-
unsorted?: boolean;
|
|
105
|
-
}
|
|
106
|
-
export interface PageableObject {
|
|
107
|
-
offset?: number;
|
|
108
|
-
sort?: SortObject;
|
|
109
|
-
pageSize?: number;
|
|
110
|
-
paged?: boolean;
|
|
111
|
-
pageNumber?: number;
|
|
112
|
-
unpaged?: boolean;
|
|
113
|
-
}
|
|
114
|
-
export interface PageScientistState {
|
|
115
|
-
totalPages?: number;
|
|
116
|
-
totalElements?: number;
|
|
117
|
-
size?: number;
|
|
118
|
-
content?: ScientistState[];
|
|
119
|
-
number?: number;
|
|
120
|
-
sort?: SortObject;
|
|
121
|
-
numberOfElements?: number;
|
|
122
|
-
pageable?: PageableObject;
|
|
123
|
-
first?: boolean;
|
|
124
|
-
last?: boolean;
|
|
125
|
-
empty?: boolean;
|
|
126
|
-
}
|
|
127
|
-
declare global {
|
|
128
|
-
interface scientistApi {
|
|
129
|
-
scientistStateRestful: {
|
|
130
|
-
/**
|
|
131
|
-
* ---
|
|
132
|
-
*
|
|
133
|
-
* [GET]
|
|
134
|
-
*
|
|
135
|
-
* **path:** /科研/服务/{id}
|
|
136
|
-
*
|
|
137
|
-
* ---
|
|
138
|
-
*
|
|
139
|
-
* **Path Parameters**
|
|
140
|
-
* ```ts
|
|
141
|
-
* type PathParameters = {
|
|
142
|
-
* id: string
|
|
143
|
-
* }
|
|
144
|
-
* ```
|
|
145
|
-
*
|
|
146
|
-
* ---
|
|
147
|
-
*
|
|
148
|
-
* **Response**
|
|
149
|
-
* ```ts
|
|
150
|
-
* type Response = {
|
|
151
|
-
* id?: string
|
|
152
|
-
* name?: string
|
|
153
|
-
* createdTimestamp?: string
|
|
154
|
-
* updatedTimestamp?: string
|
|
155
|
-
* identityNumber?: string
|
|
156
|
-
* gender?: string
|
|
157
|
-
* phoneNumber?: string
|
|
158
|
-
* birthdate?: string
|
|
159
|
-
* }
|
|
160
|
-
* ```
|
|
161
|
-
*/
|
|
162
|
-
getScientistState<
|
|
163
|
-
Config extends Alova2MethodConfig<ScientistState> & {
|
|
164
|
-
pathParams: {
|
|
165
|
-
id: string;
|
|
166
|
-
};
|
|
167
|
-
}
|
|
168
|
-
>(
|
|
169
|
-
config: Config
|
|
170
|
-
): Alova2Method<ScientistState, 'scientistStateRestful.getScientistState', Config>;
|
|
171
|
-
/**
|
|
172
|
-
* ---
|
|
173
|
-
*
|
|
174
|
-
* [PUT]
|
|
175
|
-
*
|
|
176
|
-
* **path:** /科研/服务/{id}
|
|
177
|
-
*
|
|
178
|
-
* ---
|
|
179
|
-
*
|
|
180
|
-
* **Path Parameters**
|
|
181
|
-
* ```ts
|
|
182
|
-
* type PathParameters = {
|
|
183
|
-
* id: string
|
|
184
|
-
* }
|
|
185
|
-
* ```
|
|
186
|
-
*
|
|
187
|
-
* ---
|
|
188
|
-
*
|
|
189
|
-
* **RequestBody**
|
|
190
|
-
* ```ts
|
|
191
|
-
* type RequestBody = {
|
|
192
|
-
* id?: string
|
|
193
|
-
* name?: string
|
|
194
|
-
* createdTimestamp?: string
|
|
195
|
-
* updatedTimestamp?: string
|
|
196
|
-
* identityNumber?: string
|
|
197
|
-
* gender?: string
|
|
198
|
-
* phoneNumber?: string
|
|
199
|
-
* birthdate?: string
|
|
200
|
-
* }
|
|
201
|
-
* ```
|
|
202
|
-
*
|
|
203
|
-
* ---
|
|
204
|
-
*
|
|
205
|
-
* **Response**
|
|
206
|
-
* ```ts
|
|
207
|
-
* type Response = {
|
|
208
|
-
* id?: string
|
|
209
|
-
* name?: string
|
|
210
|
-
* createdTimestamp?: string
|
|
211
|
-
* updatedTimestamp?: string
|
|
212
|
-
* identityNumber?: string
|
|
213
|
-
* gender?: string
|
|
214
|
-
* phoneNumber?: string
|
|
215
|
-
* birthdate?: string
|
|
216
|
-
* }
|
|
217
|
-
* ```
|
|
218
|
-
*/
|
|
219
|
-
putScientistState<
|
|
220
|
-
Config extends Alova2MethodConfig<ScientistState> & {
|
|
221
|
-
pathParams: {
|
|
222
|
-
id: string;
|
|
223
|
-
};
|
|
224
|
-
data: ScientistState;
|
|
225
|
-
}
|
|
226
|
-
>(
|
|
227
|
-
config: Config
|
|
228
|
-
): Alova2Method<ScientistState, 'scientistStateRestful.putScientistState', Config>;
|
|
229
|
-
/**
|
|
230
|
-
* ---
|
|
231
|
-
*
|
|
232
|
-
* [DELETE]
|
|
233
|
-
*
|
|
234
|
-
* **path:** /科研/服务/{id}
|
|
235
|
-
*
|
|
236
|
-
* ---
|
|
237
|
-
*
|
|
238
|
-
* **Path Parameters**
|
|
239
|
-
* ```ts
|
|
240
|
-
* type PathParameters = {
|
|
241
|
-
* id: string
|
|
242
|
-
* }
|
|
243
|
-
* ```
|
|
244
|
-
*
|
|
245
|
-
* ---
|
|
246
|
-
*
|
|
247
|
-
* **Response**
|
|
248
|
-
* ```ts
|
|
249
|
-
* type Response = null
|
|
250
|
-
* ```
|
|
251
|
-
*/
|
|
252
|
-
deleteScientistState<
|
|
253
|
-
Config extends Alova2MethodConfig<null> & {
|
|
254
|
-
pathParams: {
|
|
255
|
-
id: string;
|
|
256
|
-
};
|
|
257
|
-
}
|
|
258
|
-
>(
|
|
259
|
-
config: Config
|
|
260
|
-
): Alova2Method<null, 'scientistStateRestful.deleteScientistState', Config>;
|
|
261
|
-
/**
|
|
262
|
-
* ---
|
|
263
|
-
*
|
|
264
|
-
* [GET]
|
|
265
|
-
*
|
|
266
|
-
* **path:** /科研/服务
|
|
267
|
-
*
|
|
268
|
-
* ---
|
|
269
|
-
*
|
|
270
|
-
* **Query Parameters**
|
|
271
|
-
* ```ts
|
|
272
|
-
* type QueryParameters = {
|
|
273
|
-
* name?: string
|
|
274
|
-
* phoneNumber?: string
|
|
275
|
-
* pageSize: number
|
|
276
|
-
* page: number
|
|
277
|
-
* }
|
|
278
|
-
* ```
|
|
279
|
-
*
|
|
280
|
-
* ---
|
|
281
|
-
*
|
|
282
|
-
* **Response**
|
|
283
|
-
* ```ts
|
|
284
|
-
* type Response = {
|
|
285
|
-
* totalPages?: number
|
|
286
|
-
* totalElements?: number
|
|
287
|
-
* size?: number
|
|
288
|
-
* // [items] start
|
|
289
|
-
* // [items] end
|
|
290
|
-
* content?: Array<{
|
|
291
|
-
* id?: string
|
|
292
|
-
* name?: string
|
|
293
|
-
* createdTimestamp?: string
|
|
294
|
-
* updatedTimestamp?: string
|
|
295
|
-
* identityNumber?: string
|
|
296
|
-
* gender?: string
|
|
297
|
-
* phoneNumber?: string
|
|
298
|
-
* birthdate?: string
|
|
299
|
-
* }>
|
|
300
|
-
* number?: number
|
|
301
|
-
* sort?: {
|
|
302
|
-
* empty?: boolean
|
|
303
|
-
* sorted?: boolean
|
|
304
|
-
* unsorted?: boolean
|
|
305
|
-
* }
|
|
306
|
-
* numberOfElements?: number
|
|
307
|
-
* pageable?: {
|
|
308
|
-
* offset?: number
|
|
309
|
-
* sort?: {
|
|
310
|
-
* empty?: boolean
|
|
311
|
-
* sorted?: boolean
|
|
312
|
-
* unsorted?: boolean
|
|
313
|
-
* }
|
|
314
|
-
* pageSize?: number
|
|
315
|
-
* paged?: boolean
|
|
316
|
-
* pageNumber?: number
|
|
317
|
-
* unpaged?: boolean
|
|
318
|
-
* }
|
|
319
|
-
* first?: boolean
|
|
320
|
-
* last?: boolean
|
|
321
|
-
* empty?: boolean
|
|
322
|
-
* }
|
|
323
|
-
* ```
|
|
324
|
-
*/
|
|
325
|
-
queryScientistState<
|
|
326
|
-
Config extends Alova2MethodConfig<PageScientistState> & {
|
|
327
|
-
params: {
|
|
328
|
-
name?: string;
|
|
329
|
-
phoneNumber?: string;
|
|
330
|
-
pageSize: number;
|
|
331
|
-
page: number;
|
|
332
|
-
};
|
|
333
|
-
}
|
|
334
|
-
>(
|
|
335
|
-
config: Config
|
|
336
|
-
): Alova2Method<PageScientistState, 'scientistStateRestful.queryScientistState', Config>;
|
|
337
|
-
/**
|
|
338
|
-
* ---
|
|
339
|
-
*
|
|
340
|
-
* [POST]
|
|
341
|
-
*
|
|
342
|
-
* **path:** /科研/服务
|
|
343
|
-
*
|
|
344
|
-
* ---
|
|
345
|
-
*
|
|
346
|
-
* **RequestBody**
|
|
347
|
-
* ```ts
|
|
348
|
-
* type RequestBody = {
|
|
349
|
-
* id?: string
|
|
350
|
-
* name?: string
|
|
351
|
-
* createdTimestamp?: string
|
|
352
|
-
* updatedTimestamp?: string
|
|
353
|
-
* identityNumber?: string
|
|
354
|
-
* gender?: string
|
|
355
|
-
* phoneNumber?: string
|
|
356
|
-
* birthdate?: string
|
|
357
|
-
* }
|
|
358
|
-
* ```
|
|
359
|
-
*
|
|
360
|
-
* ---
|
|
361
|
-
*
|
|
362
|
-
* **Response**
|
|
363
|
-
* ```ts
|
|
364
|
-
* type Response = {
|
|
365
|
-
* id?: string
|
|
366
|
-
* name?: string
|
|
367
|
-
* createdTimestamp?: string
|
|
368
|
-
* updatedTimestamp?: string
|
|
369
|
-
* identityNumber?: string
|
|
370
|
-
* gender?: string
|
|
371
|
-
* phoneNumber?: string
|
|
372
|
-
* birthdate?: string
|
|
373
|
-
* }
|
|
374
|
-
* ```
|
|
375
|
-
*/
|
|
376
|
-
postScientistState<
|
|
377
|
-
Config extends Alova2MethodConfig<ScientistState> & {
|
|
378
|
-
data: ScientistState;
|
|
379
|
-
}
|
|
380
|
-
>(
|
|
381
|
-
config: Config
|
|
382
|
-
): Alova2Method<ScientistState, 'scientistStateRestful.postScientistState', Config>;
|
|
383
|
-
/**
|
|
384
|
-
* ---
|
|
385
|
-
*
|
|
386
|
-
* [GET]
|
|
387
|
-
*
|
|
388
|
-
* **path:** /科研/服务/统计/科研/日期
|
|
389
|
-
*
|
|
390
|
-
* ---
|
|
391
|
-
*
|
|
392
|
-
* **Response**
|
|
393
|
-
* ```ts
|
|
394
|
-
* type Response = null[][]
|
|
395
|
-
* ```
|
|
396
|
-
*/
|
|
397
|
-
datesOfScientist<Config extends Alova2MethodConfig<null[][]>>(
|
|
398
|
-
config?: Config
|
|
399
|
-
): Alova2Method<null[][], 'scientistStateRestful.datesOfScientist', Config>;
|
|
400
|
-
/**
|
|
401
|
-
* ---
|
|
402
|
-
*
|
|
403
|
-
* [GET]
|
|
404
|
-
*
|
|
405
|
-
* **path:** /科研/服务/统计/科研/总数
|
|
406
|
-
*
|
|
407
|
-
* ---
|
|
408
|
-
*
|
|
409
|
-
* **Response**
|
|
410
|
-
* ```ts
|
|
411
|
-
* type Response = number
|
|
412
|
-
* ```
|
|
413
|
-
*/
|
|
414
|
-
totalOfScientist<Config extends Alova2MethodConfig<number>>(
|
|
415
|
-
config?: Config
|
|
416
|
-
): Alova2Method<number, 'scientistStateRestful.totalOfScientist', Config>;
|
|
417
|
-
/**
|
|
418
|
-
* ---
|
|
419
|
-
*
|
|
420
|
-
* [GET]
|
|
421
|
-
*
|
|
422
|
-
* **path:** /科研/服务/统计/科研/今日
|
|
423
|
-
*
|
|
424
|
-
* ---
|
|
425
|
-
*
|
|
426
|
-
* **Response**
|
|
427
|
-
* ```ts
|
|
428
|
-
* type Response = number
|
|
429
|
-
* ```
|
|
430
|
-
*/
|
|
431
|
-
todayOfScientistByToday<Config extends Alova2MethodConfig<number>>(
|
|
432
|
-
config?: Config
|
|
433
|
-
): Alova2Method<number, 'scientistStateRestful.todayOfScientistByToday', Config>;
|
|
434
|
-
};
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
var scientistApi: scientistApi;
|
|
438
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './scientist';
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Scientist } from '@core/api/scientist/scientist';
|
|
2
|
-
|
|
3
|
-
export class AlovaScientist extends Scientist{
|
|
4
|
-
|
|
5
|
-
override async get() {
|
|
6
|
-
return this.of(await scientistApi.scientistStateRestful.getScientistState({
|
|
7
|
-
pathParams: {
|
|
8
|
-
id: this.id,
|
|
9
|
-
},
|
|
10
|
-
async transform(res) {
|
|
11
|
-
return new AlovaScientist().of(res);
|
|
12
|
-
},
|
|
13
|
-
}).send());
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
override async put() {
|
|
17
|
-
return this.of(await scientistApi.scientistStateRestful.putScientistState({
|
|
18
|
-
pathParams: {
|
|
19
|
-
id: this.id,
|
|
20
|
-
},
|
|
21
|
-
data: this.state(),
|
|
22
|
-
}).send(true));
|
|
23
|
-
}
|
|
24
|
-
async post() {
|
|
25
|
-
return this.of(await scientistApi.scientistStateRestful.postScientistState({
|
|
26
|
-
data: this.state()
|
|
27
|
-
}).send(true));
|
|
28
|
-
}
|
|
29
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { createAlova } from 'alova';
|
|
2
|
-
import fetchAdapter from 'alova/fetch';
|
|
3
|
-
import { createApis, withConfigType, mountApis } from './createApis';
|
|
4
|
-
import { onAuthRequired, responded } from '@core/api/config/alova';
|
|
5
|
-
import { getServiceEndpoint, ServiceType } from '@core/api/config';
|
|
6
|
-
|
|
7
|
-
export const alovaInstance = createAlova({
|
|
8
|
-
baseURL: getServiceEndpoint(ServiceType.Scientist),
|
|
9
|
-
requestAdapter: fetchAdapter(),
|
|
10
|
-
beforeRequest: onAuthRequired(() => {}),
|
|
11
|
-
cacheFor: null,
|
|
12
|
-
responded: responded
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
export const $$userConfigMap = withConfigType({});
|
|
16
|
-
|
|
17
|
-
const Apis = createApis(alovaInstance, $$userConfigMap);
|
|
18
|
-
|
|
19
|
-
mountApis(Apis);
|
|
20
|
-
|
|
21
|
-
export default Apis;
|
|
22
|
-
|
|
23
|
-
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { NetworkObject } from '@core/api/patient/core';
|
|
2
|
-
import type { IBuilder } from 'builder-pattern';
|
|
3
|
-
import { Builder } from 'builder-pattern';
|
|
4
|
-
import type { ScientistState } from '@core/api/scientist/alova/globals';
|
|
5
|
-
import { getName } from '@core/util/string';
|
|
6
|
-
|
|
7
|
-
export abstract class Scientist extends NetworkObject{
|
|
8
|
-
static override builder(): IBuilder<Scientist>{
|
|
9
|
-
return Builder(this._default) as unknown as IBuilder<Scientist>;
|
|
10
|
-
}
|
|
11
|
-
static override default(): typeof Scientist {
|
|
12
|
-
return this._default as unknown as typeof Scientist;
|
|
13
|
-
}
|
|
14
|
-
id: string = '';
|
|
15
|
-
name: string = '';
|
|
16
|
-
createdTimestamp: string = '';
|
|
17
|
-
updatedTimestamp: string = '';
|
|
18
|
-
gender: string = '';
|
|
19
|
-
identityNumber: string = '';
|
|
20
|
-
phoneNumber: string = '';
|
|
21
|
-
birthdate: string = '';
|
|
22
|
-
|
|
23
|
-
override of(json: ScientistState){
|
|
24
|
-
if(json.id != undefined)this.id = json.id;
|
|
25
|
-
if(json.name != undefined)this.name = getName(json.name);
|
|
26
|
-
if(json.gender != undefined)this.gender = json.gender;
|
|
27
|
-
if(json.identityNumber != undefined)this.identityNumber = json.identityNumber;
|
|
28
|
-
if(json.phoneNumber != undefined)this.phoneNumber = json.phoneNumber;
|
|
29
|
-
if(json.birthdate != undefined)this.birthdate = json.birthdate;
|
|
30
|
-
if(json.createdTimestamp != undefined)this.createdTimestamp = json.createdTimestamp;
|
|
31
|
-
if(json.updatedTimestamp != undefined)this.updatedTimestamp = json.updatedTimestamp;
|
|
32
|
-
return Promise.resolve(this);
|
|
33
|
-
}
|
|
34
|
-
override state(){
|
|
35
|
-
return {
|
|
36
|
-
id: this.id,
|
|
37
|
-
name: this.name,
|
|
38
|
-
createdTimestamp: this.createdTimestamp,
|
|
39
|
-
updatedTimestamp: this.updatedTimestamp,
|
|
40
|
-
gender: this.gender,
|
|
41
|
-
identityNumber: this.identityNumber,
|
|
42
|
-
phoneNumber: this.phoneNumber,
|
|
43
|
-
birthdate: this.birthdate,
|
|
44
|
-
} as ScientistState
|
|
45
|
-
}
|
|
46
|
-
abstract get(): Promise<this>
|
|
47
|
-
abstract put(): Promise<this>
|
|
48
|
-
abstract post(): Promise<this>;
|
|
49
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 356 360">
|
|
2
|
-
<path
|
|
3
|
-
d="M43.4 303.4c0 3.8-2.3 6.3-7.1 6.3h-15v-22h14.4c4.3 0 6.2 2.2 6.2 5.2 0 2.6-1.5 4.4-3.4 5 2.8.4 4.9 2.5 4.9 5.5zm-8-13H24.1v6.9H35c2.1 0 4-1.3 4-3.8 0-2.2-1.3-3.1-3.7-3.1zm5.1 12.6c0-2.3-1.8-3.7-4-3.7H24.2v7.7h11.7c3.4 0 4.6-1.8 4.6-4zm36.3 4v2.7H56v-22h20.6v2.7H58.9v6.8h14.6v2.3H58.9v7.5h17.9zm23-5.8v8.5H97v-8.5l-11-13.4h3.4l8.9 11 8.8-11h3.4l-10.8 13.4zm19.1-1.8V298c0-7.9 5.2-10.7 12.7-10.7 7.5 0 13 2.8 13 10.7v1.4c0 7.9-5.5 10.8-13 10.8s-12.7-3-12.7-10.8zm22.7 0V298c0-5.7-3.9-8-10-8-6 0-9.8 2.3-9.8 8v1.4c0 5.8 3.8 8.1 9.8 8.1 6 0 10-2.3 10-8.1zm37.2-11.6v21.9h-2.9l-15.8-17.9v17.9h-2.8v-22h3l15.6 18v-18h2.9zm37.9 10.2v1.3c0 7.8-5.2 10.4-12.4 10.4H193v-22h11.2c7.2 0 12.4 2.8 12.4 10.3zm-3 0c0-5.3-3.3-7.6-9.4-7.6h-8.4V307h8.4c6 0 9.5-2 9.5-7.7V298zm50.8-7.6h-9.7v19.3h-3v-19.3h-9.7v-2.6h22.4v2.6zm34.4-2.6v21.9h-3v-10.1h-16.8v10h-2.8v-21.8h2.8v9.2H296v-9.2h2.9zm34.9 19.2v2.7h-20.7v-22h20.6v2.7H316v6.8h14.5v2.3H316v7.5h17.8zM24 340.2v7.3h13.9v2.4h-14v9.6H21v-22h20v2.7H24zm41.5 11.4h-9.8v7.9H53v-22h13.3c5.1 0 8 1.9 8 6.8 0 3.7-2 6.3-5.6 7l6 8.2h-3.3l-5.8-8zm-9.8-2.6H66c3.1 0 5.3-1.5 5.3-4.7 0-3.3-2.2-4.1-5.3-4.1H55.7v8.8zm47.9 6.2H89l-2 4.3h-3.2l10.7-22.2H98l10.7 22.2h-3.2l-2-4.3zm-1-2.3l-6.3-13-6 13h12.2zm46.3-15.3v21.9H146v-17.2L135.7 358h-2.1l-10.2-15.6v17h-2.8v-21.8h3l11 16.9 11.3-17h3zm35 19.3v2.6h-20.7v-22h20.6v2.7H166v6.8h14.5v2.3H166v7.6h17.8zm47-19.3l-8.3 22h-3l-7.1-18.6-7 18.6h-3l-8.2-22h3.3L204 356l6.8-18.5h3.4L221 356l6.6-18.5h3.3zm10 11.6v-1.4c0-7.8 5.2-10.7 12.7-10.7 7.6 0 13 2.9 13 10.7v1.4c0 7.9-5.4 10.8-13 10.8-7.5 0-12.7-3-12.7-10.8zm22.8 0v-1.4c0-5.7-4-8-10-8s-9.9 2.3-9.9 8v1.4c0 5.8 3.8 8.2 9.8 8.2 6.1 0 10-2.4 10-8.2zm28.3 2.4h-9.8v7.9h-2.8v-22h13.2c5.2 0 8 1.9 8 6.8 0 3.7-2 6.3-5.6 7l6 8.2h-3.3l-5.8-8zm-9.8-2.6h10.2c3 0 5.2-1.5 5.2-4.7 0-3.3-2.1-4.1-5.2-4.1h-10.2v8.8zm40.3-1.5l-6.8 5.6v6.4h-2.9v-22h2.9v12.3l15.2-12.2h3.7l-9.9 8.1 10.3 13.8h-3.6l-8.9-12z" />
|
|
4
|
-
<path fill="#050A14"
|
|
5
|
-
d="M188.4 71.7a10.4 10.4 0 01-20.8 0 10.4 10.4 0 1120.8 0zM224.2 45c-2.2-3.9-5-7.5-8.2-10.7l-12 7c-3.7-3.2-8-5.7-12.6-7.3a49.4 49.4 0 00-9.7 13.9 59 59 0 0140.1 14l7.6-4.4a57 57 0 00-5.2-12.5zM178 125.1c4.5 0 9-.6 13.4-1.7v-14a40 40 0 0012.5-7.2 47.7 47.7 0 00-7.1-15.3 59 59 0 01-32.2 27.7v8.7c4.4 1.2 8.9 1.8 13.4 1.8zM131.8 45c-2.3 4-4 8.1-5.2 12.5l12 7a40 40 0 000 14.4c5.7 1.5 11.3 2 16.9 1.5a59 59 0 01-8-41.7l-7.5-4.3c-3.2 3.2-6 6.7-8.2 10.6z" />
|
|
6
|
-
<path fill="#00B4FF"
|
|
7
|
-
d="M224.2 98.4c2.3-3.9 4-8 5.2-12.4l-12-7a40 40 0 000-14.5c-5.7-1.5-11.3-2-16.9-1.5a59 59 0 018 41.7l7.5 4.4c3.2-3.2 6-6.8 8.2-10.7zm-92.4 0c2.2 4 5 7.5 8.2 10.7l12-7a40 40 0 0012.6 7.3c4-4.1 7.3-8.8 9.7-13.8a59 59 0 01-40-14l-7.7 4.4c1.2 4.3 3 8.5 5.2 12.4zm46.2-80c-4.5 0-9 .5-13.4 1.7V34a40 40 0 00-12.5 7.2c1.5 5.7 4 10.8 7.1 15.4a59 59 0 0132.2-27.7V20a53.3 53.3 0 00-13.4-1.8z" />
|
|
8
|
-
<path fill="#00B4FF"
|
|
9
|
-
d="M178 9.2a62.6 62.6 0 11-.1 125.2A62.6 62.6 0 01178 9.2m0-9.2a71.7 71.7 0 100 143.5A71.7 71.7 0 00178 0z" />
|
|
10
|
-
<path fill="#050A14"
|
|
11
|
-
d="M96.6 212v4.3c-9.2-.8-15.4-5.8-15.4-17.8V180h4.6v18.4c0 8.6 4 12.6 10.8 13.5zm16-31.9v18.4c0 8.9-4.3 12.8-10.9 13.5v4.4c9.2-.7 15.5-5.6 15.5-18v-18.3h-4.7zM62.2 199v-2.2c0-12.7-8.8-17.4-21-17.4-12.1 0-20.7 4.7-20.7 17.4v2.2c0 12.8 8.6 17.6 20.7 17.6 1.5 0 3-.1 4.4-.3l11.8 6.2 2-3.3-8.2-4-6.4-3.1a32 32 0 01-3.6.2c-9.8 0-16-3.9-16-13.3v-2.2c0-9.3 6.2-13.1 16-13.1 9.9 0 16.3 3.8 16.3 13.1v2.2c0 5.3-2.1 8.7-5.6 10.8l4.8 2.4c3.4-2.8 5.5-7 5.5-13.2zM168 215.6h5.1L156 179.7h-4.8l17 36zM143 205l7.4-15.7-2.4-5-15.1 31.4h5.1l3.3-7h18.3l-1.8-3.7H143zm133.7 10.7h5.2l-17.3-35.9h-4.8l17 36zm-25-10.7l7.4-15.7-2.4-5-15.1 31.4h5.1l3.3-7h18.3l-1.7-3.7h-14.8zm73.8-2.5c6-1.2 9-5.4 9-11.4 0-8-4.5-10.9-12.9-10.9h-21.4v35.5h4.6v-31.3h16.5c5 0 8.5 1.4 8.5 6.7 0 5.2-3.5 7.7-8.5 7.7h-11.4v4.1h10.7l9.3 12.8h5.5l-9.9-13.2zm-117.4 9.9c-9.7 0-14.7-2.5-18.6-6.3l-2.2 3.8c5.1 5 11 6.7 21 6.7 1.6 0 3.1-.1 4.6-.3l-1.9-4h-3zm18.4-7c0-6.4-4.7-8.6-13.8-9.4l-10.1-1c-6.7-.7-9.3-2.2-9.3-5.6 0-2.5 1.4-4 4.6-5l-1.8-3.8c-4.7 1.4-7.5 4.2-7.5 8.9 0 5.2 3.4 8.7 13 9.6l11.3 1.2c6.4.6 8.9 2 8.9 5.4 0 2.7-2.1 4.7-6 5.8l1.8 3.9c5.3-1.6 8.9-4.7 8.9-10zm-20.3-21.9c7.9 0 13.3 1.8 18.1 5.7l1.8-3.9a30 30 0 00-19.6-5.9c-2 0-4 .1-5.7.3l1.9 4 3.5-.2z" />
|
|
12
|
-
<path fill="#00B4FF"
|
|
13
|
-
d="M.5 251.9c29.6-.5 59.2-.8 88.8-1l88.7-.3 88.7.3 44.4.4 44.4.6-44.4.6-44.4.4-88.7.3-88.7-.3a7981 7981 0 01-88.8-1z" />
|
|
14
|
-
<path fill="none" d="M-565.2 324H-252v15.8h-313.2z" />
|
|
15
|
-
</svg>
|
package/src/boot/.gitkeep
DELETED
|
File without changes
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<p>{{ title }}</p>
|
|
4
|
-
<ul>
|
|
5
|
-
<li v-for="todo in todos" :key="todo.id" @click="increment">
|
|
6
|
-
{{ todo.id }} - {{ todo.content }}
|
|
7
|
-
</li>
|
|
8
|
-
</ul>
|
|
9
|
-
<p>Count: {{ todoCount }} / {{ meta.totalCount }}</p>
|
|
10
|
-
<p>Active: {{ active ? 'yes' : 'no' }}</p>
|
|
11
|
-
<p>Clicks on todos: {{ clickCount }}</p>
|
|
12
|
-
</div>
|
|
13
|
-
</template>
|
|
14
|
-
|
|
15
|
-
<script setup lang="ts">
|
|
16
|
-
import { computed, ref } from 'vue';
|
|
17
|
-
import type { Todo, Meta } from './models';
|
|
18
|
-
|
|
19
|
-
interface Props {
|
|
20
|
-
title: string;
|
|
21
|
-
todos?: Todo[];
|
|
22
|
-
meta: Meta;
|
|
23
|
-
active: boolean;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
const props = withDefaults(defineProps<Props>(), {
|
|
27
|
-
todos: () => [],
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
const clickCount = ref(0);
|
|
31
|
-
function increment() {
|
|
32
|
-
clickCount.value += 1;
|
|
33
|
-
return clickCount.value;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
const todoCount = computed(() => props.todos.length);
|
|
37
|
-
</script>
|
package/src/components/models.ts
DELETED
package/src/css/app.scss
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
// app global css in SCSS form
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
// Quasar SCSS (& Sass) Variables
|
|
2
|
-
// --------------------------------------------------
|
|
3
|
-
// To customize the look and feel of this app, you can override
|
|
4
|
-
// the Sass/SCSS variables found in Quasar's source Sass/SCSS files.
|
|
5
|
-
|
|
6
|
-
// Check documentation for full list of Quasar variables
|
|
7
|
-
|
|
8
|
-
// Your own variables (that are declared here) and Quasar's own
|
|
9
|
-
// ones will be available out of the box in your .vue/.scss/.sass files
|
|
10
|
-
|
|
11
|
-
// It's highly recommended to change the default colors
|
|
12
|
-
// to match your app's branding.
|
|
13
|
-
// Tip: Use the "Theme Builder" on Quasar's documentation website.
|
|
14
|
-
|
|
15
|
-
$primary: #1976d2;
|
|
16
|
-
$secondary: #26a69a;
|
|
17
|
-
$accent: #9c27b0;
|
|
18
|
-
|
|
19
|
-
$dark: #1d1d1d;
|
|
20
|
-
$dark-page: #121212;
|
|
21
|
-
|
|
22
|
-
$positive: #21ba45;
|
|
23
|
-
$negative: #c10015;
|
|
24
|
-
$info: #31ccec;
|
|
25
|
-
$warning: #f2c037;
|
package/src/env.d.ts
DELETED
package/src/index.ts
DELETED