@ningboyz/types 1.1.88 → 1.1.90
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/package.json
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { construct, destruct } from "@aximario/json-tree";
|
|
2
|
+
import _ from "lodash";
|
|
3
|
+
|
|
1
4
|
export interface IElemDataResponse {
|
|
2
5
|
whoBuild: number;
|
|
3
6
|
userIndx: number;
|
|
@@ -87,4 +90,12 @@ export class TElemDataResponse implements IElemDataResponse {
|
|
|
87
90
|
elemPara: string = "";
|
|
88
91
|
typeText: string = "";
|
|
89
92
|
tablFrom: string = "";
|
|
93
|
+
|
|
94
|
+
public static toTree(listData: IElemDataResponse[]) {
|
|
95
|
+
return construct(_.cloneDeep(listData), { id: "dataIndx", pid: "parentID", children: "children" }) as IElemDataResponse[];
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
public static toList(treeData: IElemDataResponse[]) {
|
|
99
|
+
return destruct(_.cloneDeep(treeData), { id: "dataIndx", pid: "parentID", children: "children" }) as IElemDataResponse[];
|
|
100
|
+
}
|
|
90
101
|
}
|
|
@@ -65,12 +65,12 @@ export interface IGzjgGzlmResponse {
|
|
|
65
65
|
expdTypn: string; //#支出科目名称
|
|
66
66
|
heavyVal: number; //#待扣优先
|
|
67
67
|
copyJoin: number; //#参与复制
|
|
68
|
-
|
|
69
68
|
notEmpty: number; //#非空栏目
|
|
70
69
|
useQuery: number; //#开放查询
|
|
71
70
|
jsScript: string; //#js运行脚本
|
|
72
71
|
sql4Load: string; //#sql运行脚本
|
|
73
72
|
|
|
73
|
+
|
|
74
74
|
gnkmMain: number;
|
|
75
75
|
gnkmCode: string;
|
|
76
76
|
gnkmName: string;
|
|
@@ -144,6 +144,7 @@ export class TGzjgGzlmResponse implements IGzjgGzlmResponse {
|
|
|
144
144
|
isLasted: number = 0;
|
|
145
145
|
jsScript: string = "";
|
|
146
146
|
sql4Load: string = "";
|
|
147
|
+
gzlmFlfz: number = 0;
|
|
147
148
|
|
|
148
149
|
expdType: number = 0;
|
|
149
150
|
expdTypc: string = "";
|