web-core-tcm 0.0.72 → 0.0.73
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/dist/src/api/algorithm/alova/implement/lisemsAlgorithm.js +10 -6
- package/dist/src/api/algorithm/pulsationsAlgorithm.js +1 -1
- package/dist/src/api/authorization/alova/index.d.ts +2 -3
- package/dist/src/api/authorization/alova/index.js +13 -16
- package/dist/src/api/authorization/authorization.d.ts +1 -1
- package/dist/src/api/authorization/index.js +6 -9
- package/dist/src/api/check/alova/implement/check.d.ts +1 -1
- package/dist/src/api/check/alova/implement/check.js +19 -18
- package/dist/src/api/check/alova/index.d.ts +2 -1
- package/dist/src/api/check/alova/index.js +11 -10
- package/dist/src/api/check/check.d.ts +2 -2
- package/dist/src/api/check/check.js +19 -8
- package/dist/src/api/check/index.js +10 -9
- package/dist/src/api/config/alova/index.js +10 -10
- package/dist/src/api/config/index.d.ts +3 -1
- package/dist/src/api/config/index.js +21 -9
- package/dist/src/api/core/core.d.ts +1 -1
- package/dist/src/api/doctor/alova/index.d.ts +2 -1
- package/dist/src/api/doctor/alova/index.js +8 -7
- package/dist/src/api/doctor/doctor.d.ts +1 -1
- package/dist/src/api/doctor/index.js +7 -6
- package/dist/src/api/index.d.ts +1 -0
- package/dist/src/api/index.js +2 -0
- package/dist/src/api/manager/alova/apiDefinitions.d.ts +77 -0
- package/dist/src/api/manager/alova/apiDefinitions.js +65 -0
- package/dist/src/api/manager/alova/createApis.d.ts +10 -0
- package/dist/src/api/manager/alova/createApis.js +49 -0
- package/dist/src/api/manager/alova/globals.d.ts +5524 -0
- package/dist/src/api/manager/alova/implement/department.d.ts +15 -0
- package/dist/src/api/manager/alova/implement/department.js +71 -0
- package/dist/src/api/manager/alova/implement/division.d.ts +15 -0
- package/dist/src/api/manager/alova/implement/division.js +71 -0
- package/dist/src/api/manager/alova/implement/hospital.d.ts +15 -0
- package/dist/src/api/manager/alova/implement/hospital.js +72 -0
- package/dist/src/api/manager/alova/implement/index.d.ts +3 -0
- package/dist/src/api/manager/alova/implement/index.js +8 -0
- package/dist/src/api/manager/alova/index.d.ts +7 -0
- package/dist/src/api/manager/alova/index.js +21 -0
- package/dist/src/api/manager/department.d.ts +23 -0
- package/dist/src/api/manager/department.js +49 -0
- package/dist/src/api/manager/division.d.ts +23 -0
- package/dist/src/api/manager/division.js +44 -0
- package/dist/src/api/manager/hospital.d.ts +24 -0
- package/dist/src/api/manager/hospital.js +51 -0
- package/dist/src/api/manager/index.d.ts +4 -0
- package/dist/src/api/manager/index.js +18 -0
- package/dist/src/api/metric/alova/implement/metric.d.ts +1 -1
- package/dist/src/api/metric/metric.d.ts +2 -2
- package/dist/src/api/oauth/alova/index.d.ts +2 -1
- package/dist/src/api/oauth/alova/index.js +12 -11
- package/dist/src/api/oauth/index.js +6 -5
- package/dist/src/api/outpatient/alova/index.d.ts +2 -1
- package/dist/src/api/outpatient/alova/index.js +11 -10
- package/dist/src/api/outpatient/index.js +10 -9
- package/dist/src/api/outpatient/outpatient.d.ts +1 -1
- package/dist/src/api/patient/alova/implement/meta.d.ts +1 -1
- package/dist/src/api/patient/alova/index.d.ts +2 -1
- package/dist/src/api/patient/alova/index.js +11 -10
- package/dist/src/api/patient/index.js +27 -26
- package/dist/src/api/patient/meta.d.ts +1 -1
- package/dist/src/api/patient/patient.d.ts +1 -1
- package/dist/src/api/prescription/alova/implement/prescription.d.ts +0 -1
- package/dist/src/api/prescription/alova/implement/prescription.js +9 -17
- package/dist/src/api/prescription/alova/index.d.ts +2 -1
- package/dist/src/api/prescription/alova/index.js +2 -1
- package/dist/src/api/prescription/herbal.d.ts +1 -1
- package/dist/src/api/prescription/index.js +12 -11
- package/dist/src/api/prescription/prescription.d.ts +1 -2
- package/dist/src/api/prescription/prescription.js +9 -12
- package/dist/src/api/scientist/alova/index.d.ts +2 -1
- package/dist/src/api/scientist/alova/index.js +6 -5
- package/dist/src/api/scientist/index.js +8 -7
- package/dist/src/api/scientist/scientist.d.ts +1 -1
- package/dist/src/api/user/alova/apiDefinitions.d.ts +26 -0
- package/dist/src/api/user/alova/apiDefinitions.js +14 -0
- package/dist/src/api/user/alova/createApis.d.ts +10 -0
- package/dist/src/api/user/alova/createApis.js +49 -0
- package/dist/src/api/user/alova/globals.d.ts +529 -0
- package/dist/src/api/user/alova/implement/index.d.ts +1 -0
- package/dist/src/api/user/alova/implement/index.js +1 -0
- package/dist/src/api/user/alova/implement/user.d.ts +10 -0
- package/dist/src/api/user/alova/index.d.ts +7 -0
- package/dist/src/api/user/alova/index.js +21 -0
- package/dist/src/api/user/index.d.ts +2 -0
- package/dist/src/api/user/index.js +8 -0
- package/dist/src/api/user/user.d.ts +23 -0
- package/dist/src/api/user/user.js +52 -0
- package/dist/src/components/tcm/inquirise/ComplaintViewCollected.vue.d.ts +14 -3
- package/dist/src/components/tcm/inquirise/ComplaintViewCollected.vue.js +2 -2
- package/dist/src/components/tcm/inquirise/ComplaintViewCollected.vue2.js +117 -129
- package/dist/src/components/tcm/inquirise/ComplaintsRecognitionCollected.vue.d.ts +14 -3
- package/dist/src/components/tcm/inquirise/ComplaintsRecognitionCollected.vue.js +2 -2
- package/dist/src/components/tcm/inquirise/ComplaintsRecognitionCollected.vue2.js +123 -139
- package/dist/src/components/tcm/lisems/EPPCollected.vue.js +1 -1
- package/dist/src/components/tcm/palpations/PulsationCollect.vue.js +2 -2
- package/dist/src/components/tcm/palpations/PulsationCollect.vue2.js +51 -54
- package/dist/src/index.js +42 -40
- package/dist/web-core-tcm.css +1 -1
- package/package.json +11 -1
|
@@ -2,13 +2,17 @@ import "../../index.js";
|
|
|
2
2
|
import { LisemsAlgorithm as i } from "../../lisemsAlgorithm.js";
|
|
3
3
|
import { lisemsAlgorithmService as s } from "../index.js";
|
|
4
4
|
class c extends i {
|
|
5
|
-
static analysisLisems(
|
|
6
|
-
return s.Post("/特征参数",
|
|
5
|
+
static analysisLisems(r) {
|
|
6
|
+
return s.Post("/特征参数", r, {
|
|
7
|
+
transform(t) {
|
|
8
|
+
return t.json();
|
|
9
|
+
}
|
|
10
|
+
}).send();
|
|
7
11
|
}
|
|
8
|
-
static getFrequencyDomainDiagram(
|
|
9
|
-
return s.Post("/频域图", JSON.stringify(
|
|
10
|
-
async transform(
|
|
11
|
-
const e = await
|
|
12
|
+
static getFrequencyDomainDiagram(r) {
|
|
13
|
+
return s.Post("/频域图", JSON.stringify(r), {
|
|
14
|
+
async transform(t) {
|
|
15
|
+
const e = await t.blob();
|
|
12
16
|
return URL.createObjectURL(e);
|
|
13
17
|
}
|
|
14
18
|
}).send();
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
export declare const alovaInstance: import('alova').Alova<import('alova').AlovaGenerics<any, any, import('alova/fetch').FetchRequestInit, Response, Headers, any, any, any>>;
|
|
2
2
|
export declare const $$userConfigMap: {};
|
|
3
|
+
export { alovaInstance as authorizationAlovaInstance };
|
|
3
4
|
declare const Apis: authorizeApi;
|
|
4
5
|
export default Apis;
|
|
5
6
|
export * from './implement';
|
|
6
|
-
export type * from './globals
|
|
7
|
-
export * from './createApis';
|
|
8
|
-
export * from './apiDefinitions';
|
|
7
|
+
export type * from './globals';
|
|
@@ -1,23 +1,20 @@
|
|
|
1
1
|
import { createAlova as e } from "../../../../node_modules/alova/dist/alova.esm.js";
|
|
2
2
|
import o from "../../../../node_modules/alova/dist/adapter/fetch.esm.js";
|
|
3
|
-
import { withConfigType as t, createApis as r, mountApis as
|
|
4
|
-
import { responded as
|
|
5
|
-
import { getServiceEndpoint as
|
|
3
|
+
import { withConfigType as t, createApis as r, mountApis as a } from "./createApis.js";
|
|
4
|
+
import { responded as i, onAuthRequired as n } from "../../config/alova/index.js";
|
|
5
|
+
import { getServiceEndpoint as p, ServiceType as s } from "../../config/index.js";
|
|
6
6
|
import "./implement/index.js";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
baseURL: n(m.Authorization),
|
|
7
|
+
const c = e({
|
|
8
|
+
baseURL: p(s.Authorization),
|
|
10
9
|
requestAdapter: o(),
|
|
11
|
-
beforeRequest:
|
|
10
|
+
beforeRequest: n(),
|
|
12
11
|
cacheFor: null,
|
|
13
|
-
responded:
|
|
14
|
-
}),
|
|
15
|
-
|
|
12
|
+
responded: i
|
|
13
|
+
}), m = t({}), u = r(c, m);
|
|
14
|
+
a(u);
|
|
16
15
|
export {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
i as mountApis,
|
|
22
|
-
t as withConfigType
|
|
16
|
+
m as $$userConfigMap,
|
|
17
|
+
c as alovaInstance,
|
|
18
|
+
c as authorizationAlovaInstance,
|
|
19
|
+
u as default
|
|
23
20
|
};
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { Authorization as t } from "./authorization.js";
|
|
2
|
-
import { $$userConfigMap as
|
|
3
|
-
import { AlovaAuthorization as
|
|
4
|
-
import { createApis as m, mountApis as A, withConfigType as s } from "./alova/createApis.js";
|
|
2
|
+
import { $$userConfigMap as r, alovaInstance as e, alovaInstance as i } from "./alova/index.js";
|
|
3
|
+
import { AlovaAuthorization as f } from "./alova/implement/authorization.js";
|
|
5
4
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
r as $$userConfigMap,
|
|
6
|
+
f as AlovaAuthorization,
|
|
8
7
|
t as Authorization,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
A as mountApis,
|
|
12
|
-
s as withConfigType
|
|
8
|
+
e as alovaInstance,
|
|
9
|
+
i as authorizationAlovaInstance
|
|
13
10
|
};
|
|
@@ -4,7 +4,7 @@ export declare class AlovaCheck extends Check {
|
|
|
4
4
|
put(): Promise<this>;
|
|
5
5
|
post(): Promise<this>;
|
|
6
6
|
delete(): Promise<void>;
|
|
7
|
-
static query(page: number, pageSize: number, sort: string, patientId?: string, doctorId?: string, startTime?: string, endTime?: string, patientName?: string, patientGender?: string, patientPhoneNumber?: string
|
|
7
|
+
static query(page: number, pageSize: number, sort: string, patientId?: string, doctorId?: string, startTime?: string, endTime?: string, patientName?: string, patientGender?: string, patientPhoneNumber?: string): Promise<{
|
|
8
8
|
data: AlovaCheck[];
|
|
9
9
|
total: number;
|
|
10
10
|
page: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Check as
|
|
2
|
-
class
|
|
1
|
+
import { Check as d, Payment as m } from "../../check.js";
|
|
2
|
+
class l extends d {
|
|
3
3
|
async get() {
|
|
4
4
|
return this.of(
|
|
5
5
|
await checkApi.checkStateRestful.getCheckState({
|
|
@@ -7,7 +7,7 @@ class p extends k {
|
|
|
7
7
|
id: this.id
|
|
8
8
|
},
|
|
9
9
|
async transform(t) {
|
|
10
|
-
return new
|
|
10
|
+
return new l().of(t);
|
|
11
11
|
}
|
|
12
12
|
}).send()
|
|
13
13
|
);
|
|
@@ -36,24 +36,25 @@ class p extends k {
|
|
|
36
36
|
}
|
|
37
37
|
}).send(), Promise.resolve();
|
|
38
38
|
}
|
|
39
|
-
static query(t,
|
|
39
|
+
static query(t, h, u, s, c, i, r, n, e, o) {
|
|
40
40
|
return checkApi.checkStateRestful.queryCheckState({
|
|
41
41
|
params: {
|
|
42
42
|
...s && { patientId: s },
|
|
43
43
|
...c && { doctorId: c },
|
|
44
|
-
...
|
|
45
|
-
...
|
|
44
|
+
...i && { startTime: i },
|
|
45
|
+
...r && { endTime: r },
|
|
46
46
|
...n && { patientName: n },
|
|
47
47
|
...e && { patientGender: e },
|
|
48
|
-
...
|
|
49
|
-
|
|
50
|
-
pageSize: o,
|
|
48
|
+
...o && { patientPhoneNumber: o },
|
|
49
|
+
pageSize: h,
|
|
51
50
|
page: t,
|
|
52
51
|
sort: u
|
|
53
52
|
},
|
|
54
53
|
async transform(a) {
|
|
55
54
|
return {
|
|
56
|
-
data: await Promise.all(
|
|
55
|
+
data: await Promise.all(
|
|
56
|
+
a.content.map((p) => new l().of(p))
|
|
57
|
+
),
|
|
57
58
|
total: a.totalElements,
|
|
58
59
|
page: a.number,
|
|
59
60
|
pageSize: a.size,
|
|
@@ -63,22 +64,22 @@ class p extends k {
|
|
|
63
64
|
}
|
|
64
65
|
}).send();
|
|
65
66
|
}
|
|
66
|
-
static queryPayment(t,
|
|
67
|
+
static queryPayment(t, h, u, s, c, i, r, n) {
|
|
67
68
|
return checkApi.checkStateRestful.queryPaymentState({
|
|
68
69
|
params: {
|
|
69
70
|
...u && { doctorId: u },
|
|
70
71
|
...s && { patientId: s },
|
|
71
72
|
...c && { patientName: c },
|
|
72
|
-
...
|
|
73
|
-
...
|
|
73
|
+
...i && { patientPhone: i },
|
|
74
|
+
...r && { prescriptionPaymentStatus: r },
|
|
74
75
|
...n && { outboundStatus: n },
|
|
75
|
-
pageSize:
|
|
76
|
+
pageSize: h,
|
|
76
77
|
page: t
|
|
77
78
|
},
|
|
78
79
|
async transform(e) {
|
|
79
80
|
return {
|
|
80
81
|
data: await Promise.all(
|
|
81
|
-
e.content.map((
|
|
82
|
+
e.content.map((a) => new k().of(a))
|
|
82
83
|
),
|
|
83
84
|
total: e.totalElements,
|
|
84
85
|
page: e.number,
|
|
@@ -90,7 +91,7 @@ class p extends k {
|
|
|
90
91
|
}).send();
|
|
91
92
|
}
|
|
92
93
|
}
|
|
93
|
-
class
|
|
94
|
+
class k extends m {
|
|
94
95
|
async putOutboundStatus(t) {
|
|
95
96
|
return this.outboundStatus = t, await checkApi.checkStateRestful.putCheckState({
|
|
96
97
|
pathParams: {
|
|
@@ -113,6 +114,6 @@ class S extends m {
|
|
|
113
114
|
}
|
|
114
115
|
}
|
|
115
116
|
export {
|
|
116
|
-
|
|
117
|
-
|
|
117
|
+
l as AlovaCheck,
|
|
118
|
+
k as AlovaPayment
|
|
118
119
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare const alovaInstance: import('alova').Alova<import('alova').AlovaGenerics<any, any, import('alova/fetch').FetchRequestInit, Response, Headers, any, any, any>>;
|
|
2
|
+
export { alovaInstance as checkAlovaInstance };
|
|
2
3
|
export declare const $$userConfigMap: {};
|
|
3
4
|
declare const Apis: checkApi;
|
|
4
5
|
export default Apis;
|
|
5
6
|
export * from './implement';
|
|
6
|
-
export type * from './globals
|
|
7
|
+
export type * from './globals';
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { createAlova as e } from "../../../../node_modules/alova/dist/alova.esm.js";
|
|
2
2
|
import o from "../../../../node_modules/alova/dist/adapter/fetch.esm.js";
|
|
3
|
-
import { withConfigType as
|
|
4
|
-
import { responded as
|
|
5
|
-
import { getServiceEndpoint as
|
|
3
|
+
import { withConfigType as t, createApis as r, mountApis as a } from "./createApis.js";
|
|
4
|
+
import { responded as p, onAuthRequired as i } from "../../config/alova/index.js";
|
|
5
|
+
import { getServiceEndpoint as c, ServiceType as n } from "../../config/index.js";
|
|
6
6
|
import "./implement/index.js";
|
|
7
|
-
const
|
|
8
|
-
baseURL: n
|
|
7
|
+
const s = e({
|
|
8
|
+
baseURL: c(n.Check),
|
|
9
9
|
requestAdapter: o(),
|
|
10
|
-
beforeRequest:
|
|
10
|
+
beforeRequest: i(),
|
|
11
11
|
cacheFor: null,
|
|
12
|
-
responded:
|
|
13
|
-
}), m =
|
|
14
|
-
|
|
12
|
+
responded: p
|
|
13
|
+
}), m = t({}), f = r(s, m);
|
|
14
|
+
a(f);
|
|
15
15
|
export {
|
|
16
16
|
m as $$userConfigMap,
|
|
17
|
-
|
|
17
|
+
s as alovaInstance,
|
|
18
|
+
s as checkAlovaInstance,
|
|
18
19
|
f as default
|
|
19
20
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Patient } from '../patient/patient';
|
|
2
2
|
import { Page, Tag, NetworkObject, Sequence } from '../core/core';
|
|
3
|
-
import { CheckState, PaymentState } from './alova/globals
|
|
3
|
+
import { CheckState, PaymentState } from './alova/globals';
|
|
4
4
|
import { Metas } from '../patient/meta';
|
|
5
5
|
import { Prescription } from '../prescription/prescription';
|
|
6
6
|
import { Doctor } from '../doctor/doctor';
|
|
@@ -30,7 +30,7 @@ export declare abstract class Check extends NetworkObject {
|
|
|
30
30
|
abstract put(): Promise<this>;
|
|
31
31
|
abstract post(): Promise<this>;
|
|
32
32
|
abstract delete(): Promise<void>;
|
|
33
|
-
static query(page: number, pageSize: number, sort: string, patientId?: string, doctorId?: string, startTime?: string, endTime?: string, patientName?: string, patientGender?: string, patientPhoneNumber?: string
|
|
33
|
+
static query(page: number, pageSize: number, sort: string, patientId?: string, doctorId?: string, startTime?: string, endTime?: string, patientName?: string, patientGender?: string, patientPhoneNumber?: string): Promise<Page<Check>>;
|
|
34
34
|
static queryPayment(page: number, pageSize: number, doctorId?: string, patientId?: string, patientName?: string, patientPhone?: string, prescriptionPaymentStatus?: number, outboundStatus?: number): Promise<Page<Payment>>;
|
|
35
35
|
}
|
|
36
36
|
export declare abstract class Payment extends NetworkObject {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Patient as h } from "../patient/patient.js";
|
|
2
|
-
import { NetworkObject as l, Sequence as r, Tag as
|
|
2
|
+
import { NetworkObject as l, Sequence as r, Tag as b } from "../core/core.js";
|
|
3
3
|
import { Metas as m } from "../patient/meta.js";
|
|
4
4
|
import { Prescription as s } from "../prescription/prescription.js";
|
|
5
5
|
import { extractPlainText as c } from "../../util/RichTextUtil.js";
|
|
6
6
|
import { Doctor as f } from "../doctor/doctor.js";
|
|
7
7
|
import "../prescription/index.js";
|
|
8
8
|
import { Builder as S } from "../../../node_modules/builder-pattern/dist/index.js";
|
|
9
|
-
import { Herbal as
|
|
9
|
+
import { Herbal as g } from "../prescription/herbal.js";
|
|
10
10
|
class n extends l {
|
|
11
11
|
static builder() {
|
|
12
12
|
return S(this._default);
|
|
@@ -34,11 +34,11 @@ class n extends l {
|
|
|
34
34
|
constructor() {
|
|
35
35
|
super();
|
|
36
36
|
const t = s.builder().build();
|
|
37
|
-
t.herbals.push(
|
|
37
|
+
t.herbals.push(g.builder().build()), this.prescriptions.data.push(t);
|
|
38
38
|
}
|
|
39
39
|
async of(t) {
|
|
40
40
|
if (t.tagsState != null && (this.tags = await Promise.all(
|
|
41
|
-
t.tagsState.map((i) => new
|
|
41
|
+
t.tagsState.map((i) => new b().of(i))
|
|
42
42
|
)), t.id != null && (this.id = t.id), t.prescriptionsState != null) {
|
|
43
43
|
this.prescriptions = new r();
|
|
44
44
|
const i = JSON.parse(t.prescriptionsState), e = await Promise.all(
|
|
@@ -60,8 +60,19 @@ class n extends l {
|
|
|
60
60
|
(i) => this.metas[i].data.map((e) => e.state())
|
|
61
61
|
), t;
|
|
62
62
|
}
|
|
63
|
-
static query(t, i, e, a, p, d, o, u, T, y
|
|
64
|
-
return n.default().query(
|
|
63
|
+
static query(t, i, e, a, p, d, o, u, T, y) {
|
|
64
|
+
return n.default().query(
|
|
65
|
+
t,
|
|
66
|
+
i,
|
|
67
|
+
e,
|
|
68
|
+
a,
|
|
69
|
+
p,
|
|
70
|
+
d,
|
|
71
|
+
o,
|
|
72
|
+
u,
|
|
73
|
+
T,
|
|
74
|
+
y
|
|
75
|
+
);
|
|
65
76
|
}
|
|
66
77
|
static queryPayment(t, i, e, a, p, d, o, u) {
|
|
67
78
|
return n.default().queryPayment(
|
|
@@ -76,7 +87,7 @@ class n extends l {
|
|
|
76
87
|
);
|
|
77
88
|
}
|
|
78
89
|
}
|
|
79
|
-
class
|
|
90
|
+
class A extends l {
|
|
80
91
|
static builder() {
|
|
81
92
|
return S(this._default);
|
|
82
93
|
}
|
|
@@ -116,5 +127,5 @@ class _ extends l {
|
|
|
116
127
|
}
|
|
117
128
|
export {
|
|
118
129
|
n as Check,
|
|
119
|
-
|
|
130
|
+
A as Payment
|
|
120
131
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { Check as
|
|
2
|
-
import { $$userConfigMap as
|
|
3
|
-
import { AlovaCheck as
|
|
1
|
+
import { Check as o, Payment as n } from "./check.js";
|
|
2
|
+
import { $$userConfigMap as c, alovaInstance as r, alovaInstance as l } from "./alova/index.js";
|
|
3
|
+
import { AlovaCheck as s, AlovaPayment as v } from "./alova/implement/check.js";
|
|
4
4
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
c as $$userConfigMap,
|
|
6
|
+
s as AlovaCheck,
|
|
7
|
+
v as AlovaPayment,
|
|
8
|
+
o as Check,
|
|
9
|
+
n as Payment,
|
|
10
|
+
r as alovaInstance,
|
|
11
|
+
l as checkAlovaInstance
|
|
11
12
|
};
|
|
@@ -14,8 +14,8 @@ const { onAuthRequired: u } = n({
|
|
|
14
14
|
},
|
|
15
15
|
handler: async (t) => {
|
|
16
16
|
if (t.status != 200) throw new Error("登录失败" + await t.text());
|
|
17
|
-
await t.json().then((
|
|
18
|
-
e.setItem("token",
|
|
17
|
+
await t.json().then((r) => {
|
|
18
|
+
e.setItem("token", r.token);
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
21
|
},
|
|
@@ -25,26 +25,26 @@ const { onAuthRequired: u } = n({
|
|
|
25
25
|
if (!e.getItem("token")) return !1;
|
|
26
26
|
const t = i(e.getItem("token"));
|
|
27
27
|
if (t.exp === void 0) return !1;
|
|
28
|
-
const
|
|
29
|
-
return t.exp <
|
|
28
|
+
const r = Date.now() / 1e3;
|
|
29
|
+
return t.exp < r;
|
|
30
30
|
},
|
|
31
31
|
// 当token过期时触发,在此函数中触发刷新token
|
|
32
32
|
handler: async () => (e.removeItem("token"), window.location.href = "登录", await Promise.resolve())
|
|
33
33
|
}
|
|
34
34
|
}), m = {
|
|
35
|
-
onSuccess: async (t,
|
|
35
|
+
onSuccess: async (t, r) => {
|
|
36
36
|
if (t.status == 401) {
|
|
37
|
-
if (
|
|
37
|
+
if (r.meta.Login)
|
|
38
38
|
throw new Error(t.status.toString());
|
|
39
39
|
console.log("未登录"), e.removeItem("token"), window.location.href = process.env.APP_URL;
|
|
40
40
|
}
|
|
41
|
-
if (t.headers.get("Content-Type")
|
|
41
|
+
if (t.headers.get("Content-Type") == "application/octet-stream") return t;
|
|
42
42
|
if (t.status == 200 || t.status == 201 || t.status == 204) {
|
|
43
|
-
const
|
|
43
|
+
const o = await t.text();
|
|
44
44
|
try {
|
|
45
|
-
return JSON.parse(
|
|
45
|
+
return JSON.parse(o);
|
|
46
46
|
} catch {
|
|
47
|
-
return
|
|
47
|
+
return o;
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
}
|
|
@@ -5,6 +5,7 @@ export declare enum ServiceType {
|
|
|
5
5
|
Patient = "Patient",
|
|
6
6
|
Scientist = "Scientist",
|
|
7
7
|
Outpatient = "Outpatient",
|
|
8
|
+
Manager = "Manager",
|
|
8
9
|
Check = "Check",
|
|
9
10
|
Prescription = "Prescription",
|
|
10
11
|
Authorization = "Authorization",
|
|
@@ -12,7 +13,8 @@ export declare enum ServiceType {
|
|
|
12
13
|
PulsationsAlgorithm = "PulsationsAlgorithm",
|
|
13
14
|
InquiriesAlgorithm = "InquiriesAlgorithm",
|
|
14
15
|
LisemsAlgorithm = "LisemsAlgorithm",
|
|
15
|
-
ComprehensiveAlgorithm = "ComprehensiveAlgorithm"
|
|
16
|
+
ComprehensiveAlgorithm = "ComprehensiveAlgorithm",
|
|
17
|
+
User = "User"
|
|
16
18
|
}
|
|
17
19
|
export declare enum EnvironmentType {
|
|
18
20
|
Dev = "Dev",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { onAuthRequired as
|
|
3
|
-
var e = /* @__PURE__ */ ((t) => (t.OAuth = "OAuth", t.OAuthRedirect = "OAuthRedirect", t.Doctor = "Doctor", t.Patient = "Patient", t.Scientist = "Scientist", t.Outpatient = "Outpatient", t.Check = "Check", t.Prescription = "Prescription", t.Authorization = "Authorization", t.InspectionsAlgorithm = "InspectionsAlgorithm", t.PulsationsAlgorithm = "PulsationsAlgorithm", t.InquiriesAlgorithm = "InquiriesAlgorithm", t.LisemsAlgorithm = "LisemsAlgorithm", t.ComprehensiveAlgorithm = "ComprehensiveAlgorithm", t))(e || {}), o = /* @__PURE__ */ ((t) => (t.Dev = "Dev", t.Prod = "Prod", t.Local = "Local", t))(o || {});
|
|
4
|
-
function
|
|
5
|
-
if (
|
|
1
|
+
import s from "../../../node_modules/punycode/punycode.es6.js";
|
|
2
|
+
import { onAuthRequired as c, responded as u } from "./alova/index.js";
|
|
3
|
+
var e = /* @__PURE__ */ ((t) => (t.OAuth = "OAuth", t.OAuthRedirect = "OAuthRedirect", t.Doctor = "Doctor", t.Patient = "Patient", t.Scientist = "Scientist", t.Outpatient = "Outpatient", t.Manager = "Manager", t.Check = "Check", t.Prescription = "Prescription", t.Authorization = "Authorization", t.InspectionsAlgorithm = "InspectionsAlgorithm", t.PulsationsAlgorithm = "PulsationsAlgorithm", t.InquiriesAlgorithm = "InquiriesAlgorithm", t.LisemsAlgorithm = "LisemsAlgorithm", t.ComprehensiveAlgorithm = "ComprehensiveAlgorithm", t.User = "User", t))(e || {}), o = /* @__PURE__ */ ((t) => (t.Dev = "Dev", t.Prod = "Prod", t.Local = "Local", t))(o || {});
|
|
4
|
+
function n(t, r) {
|
|
5
|
+
if (r == null && (s.toUnicode(window.location.hostname).includes("测试") ? r = "Dev" : (window.location.hostname.includes("localhost") || window.location.hostname.includes("127.0.0.1"), r = "Prod")), r == "Prod")
|
|
6
6
|
switch (t) {
|
|
7
7
|
case "OAuth":
|
|
8
8
|
return "https://用户.仪联中.中国";
|
|
@@ -32,8 +32,12 @@ function h(t, s) {
|
|
|
32
32
|
return "https://中医.仪联中.中国/闻诊/算法";
|
|
33
33
|
case "ComprehensiveAlgorithm":
|
|
34
34
|
return "https://中医.仪联中.中国/四诊合参/算法";
|
|
35
|
+
case "Manager":
|
|
36
|
+
return "https://中医.仪联中.中国/管理/服务";
|
|
37
|
+
case "User":
|
|
38
|
+
return "https://用户.仪联中.中国/用户/服务";
|
|
35
39
|
}
|
|
36
|
-
else if (
|
|
40
|
+
else if (r == "Dev")
|
|
37
41
|
switch (t) {
|
|
38
42
|
case "OAuth":
|
|
39
43
|
return "https://用户测试.仪联中.中国";
|
|
@@ -63,8 +67,12 @@ function h(t, s) {
|
|
|
63
67
|
return "https://中医测试.仪联中.中国/闻诊/算法";
|
|
64
68
|
case "ComprehensiveAlgorithm":
|
|
65
69
|
return "https://中医测试.仪联中.中国/四诊合参/算法";
|
|
70
|
+
case "Manager":
|
|
71
|
+
return "https://中医测试.仪联中.中国/管理/服务";
|
|
72
|
+
case "User":
|
|
73
|
+
return "https://用户测试.仪联中.中国/用户/服务";
|
|
66
74
|
}
|
|
67
|
-
else if (
|
|
75
|
+
else if (r == "Local")
|
|
68
76
|
switch (t) {
|
|
69
77
|
case "OAuth":
|
|
70
78
|
return "http://localhost:8080";
|
|
@@ -94,13 +102,17 @@ function h(t, s) {
|
|
|
94
102
|
return "http://localhost:8080";
|
|
95
103
|
case "ComprehensiveAlgorithm":
|
|
96
104
|
return "http://localhost:8080";
|
|
105
|
+
case "Manager":
|
|
106
|
+
return "http://localhost:8080";
|
|
107
|
+
case "User":
|
|
108
|
+
return "http://localhost:9090";
|
|
97
109
|
}
|
|
98
110
|
throw new Error("环境错误");
|
|
99
111
|
}
|
|
100
112
|
export {
|
|
101
113
|
o as EnvironmentType,
|
|
102
114
|
e as ServiceType,
|
|
103
|
-
|
|
104
|
-
|
|
115
|
+
n as getServiceEndpoint,
|
|
116
|
+
c as onAuthRequired,
|
|
105
117
|
u as responded
|
|
106
118
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare const alovaInstance: import('alova').Alova<import('alova').AlovaGenerics<any, any, import('alova/fetch').FetchRequestInit, Response, Headers, any, any, any>>;
|
|
2
2
|
export declare const $$userConfigMap: {};
|
|
3
|
+
export { alovaInstance as doctorAlovaInstance };
|
|
3
4
|
declare const Apis: doctorApi;
|
|
4
5
|
export default Apis;
|
|
5
6
|
export * from './implement';
|
|
6
|
-
export type * from './globals
|
|
7
|
+
export type * from './globals';
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { createAlova as e } from "../../../../node_modules/alova/dist/alova.esm.js";
|
|
2
2
|
import o from "../../../../node_modules/alova/dist/adapter/fetch.esm.js";
|
|
3
|
-
import { withConfigType as
|
|
4
|
-
import { responded as
|
|
3
|
+
import { withConfigType as t, createApis as r, mountApis as a } from "./createApis.js";
|
|
4
|
+
import { responded as p, onAuthRequired as i } from "../../config/alova/index.js";
|
|
5
5
|
import { getServiceEndpoint as n, ServiceType as s } from "../../config/index.js";
|
|
6
6
|
import "./implement/index.js";
|
|
7
7
|
const c = e({
|
|
8
8
|
baseURL: n(s.Doctor),
|
|
9
9
|
requestAdapter: o(),
|
|
10
|
-
beforeRequest:
|
|
10
|
+
beforeRequest: i(() => {
|
|
11
11
|
}),
|
|
12
12
|
cacheFor: null,
|
|
13
|
-
responded:
|
|
14
|
-
}), m =
|
|
15
|
-
|
|
13
|
+
responded: p
|
|
14
|
+
}), m = t({}), f = r(c, m);
|
|
15
|
+
a(f);
|
|
16
16
|
export {
|
|
17
17
|
m as $$userConfigMap,
|
|
18
18
|
c as alovaInstance,
|
|
19
|
-
f as default
|
|
19
|
+
f as default,
|
|
20
|
+
c as doctorAlovaInstance
|
|
20
21
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NetworkObject } from '../core/core';
|
|
2
|
-
import { DoctorState } from './alova/globals
|
|
2
|
+
import { DoctorState } from './alova/globals';
|
|
3
3
|
import { IBuilder } from 'builder-pattern';
|
|
4
4
|
export declare abstract class Doctor extends NetworkObject {
|
|
5
5
|
static builder(): IBuilder<Doctor>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { Doctor as
|
|
2
|
-
import { $$userConfigMap as e, alovaInstance as
|
|
3
|
-
import { AlovaDoctor as
|
|
1
|
+
import { Doctor as r } from "./doctor.js";
|
|
2
|
+
import { $$userConfigMap as e, alovaInstance as n, alovaInstance as c } from "./alova/index.js";
|
|
3
|
+
import { AlovaDoctor as f } from "./alova/implement/doctor.js";
|
|
4
4
|
export {
|
|
5
5
|
e as $$userConfigMap,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
f as AlovaDoctor,
|
|
7
|
+
r as Doctor,
|
|
8
|
+
n as alovaInstance,
|
|
9
|
+
c as doctorAlovaInstance
|
|
9
10
|
};
|
package/dist/src/api/index.d.ts
CHANGED
package/dist/src/api/index.js
CHANGED
|
@@ -11,6 +11,7 @@ import * as x from "./prescription/index.js";
|
|
|
11
11
|
import * as n from "./scientist/index.js";
|
|
12
12
|
import * as A from "./device/device.js";
|
|
13
13
|
import * as f from "./core/index.js";
|
|
14
|
+
import * as d from "./manager/index.js";
|
|
14
15
|
export {
|
|
15
16
|
i as AlgorithmApi,
|
|
16
17
|
o as AuthorizationApi,
|
|
@@ -19,6 +20,7 @@ export {
|
|
|
19
20
|
f as CoreApi,
|
|
20
21
|
A as DeviceApi,
|
|
21
22
|
t as DoctorApi,
|
|
23
|
+
d as ManagerApi,
|
|
22
24
|
e as MetricApi,
|
|
23
25
|
a as OAuthApi,
|
|
24
26
|
s as OutPatientApi,
|