web-core-tcm 0.0.67 → 0.0.72
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 +6 -10
- package/dist/src/api/algorithm/pulsationsAlgorithm.js +1 -1
- package/dist/src/api/authorization/alova/index.d.ts +3 -2
- package/dist/src/api/authorization/alova/index.js +16 -13
- package/dist/src/api/authorization/authorization.d.ts +1 -1
- package/dist/src/api/authorization/index.js +9 -6
- package/dist/src/api/check/alova/implement/check.d.ts +1 -1
- package/dist/src/api/check/alova/implement/check.js +18 -19
- package/dist/src/api/check/alova/index.d.ts +1 -2
- package/dist/src/api/check/alova/index.js +10 -11
- package/dist/src/api/check/check.d.ts +2 -2
- package/dist/src/api/check/check.js +8 -19
- package/dist/src/api/check/index.js +9 -10
- package/dist/src/api/config/alova/index.js +10 -10
- package/dist/src/api/config/index.d.ts +0 -1
- package/dist/src/api/config/index.js +9 -15
- package/dist/src/api/core/core.d.ts +1 -1
- package/dist/src/api/doctor/alova/index.d.ts +1 -2
- package/dist/src/api/doctor/alova/index.js +7 -8
- package/dist/src/api/doctor/doctor.d.ts +1 -1
- package/dist/src/api/doctor/index.js +6 -7
- package/dist/src/api/index.d.ts +0 -1
- package/dist/src/api/index.js +0 -2
- 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 +1 -2
- package/dist/src/api/oauth/alova/index.js +11 -12
- package/dist/src/api/oauth/index.js +5 -6
- package/dist/src/api/outpatient/alova/index.d.ts +1 -2
- package/dist/src/api/outpatient/alova/index.js +10 -11
- package/dist/src/api/outpatient/index.js +9 -10
- 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 +1 -2
- package/dist/src/api/patient/alova/index.js +10 -11
- package/dist/src/api/patient/index.js +26 -27
- 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 +1 -0
- package/dist/src/api/prescription/alova/implement/prescription.js +17 -9
- package/dist/src/api/prescription/alova/index.d.ts +1 -2
- package/dist/src/api/prescription/alova/index.js +1 -2
- package/dist/src/api/prescription/herbal.d.ts +1 -1
- package/dist/src/api/prescription/index.js +11 -12
- package/dist/src/api/prescription/prescription.d.ts +2 -1
- package/dist/src/api/prescription/prescription.js +12 -9
- package/dist/src/api/scientist/alova/index.d.ts +1 -2
- package/dist/src/api/scientist/alova/index.js +5 -6
- package/dist/src/api/scientist/index.js +7 -8
- package/dist/src/api/scientist/scientist.d.ts +1 -1
- package/dist/src/components/tcm/inquirise/ComplaintViewCollected.vue.d.ts +3 -14
- package/dist/src/components/tcm/inquirise/ComplaintViewCollected.vue.js +2 -2
- package/dist/src/components/tcm/inquirise/ComplaintViewCollected.vue2.js +129 -117
- package/dist/src/components/tcm/inquirise/ComplaintsRecognitionCollected.vue.d.ts +3 -14
- package/dist/src/components/tcm/inquirise/ComplaintsRecognitionCollected.vue.js +2 -2
- package/dist/src/components/tcm/inquirise/ComplaintsRecognitionCollected.vue2.js +139 -123
- 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 +54 -51
- package/dist/src/index.js +40 -42
- package/dist/web-core-tcm.css +1 -1
- package/package.json +1 -6
- package/dist/src/api/manager/alova/apiDefinitions.d.ts +0 -62
- package/dist/src/api/manager/alova/apiDefinitions.js +0 -50
- package/dist/src/api/manager/alova/createApis.d.ts +0 -10
- package/dist/src/api/manager/alova/createApis.js +0 -49
- package/dist/src/api/manager/alova/globals.d.ts +0 -4890
- package/dist/src/api/manager/alova/implement/department.d.ts +0 -15
- package/dist/src/api/manager/alova/implement/department.js +0 -71
- package/dist/src/api/manager/alova/implement/division.d.ts +0 -15
- package/dist/src/api/manager/alova/implement/division.js +0 -71
- package/dist/src/api/manager/alova/implement/hospital.d.ts +0 -15
- package/dist/src/api/manager/alova/implement/hospital.js +0 -72
- package/dist/src/api/manager/alova/implement/index.d.ts +0 -3
- package/dist/src/api/manager/alova/implement/index.js +0 -8
- package/dist/src/api/manager/alova/index.d.ts +0 -7
- package/dist/src/api/manager/alova/index.js +0 -20
- package/dist/src/api/manager/department.d.ts +0 -23
- package/dist/src/api/manager/department.js +0 -49
- package/dist/src/api/manager/division.d.ts +0 -23
- package/dist/src/api/manager/division.js +0 -44
- package/dist/src/api/manager/hospital.d.ts +0 -24
- package/dist/src/api/manager/hospital.js +0 -51
- package/dist/src/api/manager/index.d.ts +0 -4
- package/dist/src/api/manager/index.js +0 -18
|
@@ -2,17 +2,13 @@ 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("/特征参数",
|
|
7
|
-
transform(t) {
|
|
8
|
-
return t.json();
|
|
9
|
-
}
|
|
10
|
-
}).send();
|
|
5
|
+
static analysisLisems(t) {
|
|
6
|
+
return s.Post("/特征参数", t, {}).send();
|
|
11
7
|
}
|
|
12
|
-
static getFrequencyDomainDiagram(
|
|
13
|
-
return s.Post("/频域图", JSON.stringify(
|
|
14
|
-
async transform(
|
|
15
|
-
const e = await
|
|
8
|
+
static getFrequencyDomainDiagram(t) {
|
|
9
|
+
return s.Post("/频域图", JSON.stringify(t), {
|
|
10
|
+
async transform(r) {
|
|
11
|
+
const e = await r.blob();
|
|
16
12
|
return URL.createObjectURL(e);
|
|
17
13
|
}
|
|
18
14
|
}).send();
|
|
@@ -1,7 +1,8 @@
|
|
|
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 };
|
|
4
3
|
declare const Apis: authorizeApi;
|
|
5
4
|
export default Apis;
|
|
6
5
|
export * from './implement';
|
|
7
|
-
export type * from './globals';
|
|
6
|
+
export type * from './globals.d.ts';
|
|
7
|
+
export * from './createApis';
|
|
8
|
+
export * from './apiDefinitions';
|
|
@@ -1,20 +1,23 @@
|
|
|
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 i } from "./createApis.js";
|
|
4
|
+
import { responded as p, onAuthRequired as a } from "../../config/alova/index.js";
|
|
5
|
+
import { getServiceEndpoint as n, ServiceType as m } from "../../config/index.js";
|
|
6
6
|
import "./implement/index.js";
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
import "./apiDefinitions.js";
|
|
8
|
+
const s = e({
|
|
9
|
+
baseURL: n(m.Authorization),
|
|
9
10
|
requestAdapter: o(),
|
|
10
|
-
beforeRequest:
|
|
11
|
+
beforeRequest: a(),
|
|
11
12
|
cacheFor: null,
|
|
12
|
-
responded:
|
|
13
|
-
}),
|
|
14
|
-
|
|
13
|
+
responded: p
|
|
14
|
+
}), c = t({}), f = r(s, c);
|
|
15
|
+
i(f);
|
|
15
16
|
export {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
c as $$userConfigMap,
|
|
18
|
+
s as alovaInstance,
|
|
19
|
+
r as createApis,
|
|
20
|
+
f as default,
|
|
21
|
+
i as mountApis,
|
|
22
|
+
t as withConfigType
|
|
20
23
|
};
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { Authorization as t } from "./authorization.js";
|
|
2
|
-
import { $$userConfigMap as
|
|
3
|
-
import { AlovaAuthorization as
|
|
2
|
+
import { $$userConfigMap as i, alovaInstance as a } from "./alova/index.js";
|
|
3
|
+
import { AlovaAuthorization as n } from "./alova/implement/authorization.js";
|
|
4
|
+
import { createApis as m, mountApis as A, withConfigType as s } from "./alova/createApis.js";
|
|
4
5
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
i as $$userConfigMap,
|
|
7
|
+
n as AlovaAuthorization,
|
|
7
8
|
t as Authorization,
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
a as alovaInstance,
|
|
10
|
+
m as createApis,
|
|
11
|
+
A as mountApis,
|
|
12
|
+
s as withConfigType
|
|
10
13
|
};
|
|
@@ -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): Promise<{
|
|
7
|
+
static query(page: number, pageSize: number, sort: string, patientId?: string, doctorId?: string, startTime?: string, endTime?: string, patientName?: string, patientGender?: string, patientPhoneNumber?: string, patientMainSymptom?: 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 k, Payment as m } from "../../check.js";
|
|
2
|
+
class p extends k {
|
|
3
3
|
async get() {
|
|
4
4
|
return this.of(
|
|
5
5
|
await checkApi.checkStateRestful.getCheckState({
|
|
@@ -7,7 +7,7 @@ class l extends d {
|
|
|
7
7
|
id: this.id
|
|
8
8
|
},
|
|
9
9
|
async transform(t) {
|
|
10
|
-
return new
|
|
10
|
+
return new p().of(t);
|
|
11
11
|
}
|
|
12
12
|
}).send()
|
|
13
13
|
);
|
|
@@ -36,25 +36,24 @@ class l extends d {
|
|
|
36
36
|
}
|
|
37
37
|
}).send(), Promise.resolve();
|
|
38
38
|
}
|
|
39
|
-
static query(t,
|
|
39
|
+
static query(t, o, u, s, c, r, i, n, e, l, h) {
|
|
40
40
|
return checkApi.checkStateRestful.queryCheckState({
|
|
41
41
|
params: {
|
|
42
42
|
...s && { patientId: s },
|
|
43
43
|
...c && { doctorId: c },
|
|
44
|
-
...
|
|
45
|
-
...
|
|
44
|
+
...r && { startTime: r },
|
|
45
|
+
...i && { endTime: i },
|
|
46
46
|
...n && { patientName: n },
|
|
47
47
|
...e && { patientGender: e },
|
|
48
|
-
...
|
|
49
|
-
|
|
48
|
+
...l && { patientPhoneNumber: l },
|
|
49
|
+
...h && { patientMainSymptom: h },
|
|
50
|
+
pageSize: o,
|
|
50
51
|
page: t,
|
|
51
52
|
sort: u
|
|
52
53
|
},
|
|
53
54
|
async transform(a) {
|
|
54
55
|
return {
|
|
55
|
-
data: await Promise.all(
|
|
56
|
-
a.content.map((p) => new l().of(p))
|
|
57
|
-
),
|
|
56
|
+
data: await Promise.all(a.content.map((d) => new p().of(d))),
|
|
58
57
|
total: a.totalElements,
|
|
59
58
|
page: a.number,
|
|
60
59
|
pageSize: a.size,
|
|
@@ -64,22 +63,22 @@ class l extends d {
|
|
|
64
63
|
}
|
|
65
64
|
}).send();
|
|
66
65
|
}
|
|
67
|
-
static queryPayment(t,
|
|
66
|
+
static queryPayment(t, o, u, s, c, r, i, n) {
|
|
68
67
|
return checkApi.checkStateRestful.queryPaymentState({
|
|
69
68
|
params: {
|
|
70
69
|
...u && { doctorId: u },
|
|
71
70
|
...s && { patientId: s },
|
|
72
71
|
...c && { patientName: c },
|
|
73
|
-
...
|
|
74
|
-
...
|
|
72
|
+
...r && { patientPhone: r },
|
|
73
|
+
...i && { prescriptionPaymentStatus: i },
|
|
75
74
|
...n && { outboundStatus: n },
|
|
76
|
-
pageSize:
|
|
75
|
+
pageSize: o,
|
|
77
76
|
page: t
|
|
78
77
|
},
|
|
79
78
|
async transform(e) {
|
|
80
79
|
return {
|
|
81
80
|
data: await Promise.all(
|
|
82
|
-
e.content.map((
|
|
81
|
+
e.content.map((h) => new S().of(h))
|
|
83
82
|
),
|
|
84
83
|
total: e.totalElements,
|
|
85
84
|
page: e.number,
|
|
@@ -91,7 +90,7 @@ class l extends d {
|
|
|
91
90
|
}).send();
|
|
92
91
|
}
|
|
93
92
|
}
|
|
94
|
-
class
|
|
93
|
+
class S extends m {
|
|
95
94
|
async putOutboundStatus(t) {
|
|
96
95
|
return this.outboundStatus = t, await checkApi.checkStateRestful.putCheckState({
|
|
97
96
|
pathParams: {
|
|
@@ -114,6 +113,6 @@ class k extends m {
|
|
|
114
113
|
}
|
|
115
114
|
}
|
|
116
115
|
export {
|
|
117
|
-
|
|
118
|
-
|
|
116
|
+
p as AlovaCheck,
|
|
117
|
+
S as AlovaPayment
|
|
119
118
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
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 };
|
|
3
2
|
export declare const $$userConfigMap: {};
|
|
4
3
|
declare const Apis: checkApi;
|
|
5
4
|
export default Apis;
|
|
6
5
|
export * from './implement';
|
|
7
|
-
export type * from './globals';
|
|
6
|
+
export type * from './globals.d.ts';
|
|
@@ -1,20 +1,19 @@
|
|
|
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 r, createApis as t, mountApis as p } from "./createApis.js";
|
|
4
|
+
import { responded as i, onAuthRequired as a } from "../../config/alova/index.js";
|
|
5
|
+
import { getServiceEndpoint as n, ServiceType as s } from "../../config/index.js";
|
|
6
6
|
import "./implement/index.js";
|
|
7
|
-
const
|
|
8
|
-
baseURL:
|
|
7
|
+
const c = e({
|
|
8
|
+
baseURL: n(s.Check),
|
|
9
9
|
requestAdapter: o(),
|
|
10
|
-
beforeRequest:
|
|
10
|
+
beforeRequest: a(),
|
|
11
11
|
cacheFor: null,
|
|
12
|
-
responded:
|
|
13
|
-
}), m =
|
|
14
|
-
|
|
12
|
+
responded: i
|
|
13
|
+
}), m = r({}), f = t(c, m);
|
|
14
|
+
p(f);
|
|
15
15
|
export {
|
|
16
16
|
m as $$userConfigMap,
|
|
17
|
-
|
|
18
|
-
s as checkAlovaInstance,
|
|
17
|
+
c as alovaInstance,
|
|
19
18
|
f as default
|
|
20
19
|
};
|
|
@@ -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.d.ts';
|
|
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): Promise<Page<Check>>;
|
|
33
|
+
static query(page: number, pageSize: number, sort: string, patientId?: string, doctorId?: string, startTime?: string, endTime?: string, patientName?: string, patientGender?: string, patientPhoneNumber?: string, patientMainSymptom?: 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 g } 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 P } 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(P.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 g().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,19 +60,8 @@ 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(
|
|
65
|
-
t,
|
|
66
|
-
i,
|
|
67
|
-
e,
|
|
68
|
-
a,
|
|
69
|
-
p,
|
|
70
|
-
d,
|
|
71
|
-
o,
|
|
72
|
-
u,
|
|
73
|
-
T,
|
|
74
|
-
y
|
|
75
|
-
);
|
|
63
|
+
static query(t, i, e, a, p, d, o, u, T, y, b) {
|
|
64
|
+
return n.default().query(t, i, e, a, p, d, o, u, T, y, b);
|
|
76
65
|
}
|
|
77
66
|
static queryPayment(t, i, e, a, p, d, o, u) {
|
|
78
67
|
return n.default().queryPayment(
|
|
@@ -87,7 +76,7 @@ class n extends l {
|
|
|
87
76
|
);
|
|
88
77
|
}
|
|
89
78
|
}
|
|
90
|
-
class
|
|
79
|
+
class _ extends l {
|
|
91
80
|
static builder() {
|
|
92
81
|
return S(this._default);
|
|
93
82
|
}
|
|
@@ -127,5 +116,5 @@ class A extends l {
|
|
|
127
116
|
}
|
|
128
117
|
export {
|
|
129
118
|
n as Check,
|
|
130
|
-
|
|
119
|
+
_ as Payment
|
|
131
120
|
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { Check as
|
|
2
|
-
import { $$userConfigMap as
|
|
3
|
-
import { AlovaCheck as
|
|
1
|
+
import { Check as a, Payment as r } from "./check.js";
|
|
2
|
+
import { $$userConfigMap as m, alovaInstance as n } from "./alova/index.js";
|
|
3
|
+
import { AlovaCheck as p, AlovaPayment as c } from "./alova/implement/check.js";
|
|
4
4
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
l as checkAlovaInstance
|
|
5
|
+
m as $$userConfigMap,
|
|
6
|
+
p as AlovaCheck,
|
|
7
|
+
c as AlovaPayment,
|
|
8
|
+
a as Check,
|
|
9
|
+
r as Payment,
|
|
10
|
+
n as alovaInstance
|
|
12
11
|
};
|
|
@@ -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((o) => {
|
|
18
|
+
e.setItem("token", o.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 o = Date.now() / 1e3;
|
|
29
|
+
return t.exp < o;
|
|
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, o) => {
|
|
36
36
|
if (t.status == 401) {
|
|
37
|
-
if (
|
|
37
|
+
if (o.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/json") return t;
|
|
42
42
|
if (t.status == 200 || t.status == 201 || t.status == 204) {
|
|
43
|
-
const
|
|
43
|
+
const r = await t.text();
|
|
44
44
|
try {
|
|
45
|
-
return JSON.parse(
|
|
45
|
+
return JSON.parse(r);
|
|
46
46
|
} catch {
|
|
47
|
-
return
|
|
47
|
+
return r;
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
}
|
|
@@ -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.
|
|
4
|
-
function
|
|
5
|
-
if (
|
|
1
|
+
import r from "../../../node_modules/punycode/punycode.es6.js";
|
|
2
|
+
import { onAuthRequired as a, 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.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 h(t, s) {
|
|
5
|
+
if (s == null && (r.toUnicode(window.location.hostname).includes("测试") ? s = "Dev" : (window.location.hostname.includes("localhost") || window.location.hostname.includes("127.0.0.1"), s = "Prod")), s == "Prod")
|
|
6
6
|
switch (t) {
|
|
7
7
|
case "OAuth":
|
|
8
8
|
return "https://用户.仪联中.中国";
|
|
@@ -32,10 +32,8 @@ function n(t, r) {
|
|
|
32
32
|
return "https://中医.仪联中.中国/闻诊/算法";
|
|
33
33
|
case "ComprehensiveAlgorithm":
|
|
34
34
|
return "https://中医.仪联中.中国/四诊合参/算法";
|
|
35
|
-
case "Manager":
|
|
36
|
-
return "https://中医.仪联中.中国/管理/服务";
|
|
37
35
|
}
|
|
38
|
-
else if (
|
|
36
|
+
else if (s == "Dev")
|
|
39
37
|
switch (t) {
|
|
40
38
|
case "OAuth":
|
|
41
39
|
return "https://用户测试.仪联中.中国";
|
|
@@ -65,10 +63,8 @@ function n(t, r) {
|
|
|
65
63
|
return "https://中医测试.仪联中.中国/闻诊/算法";
|
|
66
64
|
case "ComprehensiveAlgorithm":
|
|
67
65
|
return "https://中医测试.仪联中.中国/四诊合参/算法";
|
|
68
|
-
case "Manager":
|
|
69
|
-
return "https://中医测试.仪联中.中国/管理/服务";
|
|
70
66
|
}
|
|
71
|
-
else if (
|
|
67
|
+
else if (s == "Local")
|
|
72
68
|
switch (t) {
|
|
73
69
|
case "OAuth":
|
|
74
70
|
return "http://localhost:8080";
|
|
@@ -98,15 +94,13 @@ function n(t, r) {
|
|
|
98
94
|
return "http://localhost:8080";
|
|
99
95
|
case "ComprehensiveAlgorithm":
|
|
100
96
|
return "http://localhost:8080";
|
|
101
|
-
case "Manager":
|
|
102
|
-
return "http://localhost:8080";
|
|
103
97
|
}
|
|
104
98
|
throw new Error("环境错误");
|
|
105
99
|
}
|
|
106
100
|
export {
|
|
107
101
|
o as EnvironmentType,
|
|
108
102
|
e as ServiceType,
|
|
109
|
-
|
|
110
|
-
|
|
103
|
+
h as getServiceEndpoint,
|
|
104
|
+
a as onAuthRequired,
|
|
111
105
|
u as responded
|
|
112
106
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
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 };
|
|
4
3
|
declare const Apis: doctorApi;
|
|
5
4
|
export default Apis;
|
|
6
5
|
export * from './implement';
|
|
7
|
-
export type * from './globals';
|
|
6
|
+
export type * from './globals.d.ts';
|
|
@@ -1,21 +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
|
|
3
|
+
import { withConfigType as r, createApis as t, mountApis as p } from "./createApis.js";
|
|
4
|
+
import { responded as i, onAuthRequired as a } 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: a(() => {
|
|
11
11
|
}),
|
|
12
12
|
cacheFor: null,
|
|
13
|
-
responded:
|
|
14
|
-
}), m =
|
|
15
|
-
|
|
13
|
+
responded: i
|
|
14
|
+
}), m = r({}), f = t(c, m);
|
|
15
|
+
p(f);
|
|
16
16
|
export {
|
|
17
17
|
m as $$userConfigMap,
|
|
18
18
|
c as alovaInstance,
|
|
19
|
-
f as default
|
|
20
|
-
c as doctorAlovaInstance
|
|
19
|
+
f as default
|
|
21
20
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NetworkObject } from '../core/core';
|
|
2
|
-
import { DoctorState } from './alova/globals';
|
|
2
|
+
import { DoctorState } from './alova/globals.d.ts';
|
|
3
3
|
import { IBuilder } from 'builder-pattern';
|
|
4
4
|
export declare abstract class Doctor extends NetworkObject {
|
|
5
5
|
static builder(): IBuilder<Doctor>;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { Doctor as
|
|
2
|
-
import { $$userConfigMap as e, alovaInstance as
|
|
3
|
-
import { AlovaDoctor as
|
|
1
|
+
import { Doctor as t } from "./doctor.js";
|
|
2
|
+
import { $$userConfigMap as e, alovaInstance as f } from "./alova/index.js";
|
|
3
|
+
import { AlovaDoctor as c } from "./alova/implement/doctor.js";
|
|
4
4
|
export {
|
|
5
5
|
e as $$userConfigMap,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
c as doctorAlovaInstance
|
|
6
|
+
c as AlovaDoctor,
|
|
7
|
+
t as Doctor,
|
|
8
|
+
f as alovaInstance
|
|
10
9
|
};
|
package/dist/src/api/index.d.ts
CHANGED
package/dist/src/api/index.js
CHANGED
|
@@ -11,7 +11,6 @@ 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";
|
|
15
14
|
export {
|
|
16
15
|
i as AlgorithmApi,
|
|
17
16
|
o as AuthorizationApi,
|
|
@@ -20,7 +19,6 @@ export {
|
|
|
20
19
|
f as CoreApi,
|
|
21
20
|
A as DeviceApi,
|
|
22
21
|
t as DoctorApi,
|
|
23
|
-
d as ManagerApi,
|
|
24
22
|
e as MetricApi,
|
|
25
23
|
a as OAuthApi,
|
|
26
24
|
s as OutPatientApi,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MetaType } from '../../../patient/meta';
|
|
2
2
|
import { Metric } from '../../metric';
|
|
3
|
-
import { AgeDistribute, DateDistribute, GenderDistribute } from '../../../patient/alova/globals';
|
|
3
|
+
import { AgeDistribute, DateDistribute, GenderDistribute } from '../../../patient/alova/globals.d.ts';
|
|
4
4
|
export declare class AlovaMetric extends Metric {
|
|
5
5
|
static getPatientTodayCount(): Promise<number>;
|
|
6
6
|
static getPatientTotalCount(): Promise<number>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MetaType } from '../patient/meta';
|
|
2
2
|
import { IBuilder } from 'builder-pattern';
|
|
3
|
-
import { DateDistribute } from '../patient/alova/globals';
|
|
4
|
-
import { AgeDistribute, GenderDistribute } from '../check/alova/globals';
|
|
3
|
+
import { DateDistribute } from '../patient/alova/globals.d.ts';
|
|
4
|
+
import { AgeDistribute, GenderDistribute } from '../check/alova/globals.d.ts';
|
|
5
5
|
export declare class Metric {
|
|
6
6
|
static _default: typeof Metric;
|
|
7
7
|
static builder(): IBuilder<unknown>;
|
|
@@ -1,19 +1,18 @@
|
|
|
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 p } from "./createApis.js";
|
|
4
|
+
import { responded as i } from "../../config/alova/index.js";
|
|
5
|
+
import { getServiceEndpoint as a, ServiceType as m } from "../../config/index.js";
|
|
6
6
|
import "./implement/index.js";
|
|
7
|
-
const
|
|
8
|
-
baseURL:
|
|
7
|
+
const n = e({
|
|
8
|
+
baseURL: a(m.OAuth),
|
|
9
9
|
requestAdapter: o(),
|
|
10
10
|
cacheFor: null,
|
|
11
|
-
responded:
|
|
12
|
-
}),
|
|
13
|
-
|
|
11
|
+
responded: i
|
|
12
|
+
}), s = t({}), c = r(n, s);
|
|
13
|
+
p(c);
|
|
14
14
|
export {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
s as oauthAlovaInstance
|
|
15
|
+
s as $$userConfigMap,
|
|
16
|
+
n as alovaInstance,
|
|
17
|
+
c as default
|
|
19
18
|
};
|