@ningboyz/types 1.0.6 → 1.0.8
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/index.ts +27 -18
- package/package.json +1 -2
- package/src/app/ITab.ts +8 -0
- package/src/app/IUserData.ts +5 -0
- package/src/app/index.ts +3 -5
- package/src/base/IBaseResponse.ts +4 -2
- package/src/card/ICardMainResponse.ts +368 -0
- package/src/card/IGblbResponse.ts +74 -0
- package/src/card/IZcbdResponse.ts +106 -0
- package/src/card/IZccfResponse.ts +87 -0
- package/src/card/IZcczResponse.ts +83 -0
- package/src/card/IZcdbResponse.ts +83 -0
- package/src/card/index.ts +21 -0
- package/src/conf/ICnfgMainResponse.ts +83 -0
- package/src/conf/IConfig.ts +6 -0
- package/src/conf/index.ts +3 -0
- package/src/const/const_align.ts +0 -1
- package/src/const/const_stat.ts +1 -7
- package/src/const/const_type_name.ts +1 -0
- package/src/core/IDeptResponse.ts +4 -0
- package/src/core/IDictResponse.ts +14 -0
- package/src/core/IDictResponseDictPara.ts +10 -2
- package/src/core/ILaidResponse.ts +5 -0
- package/src/core/ITypeResponse.ts +12 -0
- package/src/core/IUnitResponse.ts +3 -0
- package/src/core/IUnitResponseElemPara.ts +2 -6
- package/src/core/IUserResponse.ts +2 -2
- package/src/core/index.ts +17 -17
- package/src/enums/btnMode.ts +19 -0
- package/src/enums/cardMode.ts +27 -0
- package/src/enums/index.ts +3 -1
- package/src/flow/IFlowDutyNodeParaConv.ts +1 -1
- package/src/flow/IFlowTypeResponse.ts +2 -6
- package/src/flow/index.ts +5 -6
- package/src/gams/index.ts +1 -5
- package/src/gzjg/IGzjgGzlmResponse.ts +7 -3
- package/src/gzjg/index.ts +5 -6
- package/src/load/IYqdwResponse.ts +65 -0
- package/src/load/IYqkbResponse.ts +65 -0
- package/src/load/IYqkmResponse.ts +49 -0
- package/src/load/index.ts +5 -0
- package/src/micro/appData.ts +29 -0
- package/src/micro/appName.ts +6 -0
- package/src/micro/appTab.ts +15 -0
- package/src/micro/index.ts +6 -0
- package/src/pzpt/IPzptCnfgResponse.ts +6 -0
- package/src/pzpt/IPzptK8kmResponse.ts +7 -4
- package/src/pzpt/IPzptTypeResponse.ts +4 -0
- package/src/pzpt/index.ts +7 -8
- package/src/store/index.ts +3 -1
- package/src/store/tabsState.ts +1 -1
- package/src/store/viewState.ts +5 -1
- package/src/tabl/index.ts +1 -9
- package/src/wldy/IWldyDataResponse.ts +6 -0
- package/src/wldy/IWldyPageParaResponse.ts +42 -0
- package/src/wldy/IWldyPageResponse.ts +22 -0
- package/src/wldy/index.ts +10 -5
- package/src/wlzf/index.ts +1 -5
- package/src/wtui/IViewCtrlResponse.ts +3 -2
- package/src/wtui/index.ts +1 -11
package/src/flow/index.ts
CHANGED
|
@@ -5,12 +5,11 @@ import { IFlowVoidResponse, TFlowVoidResponse } from "./IFlowVoidResponse";
|
|
|
5
5
|
import { IFlowTypeResponse, TFlowTypeResponse } from "./IFlowTypeResponse";
|
|
6
6
|
|
|
7
7
|
export {
|
|
8
|
-
IFlowDutyResponse,
|
|
9
|
-
IFlowMainResponse,
|
|
10
|
-
IFlowTypeResponse,
|
|
11
|
-
IFlowNodeResponse,
|
|
12
|
-
IFlowVoidResponse,
|
|
13
|
-
|
|
8
|
+
type IFlowDutyResponse,
|
|
9
|
+
type IFlowMainResponse,
|
|
10
|
+
type IFlowTypeResponse,
|
|
11
|
+
type IFlowNodeResponse,
|
|
12
|
+
type IFlowVoidResponse,
|
|
14
13
|
TFlowDutyResponse,
|
|
15
14
|
TFlowMainResponse,
|
|
16
15
|
TFlowTypeResponse,
|
package/src/gams/index.ts
CHANGED
|
@@ -9,7 +9,7 @@ export interface IGzjgGzlmResponse {
|
|
|
9
9
|
gzjgIndx: number;
|
|
10
10
|
gzlmFlid: number;
|
|
11
11
|
parentID: number;
|
|
12
|
-
parentCD: string;
|
|
12
|
+
parentCD: string | undefined;
|
|
13
13
|
dataLevl: number;
|
|
14
14
|
dataStat: number;
|
|
15
15
|
dataHide: number;
|
|
@@ -66,15 +66,19 @@ export interface IGzjgGzlmResponse {
|
|
|
66
66
|
|
|
67
67
|
dynamicField: string;
|
|
68
68
|
dynamicDict: any[];
|
|
69
|
+
jsScript: string;
|
|
70
|
+
sql4Load: string;
|
|
69
71
|
}
|
|
70
72
|
|
|
71
73
|
export class TGzjgGzlmResponse implements IGzjgGzlmResponse {
|
|
74
|
+
jsScript: string = "";
|
|
75
|
+
sql4Load: string = "";
|
|
72
76
|
whoBuild: number = 0;
|
|
73
77
|
userIndx: number = 0;
|
|
74
78
|
gzjgIndx: number = 0;
|
|
75
|
-
gzlmFlid: number = 0;
|
|
79
|
+
gzlmFlid: number = 0; // 主键序号
|
|
76
80
|
parentID: number = 0;
|
|
77
|
-
parentCD: string =
|
|
81
|
+
parentCD: string | undefined = undefined;
|
|
78
82
|
dataLevl: number = 0;
|
|
79
83
|
dataStat: number = 1;
|
|
80
84
|
dataHide: number = 0;
|
package/src/gzjg/index.ts
CHANGED
|
@@ -5,12 +5,11 @@ import { IGzjgMainResponse, TGzjgMainResponse } from "./IGzjgMainResponse";
|
|
|
5
5
|
import { IGzjgQzgsResponse, TGzjgQzgsResponse } from "./IGzjgQzgsResponse";
|
|
6
6
|
|
|
7
7
|
export {
|
|
8
|
-
IGzjgBodyLockResponse,
|
|
9
|
-
IGzjgGzlmLandResponse,
|
|
10
|
-
IGzjgGzlmResponse,
|
|
11
|
-
IGzjgMainResponse,
|
|
12
|
-
IGzjgQzgsResponse,
|
|
13
|
-
|
|
8
|
+
type IGzjgBodyLockResponse,
|
|
9
|
+
type IGzjgGzlmLandResponse,
|
|
10
|
+
type IGzjgGzlmResponse,
|
|
11
|
+
type IGzjgMainResponse,
|
|
12
|
+
type IGzjgQzgsResponse,
|
|
14
13
|
TGzjgBodyLockResponse,
|
|
15
14
|
TGzjgGzlmLandResponse,
|
|
16
15
|
TGzjgGzlmResponse,
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { IBaseResponse, TBaseResponse } from "../base/IBaseResponse";
|
|
2
|
+
|
|
3
|
+
export interface IYqdwResponse extends IBaseResponse<IYqdwResponse> {
|
|
4
|
+
createAt: number;
|
|
5
|
+
createBy: string;
|
|
6
|
+
dataDate: number;
|
|
7
|
+
dataFrom: number;
|
|
8
|
+
dataHide: number;
|
|
9
|
+
dataOrdr: number;
|
|
10
|
+
dataStat: number;
|
|
11
|
+
dataTime: number;
|
|
12
|
+
dataType: number;
|
|
13
|
+
deleteAt: number;
|
|
14
|
+
deleteBy: string;
|
|
15
|
+
dwxzText: string;
|
|
16
|
+
hallText: string;
|
|
17
|
+
hallUUID: string;
|
|
18
|
+
hallXkzh: string;
|
|
19
|
+
loadMain: number;
|
|
20
|
+
mastGUID: string;
|
|
21
|
+
mastName: string;
|
|
22
|
+
typeText: string;
|
|
23
|
+
unitDwxz: string;
|
|
24
|
+
unitText: string;
|
|
25
|
+
unitType: string;
|
|
26
|
+
unitUUID: string;
|
|
27
|
+
updateAt: number;
|
|
28
|
+
updateBy: string;
|
|
29
|
+
usciCode: string;
|
|
30
|
+
userIndx: number;
|
|
31
|
+
whoBuild: number;
|
|
32
|
+
yqdwIndx: number;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export class TYqdwResponse extends TBaseResponse<IYqdwResponse> implements IYqdwResponse {
|
|
36
|
+
createAt: number = 0;
|
|
37
|
+
createBy: string = "";
|
|
38
|
+
dataDate: number = 0;
|
|
39
|
+
dataFrom: number = 0;
|
|
40
|
+
dataHide: number = 0;
|
|
41
|
+
dataOrdr: number = 0;
|
|
42
|
+
dataStat: number = 0;
|
|
43
|
+
dataTime: number = 0;
|
|
44
|
+
dataType: number = 0;
|
|
45
|
+
deleteAt: number = 0;
|
|
46
|
+
deleteBy: string = "";
|
|
47
|
+
dwxzText: string = "";
|
|
48
|
+
hallText: string = "";
|
|
49
|
+
hallUUID: string = "";
|
|
50
|
+
hallXkzh: string = "";
|
|
51
|
+
loadMain: number = 0;
|
|
52
|
+
mastGUID: string = "";
|
|
53
|
+
mastName: string = "";
|
|
54
|
+
typeText: string = "";
|
|
55
|
+
unitDwxz: string = "";
|
|
56
|
+
unitText: string = "";
|
|
57
|
+
unitType: string = "";
|
|
58
|
+
unitUUID: string = "";
|
|
59
|
+
updateAt: number = 0;
|
|
60
|
+
updateBy: string = "";
|
|
61
|
+
usciCode: string = "";
|
|
62
|
+
userIndx: number = 0;
|
|
63
|
+
whoBuild: number = 0;
|
|
64
|
+
yqdwIndx: number = 0;
|
|
65
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export interface IYqkbResponse {
|
|
2
|
+
whoBuild: number;
|
|
3
|
+
userIndx: number;
|
|
4
|
+
sourceND: number;
|
|
5
|
+
sourceID: number;
|
|
6
|
+
kjndKJQJ: number;
|
|
7
|
+
detailID: number;
|
|
8
|
+
hashCode: number;
|
|
9
|
+
dataLevl: number;
|
|
10
|
+
dataFrom: number;
|
|
11
|
+
dataStat: number;
|
|
12
|
+
dataOrdr: number;
|
|
13
|
+
dataDate: number;
|
|
14
|
+
dataTime: number;
|
|
15
|
+
dataHide: number;
|
|
16
|
+
dataGUID: string;
|
|
17
|
+
mastName: string;
|
|
18
|
+
mastGUID: string;
|
|
19
|
+
createBy: string;
|
|
20
|
+
createAt: number;
|
|
21
|
+
updateBy: string;
|
|
22
|
+
updateAt: number;
|
|
23
|
+
deleteBy: string;
|
|
24
|
+
deleteAt: number;
|
|
25
|
+
queuesBy: number;
|
|
26
|
+
entityID: string;
|
|
27
|
+
yqkmType: number;
|
|
28
|
+
yqkmCode: string;
|
|
29
|
+
yqkmName: string;
|
|
30
|
+
p2pzPzje: number;
|
|
31
|
+
sourceNc: string;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export class TYqkbResponse implements IYqkbResponse {
|
|
35
|
+
whoBuild: number = 0;
|
|
36
|
+
userIndx: number = 0;
|
|
37
|
+
sourceND: number = 0;
|
|
38
|
+
sourceID: number = 0;
|
|
39
|
+
kjndKJQJ: number = 0;
|
|
40
|
+
detailID: number = 0;
|
|
41
|
+
hashCode: number = 0;
|
|
42
|
+
dataLevl: number = 0;
|
|
43
|
+
dataFrom: number = 0;
|
|
44
|
+
dataStat: number = 0;
|
|
45
|
+
dataOrdr: number = 0;
|
|
46
|
+
dataDate: number = 0;
|
|
47
|
+
dataTime: number = 0;
|
|
48
|
+
dataHide: number = 0;
|
|
49
|
+
dataGUID: string = "";
|
|
50
|
+
mastName: string = "";
|
|
51
|
+
mastGUID: string = "";
|
|
52
|
+
createBy: string = "";
|
|
53
|
+
createAt: number = 0;
|
|
54
|
+
updateBy: string = "";
|
|
55
|
+
updateAt: number = 0;
|
|
56
|
+
deleteBy: string = "";
|
|
57
|
+
deleteAt: number = 0;
|
|
58
|
+
queuesBy: number = 0;
|
|
59
|
+
entityID: string = "";
|
|
60
|
+
yqkmType: number = 0;
|
|
61
|
+
yqkmCode: string = "";
|
|
62
|
+
yqkmName: string = "";
|
|
63
|
+
p2pzPzje: number = 0;
|
|
64
|
+
sourceNc: string = "";
|
|
65
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export interface IYqkmResponse {
|
|
2
|
+
createAt: number;
|
|
3
|
+
createBy: string;
|
|
4
|
+
dataDate: number;
|
|
5
|
+
dataFrom: number;
|
|
6
|
+
dataHide: number;
|
|
7
|
+
dataOrdr: number;
|
|
8
|
+
dataStat: number;
|
|
9
|
+
dataTime: number;
|
|
10
|
+
dataType: number;
|
|
11
|
+
deleteAt: number;
|
|
12
|
+
deleteBy: string;
|
|
13
|
+
loadMain: number;
|
|
14
|
+
mastGUID: string;
|
|
15
|
+
mastName: string;
|
|
16
|
+
updateAt: number;
|
|
17
|
+
updateBy: string;
|
|
18
|
+
userIndx: number;
|
|
19
|
+
whoBuild: number;
|
|
20
|
+
yqkmCode: string;
|
|
21
|
+
yqkmIndx: number;
|
|
22
|
+
yqkmName: string;
|
|
23
|
+
yqkmType: number;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export class TYqkmResponse implements IYqkmResponse {
|
|
27
|
+
createAt: number = 0;
|
|
28
|
+
createBy: string = "";
|
|
29
|
+
dataDate: number = 0;
|
|
30
|
+
dataFrom: number = 0;
|
|
31
|
+
dataHide: number = 0;
|
|
32
|
+
dataOrdr: number = 0;
|
|
33
|
+
dataStat: number = 0;
|
|
34
|
+
dataTime: number = 0;
|
|
35
|
+
dataType: number = 0;
|
|
36
|
+
deleteAt: number = 0;
|
|
37
|
+
deleteBy: string = "";
|
|
38
|
+
loadMain: number = 0;
|
|
39
|
+
mastGUID: string = "";
|
|
40
|
+
mastName: string = "";
|
|
41
|
+
updateAt: number = 0;
|
|
42
|
+
updateBy: string = "";
|
|
43
|
+
userIndx: number = 0;
|
|
44
|
+
whoBuild: number = 0;
|
|
45
|
+
yqkmCode: string = "";
|
|
46
|
+
yqkmIndx: number = 0;
|
|
47
|
+
yqkmName: string = "";
|
|
48
|
+
yqkmType: number = 0;
|
|
49
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IYqdwResponse, TYqdwResponse } from "./IYqdwResponse";
|
|
2
|
+
import { IYqkmResponse, TYqkmResponse } from "./IYqkmResponse";
|
|
3
|
+
import { IYqkbResponse, TYqkbResponse } from "./IYqkbResponse";
|
|
4
|
+
|
|
5
|
+
export { type IYqdwResponse, type IYqkmResponse, type IYqkbResponse, TYqdwResponse, TYqkmResponse, TYqkbResponse };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
interface IMicroAppDataInfo {
|
|
2
|
+
pageIndx: number;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
interface IMicroAppData {
|
|
6
|
+
whoBuild: number;
|
|
7
|
+
userIndx: number;
|
|
8
|
+
usrToken: string;
|
|
9
|
+
baseURL: string;
|
|
10
|
+
routeURL: string;
|
|
11
|
+
dataInfo: IMicroAppDataInfo;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
class TMicroAppDataInfo implements IMicroAppDataInfo {
|
|
15
|
+
pageIndx: number = 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
class TMicroAppData implements IMicroAppData {
|
|
19
|
+
whoBuild: number = 0;
|
|
20
|
+
userIndx: number = 0;
|
|
21
|
+
usrToken: string = "";
|
|
22
|
+
baseURL: string = "";
|
|
23
|
+
routeURL: string = "";
|
|
24
|
+
dataInfo: IMicroAppDataInfo = new TMicroAppDataInfo();
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type { IMicroAppData, IMicroAppDataInfo };
|
|
28
|
+
|
|
29
|
+
export { TMicroAppData, TMicroAppDataInfo };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import EAppName from "./appName";
|
|
2
|
+
|
|
3
|
+
interface IAppTab {
|
|
4
|
+
isMicroApp: boolean;
|
|
5
|
+
appName: EAppName;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
class TAppTab implements IAppTab {
|
|
9
|
+
isMicroApp: boolean = false;
|
|
10
|
+
appName: EAppName = EAppName.APP_NAME_NULL;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type { IAppTab };
|
|
14
|
+
|
|
15
|
+
export { TAppTab };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import EAppName from "./appName";
|
|
2
|
+
import { IMicroAppData, IMicroAppDataInfo, TMicroAppData, TMicroAppDataInfo } from "./appData";
|
|
3
|
+
import { IAppTab, TAppTab } from "./appTab";
|
|
4
|
+
|
|
5
|
+
export { EAppName, TAppTab, TMicroAppData, TMicroAppDataInfo };
|
|
6
|
+
export type { IAppTab, IMicroAppData, IMicroAppDataInfo };
|
|
@@ -70,6 +70,9 @@ export interface IPzptCnfgResponse {
|
|
|
70
70
|
fromSourceDW: string;
|
|
71
71
|
fromSourceID: number;
|
|
72
72
|
fromSourceND: number;
|
|
73
|
+
|
|
74
|
+
sourceNC: string;
|
|
75
|
+
sourceNF: string;
|
|
73
76
|
}
|
|
74
77
|
|
|
75
78
|
export class TPzptCnfgResponse implements IPzptCnfgResponse {
|
|
@@ -141,4 +144,7 @@ export class TPzptCnfgResponse implements IPzptCnfgResponse {
|
|
|
141
144
|
fromSourceDW: string = "";
|
|
142
145
|
fromSourceID: number = 0;
|
|
143
146
|
fromSourceND: number = 0;
|
|
147
|
+
|
|
148
|
+
sourceNC: string = "";
|
|
149
|
+
sourceNF: string = "";
|
|
144
150
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { construct } from "@aximario/json-tree";
|
|
2
2
|
import type { IPzptItemResponse } from "./IPzptItemResponse";
|
|
3
3
|
import type { IPzptTypeResponse } from "./IPzptTypeResponse";
|
|
4
|
+
import { IBaseResponse, TBaseResponse } from "../base/IBaseResponse";
|
|
4
5
|
|
|
5
|
-
export interface IPzptK8kmResponse {
|
|
6
|
+
export interface IPzptK8kmResponse extends IBaseResponse<IPzptK8kmResponse> {
|
|
6
7
|
c0pzType: number;
|
|
7
8
|
createAt: number;
|
|
8
9
|
createBy: string;
|
|
@@ -49,7 +50,6 @@ export interface IPzptK8kmResponse {
|
|
|
49
50
|
parentCD: string;
|
|
50
51
|
parentID: number;
|
|
51
52
|
queuesBy: number;
|
|
52
|
-
readOnly: number;
|
|
53
53
|
sourceID: number;
|
|
54
54
|
sourceND: number;
|
|
55
55
|
typeSize: number;
|
|
@@ -80,9 +80,11 @@ export interface IPzptK8kmResponse {
|
|
|
80
80
|
|
|
81
81
|
listItem: IPzptItemResponse[];
|
|
82
82
|
listType: IPzptTypeResponse[];
|
|
83
|
+
|
|
84
|
+
isChecked: boolean;
|
|
83
85
|
}
|
|
84
86
|
|
|
85
|
-
export class TPzptK8kmResponse implements IPzptK8kmResponse {
|
|
87
|
+
export class TPzptK8kmResponse extends TBaseResponse<IPzptK8kmResponse> implements IPzptK8kmResponse {
|
|
86
88
|
c0pzType: number = 0;
|
|
87
89
|
createAt: number = 0;
|
|
88
90
|
createBy: string = "";
|
|
@@ -129,7 +131,6 @@ export class TPzptK8kmResponse implements IPzptK8kmResponse {
|
|
|
129
131
|
parentCD: string = "";
|
|
130
132
|
parentID: number = 0;
|
|
131
133
|
queuesBy: number = 0;
|
|
132
|
-
readOnly: number = 0;
|
|
133
134
|
sourceID: number = 0;
|
|
134
135
|
sourceND: number = 0;
|
|
135
136
|
typeSize: number = 0;
|
|
@@ -161,6 +162,8 @@ export class TPzptK8kmResponse implements IPzptK8kmResponse {
|
|
|
161
162
|
listItem: IPzptItemResponse[] = [];
|
|
162
163
|
listType: IPzptTypeResponse[] = [];
|
|
163
164
|
|
|
165
|
+
isChecked: boolean = false;
|
|
166
|
+
|
|
164
167
|
static toTree(listData: IPzptK8kmResponse[]) {
|
|
165
168
|
return construct(listData, { id: "k8kmKmid", pid: "parentID", children: "children" }) as IPzptK8kmResponse[];
|
|
166
169
|
}
|
|
@@ -39,6 +39,8 @@ export interface IPzptTypeResponse {
|
|
|
39
39
|
iDefault: number;
|
|
40
40
|
uDefault: string;
|
|
41
41
|
nDefault: string;
|
|
42
|
+
k8kmKmbm: string;
|
|
43
|
+
k8kmKmmc: string;
|
|
42
44
|
listItem: IPzptItemResponse[];
|
|
43
45
|
}
|
|
44
46
|
|
|
@@ -80,5 +82,7 @@ export class TPzptTypeResponse implements IPzptTypeResponse {
|
|
|
80
82
|
iDefault: number = 0;
|
|
81
83
|
uDefault: string = "";
|
|
82
84
|
nDefault: string = "";
|
|
85
|
+
k8kmKmbm: string = "";
|
|
86
|
+
k8kmKmmc: string = "";
|
|
83
87
|
listItem: IPzptItemResponse[] = [];
|
|
84
88
|
}
|
package/src/pzpt/index.ts
CHANGED
|
@@ -7,14 +7,13 @@ import { IPzptTypeResponse, TPzptTypeResponse } from "./IPzptTypeResponse";
|
|
|
7
7
|
import { IPzptUkkmResponse, TPzptUkkmResponse } from "./IPzptUkkmResponse";
|
|
8
8
|
|
|
9
9
|
export {
|
|
10
|
-
IPzptCnfgResponse,
|
|
11
|
-
IPzptItemResponse,
|
|
12
|
-
IPzptK0kmResponse,
|
|
13
|
-
IPzptK8kmResponse,
|
|
14
|
-
IPzptKbkmResponse,
|
|
15
|
-
IPzptTypeResponse,
|
|
16
|
-
IPzptUkkmResponse,
|
|
17
|
-
|
|
10
|
+
type IPzptCnfgResponse,
|
|
11
|
+
type IPzptItemResponse,
|
|
12
|
+
type IPzptK0kmResponse,
|
|
13
|
+
type IPzptK8kmResponse,
|
|
14
|
+
type IPzptKbkmResponse,
|
|
15
|
+
type IPzptTypeResponse,
|
|
16
|
+
type IPzptUkkmResponse,
|
|
18
17
|
TPzptCnfgResponse,
|
|
19
18
|
TPzptItemResponse,
|
|
20
19
|
TPzptK0kmResponse,
|
package/src/store/index.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { ISessionUserInfo, IUserState, TSessionUserInfo, TUserState } from "./userState";
|
|
2
2
|
import { ITabsState, TTabsState } from "./tabsState";
|
|
3
|
+
import { IViewState, TViewState } from "./viewState";
|
|
3
4
|
|
|
4
|
-
export {
|
|
5
|
+
export { TUserState, TTabsState, TSessionUserInfo, TViewState };
|
|
6
|
+
export type { IUserState, ITabsState, ISessionUserInfo, IViewState };
|
package/src/store/tabsState.ts
CHANGED
package/src/store/viewState.ts
CHANGED
package/src/tabl/index.ts
CHANGED
|
@@ -2,12 +2,4 @@ import { ITablDataResponse, TTablDataResponse } from "./ITablDataResponse";
|
|
|
2
2
|
import { ITablLineResponse, TTablLineResponse } from "./ITablLineResponse";
|
|
3
3
|
import { ITablMainResponse, TTablMainResponse } from "./ITablMainResponse";
|
|
4
4
|
|
|
5
|
-
export {
|
|
6
|
-
ITablDataResponse,
|
|
7
|
-
ITablLineResponse,
|
|
8
|
-
ITablMainResponse,
|
|
9
|
-
|
|
10
|
-
TTablDataResponse,
|
|
11
|
-
TTablLineResponse,
|
|
12
|
-
TTablMainResponse
|
|
13
|
-
};
|
|
5
|
+
export { type ITablDataResponse, type ITablLineResponse, type ITablMainResponse, TTablDataResponse, TTablLineResponse, TTablMainResponse };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { IWldyItemResponse } from "./IWldyItemResponse";
|
|
2
|
+
|
|
1
3
|
export interface IWldyDataResponse {
|
|
2
4
|
whoBuild: number;
|
|
3
5
|
userIndx: number;
|
|
@@ -27,6 +29,8 @@ export interface IWldyDataResponse {
|
|
|
27
29
|
dataMemo: string;
|
|
28
30
|
dataAttr: string;
|
|
29
31
|
loadText: string;
|
|
32
|
+
|
|
33
|
+
listItem: IWldyItemResponse[];
|
|
30
34
|
}
|
|
31
35
|
|
|
32
36
|
export class TWldyDataResponse implements IWldyDataResponse {
|
|
@@ -57,4 +61,6 @@ export class TWldyDataResponse implements IWldyDataResponse {
|
|
|
57
61
|
dataMemo: string = "";
|
|
58
62
|
dataAttr: string = "";
|
|
59
63
|
loadText: string = "";
|
|
64
|
+
|
|
65
|
+
listItem: IWldyItemResponse[] = [];
|
|
60
66
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export interface IPaperSize {
|
|
2
|
+
id: number;
|
|
3
|
+
title: string;
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export class TPaperSize implements IPaperSize {
|
|
9
|
+
id: number = 0;
|
|
10
|
+
title: string = "";
|
|
11
|
+
width: number = 0;
|
|
12
|
+
height: number = 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface IWldyPageParaResponse {
|
|
16
|
+
paperSize: number;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export class TWldyPageParaResponse {
|
|
20
|
+
paperSize: number = 2;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export const listPaper: IPaperSize[] = [
|
|
24
|
+
{
|
|
25
|
+
id: 1,
|
|
26
|
+
title: "A3",
|
|
27
|
+
width: 420,
|
|
28
|
+
height: 297
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
id: 2,
|
|
32
|
+
title: "A4",
|
|
33
|
+
width: 210,
|
|
34
|
+
height: 297
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
id: 3,
|
|
38
|
+
title: "A5",
|
|
39
|
+
width: 210,
|
|
40
|
+
height: 148
|
|
41
|
+
}
|
|
42
|
+
];
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import _ from "lodash";
|
|
2
|
+
import { IWldyDataResponse } from "./IWldyDataResponse";
|
|
3
|
+
import { TWldyPageParaResponse } from "./IWldyPageParaResponse";
|
|
4
|
+
|
|
1
5
|
export interface IWldyPageResponse {
|
|
2
6
|
whoBuild: number;
|
|
3
7
|
userIndx: number;
|
|
@@ -38,7 +42,9 @@ export interface IWldyPageResponse {
|
|
|
38
42
|
copyMode: number;
|
|
39
43
|
copyFrom: number;
|
|
40
44
|
pageUses: string;
|
|
45
|
+
pagePara: string;
|
|
41
46
|
pageModeText: string;
|
|
47
|
+
listData: IWldyDataResponse[];
|
|
42
48
|
}
|
|
43
49
|
|
|
44
50
|
export class TWldyPageResponse implements IWldyPageResponse {
|
|
@@ -80,5 +86,21 @@ export class TWldyPageResponse implements IWldyPageResponse {
|
|
|
80
86
|
copyMode: number = 0;
|
|
81
87
|
copyFrom: number = 0;
|
|
82
88
|
pageUses: string = "";
|
|
89
|
+
pagePara: string = "";
|
|
83
90
|
pageModeText: string = "";
|
|
91
|
+
listData: IWldyDataResponse[] = [];
|
|
92
|
+
|
|
93
|
+
static parseJson(pagePara: string) {
|
|
94
|
+
let result = new TWldyPageParaResponse();
|
|
95
|
+
if (_.isEmpty(pagePara)) {
|
|
96
|
+
return result;
|
|
97
|
+
}
|
|
98
|
+
try {
|
|
99
|
+
const temp = JSON.parse(pagePara) as TWldyPageParaResponse;
|
|
100
|
+
return _.merge(result, temp);
|
|
101
|
+
} catch (e: any) {
|
|
102
|
+
console.error(e.message);
|
|
103
|
+
}
|
|
104
|
+
return result;
|
|
105
|
+
}
|
|
84
106
|
}
|
package/src/wldy/index.ts
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import { IWldyDataResponse, TWldyDataResponse } from "./IWldyDataResponse";
|
|
2
2
|
import { IWldyItemResponse, TWldyItemResponse } from "./IWldyItemResponse";
|
|
3
3
|
import { IWldyPageResponse, TWldyPageResponse } from "./IWldyPageResponse";
|
|
4
|
+
import { IWldyPageParaResponse, TWldyPageParaResponse, IPaperSize, TPaperSize, listPaper } from "./IWldyPageParaResponse";
|
|
4
5
|
|
|
5
6
|
export {
|
|
6
|
-
IWldyDataResponse,
|
|
7
|
-
IWldyItemResponse,
|
|
8
|
-
IWldyPageResponse,
|
|
9
|
-
|
|
7
|
+
type IWldyDataResponse,
|
|
8
|
+
type IWldyItemResponse,
|
|
9
|
+
type IWldyPageResponse,
|
|
10
|
+
type IWldyPageParaResponse,
|
|
11
|
+
type IPaperSize,
|
|
10
12
|
TWldyDataResponse,
|
|
11
13
|
TWldyItemResponse,
|
|
12
|
-
TWldyPageResponse
|
|
14
|
+
TWldyPageResponse,
|
|
15
|
+
TWldyPageParaResponse,
|
|
16
|
+
TPaperSize,
|
|
17
|
+
listPaper
|
|
13
18
|
};
|
package/src/wlzf/index.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { construct } from "@aximario/json-tree";
|
|
2
2
|
import _ from "lodash";
|
|
3
|
+
import { IBaseResponse, TBaseResponse } from "../base/IBaseResponse";
|
|
3
4
|
|
|
4
|
-
export interface IViewCtrlResponse {
|
|
5
|
+
export interface IViewCtrlResponse extends IBaseResponse<IViewCtrlResponse[]> {
|
|
5
6
|
asParent: number;
|
|
6
7
|
ctrlCode: string;
|
|
7
8
|
ctrlName: string;
|
|
@@ -30,7 +31,7 @@ export interface IViewCtrlResponse {
|
|
|
30
31
|
viewIndx: number;
|
|
31
32
|
}
|
|
32
33
|
|
|
33
|
-
export class TViewCtrlResponse implements IViewCtrlResponse {
|
|
34
|
+
export class TViewCtrlResponse extends TBaseResponse<IViewCtrlResponse[]> implements IViewCtrlResponse {
|
|
34
35
|
asParent: number = 0;
|
|
35
36
|
ctrlCode: string = "";
|
|
36
37
|
ctrlName: string = "";
|
package/src/wtui/index.ts
CHANGED
|
@@ -3,14 +3,4 @@ import { IWtuiMainResponse, TWtuiMainResponse } from "./IWtuiMainResponse";
|
|
|
3
3
|
import { IWtuiTodoResponse, TWtuiTodoResponse } from "./IWtuiTodoResponse";
|
|
4
4
|
import { IWtuiViewResponse, TWtuiViewResponse } from "./IWtuiViewResponse";
|
|
5
5
|
|
|
6
|
-
export {
|
|
7
|
-
IViewCtrlResponse,
|
|
8
|
-
IWtuiMainResponse,
|
|
9
|
-
IWtuiTodoResponse,
|
|
10
|
-
IWtuiViewResponse,
|
|
11
|
-
|
|
12
|
-
TViewCtrlResponse,
|
|
13
|
-
TWtuiMainResponse,
|
|
14
|
-
TWtuiTodoResponse,
|
|
15
|
-
TWtuiViewResponse
|
|
16
|
-
};
|
|
6
|
+
export { type IViewCtrlResponse, type IWtuiMainResponse, type IWtuiTodoResponse, type IWtuiViewResponse, TViewCtrlResponse, TWtuiMainResponse, TWtuiTodoResponse, TWtuiViewResponse };
|