@ningboyz/types 1.1.129 → 1.1.132
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 +34 -48
- package/package.json +1 -1
- package/src/gams/IGamsK8kmResponse.ts +34 -0
- package/src/pzpt/IPzptK8kmResponse.ts +3 -3
package/index.ts
CHANGED
|
@@ -1,71 +1,61 @@
|
|
|
1
|
+
import * as TAntv from "./src/antv";
|
|
1
2
|
import * as TApp from "./src/app";
|
|
2
3
|
import { IBaseResponse } from "./src/base/IBaseResponse";
|
|
3
4
|
import * as TCard from "./src/card";
|
|
5
|
+
import * as TCggz from "./src/cggz";
|
|
6
|
+
import * as TCnfg from "./src/conf";
|
|
4
7
|
import { IAboutConfig, IBaseConfig, IConfig, IPathConfig } from "./src/conf/IConfig";
|
|
5
8
|
import * as Const from "./src/const";
|
|
6
9
|
import * as TCore from "./src/core";
|
|
10
|
+
import * as TCron from "./src/cron";
|
|
11
|
+
import * as TElem from "./src/elem";
|
|
7
12
|
import * as Enums from "./src/enums";
|
|
13
|
+
import * as TExpd from "./src/expd";
|
|
8
14
|
import * as TFlow from "./src/flow";
|
|
9
15
|
import * as TGams from "./src/gams";
|
|
10
16
|
import * as TGzjg from "./src/gzjg";
|
|
17
|
+
import * as TGztb from "./src/gztb";
|
|
18
|
+
import * as TGzzd from "./src/gzzd";
|
|
19
|
+
import * as THzcb from "./src/hzcb";
|
|
20
|
+
import * as TLoad from "./src/load";
|
|
21
|
+
import * as Micro from "./src/micro";
|
|
22
|
+
import * as TMyoa from "./src/myoa";
|
|
23
|
+
import * as TNoti from "./src/noti";
|
|
11
24
|
import * as TPzpt from "./src/pzpt";
|
|
12
25
|
import { IResponse } from "./src/response/IResponse";
|
|
13
26
|
import * as TStore from "./src/store";
|
|
14
27
|
import * as TTabl from "./src/tabl";
|
|
28
|
+
import * as TTake from "./src/take";
|
|
29
|
+
import * as TTask from "./src/task";
|
|
15
30
|
import * as TWldy from "./src/wldy";
|
|
16
31
|
import * as TWlzf from "./src/wlzf";
|
|
17
32
|
import * as TWtui from "./src/wtui";
|
|
18
|
-
import * as
|
|
19
|
-
import * as
|
|
20
|
-
import * as Micro from "./src/micro";
|
|
21
|
-
import * as TZbhd from "./src/zbhd";
|
|
33
|
+
import * as TWzpz from "./src/wzpz";
|
|
34
|
+
import * as TYzcb from "./src/yzcb";
|
|
22
35
|
import * as TYzcg from "./src/yzcg";
|
|
23
36
|
import * as TYzht from "./src/yzht";
|
|
24
|
-
import * as TCggz from "./src/cggz";
|
|
25
|
-
import * as TYzcb from "./src/yzcb";
|
|
26
|
-
import * as TGzzd from "./src/gzzd";
|
|
27
|
-
import * as TZfsq from "./src/zfsq";
|
|
28
|
-
import * as TZfht from "./src/zfht";
|
|
29
|
-
import * as THzcb from "./src/hzcb";
|
|
30
|
-
import * as TTake from "./src/take";
|
|
31
|
-
import * as TExpd from "./src/expd";
|
|
32
|
-
import * as TTask from "./src/task";
|
|
33
|
-
import * as TGztb from "./src/gztb";
|
|
34
|
-
import * as TAntv from "./src/antv";
|
|
35
|
-
import * as TNoti from "./src/noti";
|
|
36
|
-
import * as TMyoa from "./src/myoa";
|
|
37
|
-
import * as TCron from "./src/cron";
|
|
38
|
-
import * as TElem from "./src/elem";
|
|
39
|
-
import * as TZbzd from "./src/zbzd";
|
|
40
|
-
import * as TLoad from "./src/load";
|
|
41
37
|
import * as TYzpz from "./src/yzpz";
|
|
42
|
-
import * as
|
|
38
|
+
import * as TZbhd from "./src/zbhd";
|
|
39
|
+
import * as TZbzd from "./src/zbzd";
|
|
40
|
+
import * as TZfht from "./src/zfht";
|
|
41
|
+
import * as TZfsq from "./src/zfsq";
|
|
43
42
|
|
|
44
43
|
export {
|
|
45
44
|
Const,
|
|
46
|
-
Enums,
|
|
47
|
-
type IAboutConfig,
|
|
48
|
-
type IBaseConfig,
|
|
49
|
-
type IBaseResponse,
|
|
50
|
-
type IConfig,
|
|
51
|
-
type IPathConfig,
|
|
52
|
-
type IResponse,
|
|
53
|
-
Load,
|
|
54
|
-
Micro,
|
|
45
|
+
Enums, Micro,
|
|
55
46
|
TAntv,
|
|
56
47
|
TApp,
|
|
57
48
|
TCard,
|
|
58
49
|
TCggz,
|
|
59
50
|
TCnfg,
|
|
60
|
-
TCore,
|
|
61
|
-
TExpd,
|
|
51
|
+
TCore, TCron,
|
|
52
|
+
TElem, TExpd,
|
|
62
53
|
TFlow,
|
|
63
54
|
TGams,
|
|
64
55
|
TGzjg,
|
|
65
56
|
TGztb,
|
|
66
57
|
TGzzd,
|
|
67
|
-
THzcb,
|
|
68
|
-
TNoti,
|
|
58
|
+
THzcb, TLoad, TMyoa, TNoti,
|
|
69
59
|
TPzpt,
|
|
70
60
|
TStore,
|
|
71
61
|
TTabl,
|
|
@@ -73,18 +63,14 @@ export {
|
|
|
73
63
|
TTask,
|
|
74
64
|
TWldy,
|
|
75
65
|
TWlzf,
|
|
76
|
-
TWtui,
|
|
77
|
-
TYzcb,
|
|
66
|
+
TWtui, TWzpz, TYzcb,
|
|
78
67
|
TYzcg,
|
|
79
|
-
TYzht,
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
TZbzd,
|
|
87
|
-
TLoad,
|
|
88
|
-
TYzpz,
|
|
89
|
-
TWzpz
|
|
68
|
+
TYzht, TYzpz, TZbhd, TZbzd, TZfht,
|
|
69
|
+
TZfsq, type IAboutConfig,
|
|
70
|
+
type IBaseConfig,
|
|
71
|
+
type IBaseResponse,
|
|
72
|
+
type IConfig,
|
|
73
|
+
type IPathConfig,
|
|
74
|
+
type IResponse
|
|
90
75
|
};
|
|
76
|
+
|
package/package.json
CHANGED
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
/gams/tk8km/
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
+
import { IDictResponse } from "../core";
|
|
7
|
+
import { IGamsItemResponse } from "./IGamsItemResponse";
|
|
8
|
+
import { IGamsK0kmResponse } from "./IGamsK0kmResponse";
|
|
9
|
+
import { IGamsTypeResponse } from "./IGamsTypeResponse";
|
|
10
|
+
|
|
6
11
|
export interface IGamsK8kmResponse {
|
|
7
12
|
whoBuild: number;
|
|
8
13
|
userIndx: number;
|
|
@@ -54,6 +59,28 @@ export interface IGamsK8kmResponse {
|
|
|
54
59
|
zbhdText: string;
|
|
55
60
|
usesYzht: number;
|
|
56
61
|
zjlyFrom: number;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* 系统字典
|
|
65
|
+
*/
|
|
66
|
+
dictText: string;
|
|
67
|
+
listDict: IDictResponse[];
|
|
68
|
+
/**
|
|
69
|
+
* 科目类别
|
|
70
|
+
*/
|
|
71
|
+
listK0KM: IGamsK0kmResponse[];
|
|
72
|
+
/**
|
|
73
|
+
* 标准要素
|
|
74
|
+
*/
|
|
75
|
+
listType: IGamsTypeResponse[];
|
|
76
|
+
/**
|
|
77
|
+
* 资金来源
|
|
78
|
+
*/
|
|
79
|
+
listZJLY: IGamsItemResponse[];
|
|
80
|
+
/**
|
|
81
|
+
* 资金要素
|
|
82
|
+
*/
|
|
83
|
+
zjlyList: IGamsTypeResponse[];
|
|
57
84
|
}
|
|
58
85
|
|
|
59
86
|
export class TGamsK8kmResponse implements IGamsK8kmResponse {
|
|
@@ -120,4 +147,11 @@ export class TGamsK8kmResponse implements IGamsK8kmResponse {
|
|
|
120
147
|
/** 是否合同 */
|
|
121
148
|
usesYzht: number = 0;
|
|
122
149
|
zjlyFrom: number = 0;
|
|
150
|
+
|
|
151
|
+
dictText: string = "";
|
|
152
|
+
listDict: IDictResponse[] = [];
|
|
153
|
+
listK0KM: IGamsK0kmResponse[] = [];
|
|
154
|
+
listType: IGamsTypeResponse[] = [];
|
|
155
|
+
listZJLY: IGamsItemResponse[] = [];
|
|
156
|
+
zjlyList: IGamsTypeResponse[] = [];
|
|
123
157
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { construct, destruct } from "@aximario/json-tree";
|
|
2
|
+
import { IBaseResponse, TBaseResponse } from "../base/IBaseResponse";
|
|
2
3
|
import type { IPzptItemResponse } from "./IPzptItemResponse";
|
|
3
4
|
import type { IPzptTypeResponse } from "./IPzptTypeResponse";
|
|
4
|
-
import { IBaseResponse, TBaseResponse } from "../base/IBaseResponse";
|
|
5
5
|
|
|
6
6
|
export interface IPzptK8kmResponse extends IBaseResponse<IPzptK8kmResponse> {
|
|
7
7
|
c0pzType: number;
|
|
@@ -166,7 +166,7 @@ export class TPzptK8kmResponse extends TBaseResponse<IPzptK8kmResponse> implemen
|
|
|
166
166
|
/**
|
|
167
167
|
* 将列表转换为树形结构
|
|
168
168
|
* @param listData 列表数据
|
|
169
|
-
* @returns
|
|
169
|
+
* @returns树形结构数据
|
|
170
170
|
*/
|
|
171
171
|
static toTree(listData: IPzptK8kmResponse[]) {
|
|
172
172
|
return construct(listData, { id: "k8kmKmid", pid: "parentID", children: "children" }) as IPzptK8kmResponse[];
|
|
@@ -175,7 +175,7 @@ export class TPzptK8kmResponse extends TBaseResponse<IPzptK8kmResponse> implemen
|
|
|
175
175
|
/**
|
|
176
176
|
* 将树形结构转换为列表
|
|
177
177
|
* @param treeData 树形结构数据
|
|
178
|
-
* @returns
|
|
178
|
+
* @returns列表数据
|
|
179
179
|
*/
|
|
180
180
|
static toList(treeData: IPzptK8kmResponse[]) {
|
|
181
181
|
return destruct(treeData, { id: "k8kmKmid", pid: "parentID", children: "children" }) as IPzptK8kmResponse[];
|