@ningboyz/types 1.0.6 → 1.0.7
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 +22 -18
- package/package.json +1 -2
- package/src/app/IUserData.ts +5 -0
- package/src/app/index.ts +3 -5
- package/src/card/ICardMainResponse.ts +245 -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/index.ts +7 -0
- package/src/const/const_align.ts +0 -1
- package/src/const/const_stat.ts +1 -7
- package/src/core/IDictResponse.ts +14 -0
- package/src/core/IDictResponseDictPara.ts +10 -2
- package/src/core/ITypeResponse.ts +12 -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 +11 -0
- package/src/enums/cardMode.ts +23 -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 +6 -2
- package/src/gzjg/index.ts +5 -6
- package/src/pzpt/IPzptK8kmResponse.ts +3 -4
- 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 +9 -5
- package/src/wlzf/index.ts +1 -5
- package/src/wtui/IViewCtrlResponse.ts +3 -2
- package/src/wtui/index.ts +1 -11
|
@@ -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,17 @@
|
|
|
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 } 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
|
|
13
17
|
};
|
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 };
|