@ningboyz/types 1.2.138 → 1.2.140

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@ningboyz/types",
3
3
  "type": "module",
4
- "version": "1.2.138",
4
+ "version": "1.2.140",
5
5
  "private": false,
6
6
  "description": "宁波甬政类型库",
7
7
  "author": "nbyt-syq",
@@ -119,6 +119,8 @@ export interface IBillMainResponse {
119
119
  /** 银行类型.名称 */
120
120
  bankText: string;
121
121
 
122
+ fromOutMoney: number;
123
+
122
124
  listLock: IBillMainResponse[];
123
125
  }
124
126
 
@@ -238,6 +240,8 @@ export class TBillMainResponse implements IBillMainResponse {
238
240
  typeText: string = "";
239
241
  bankText: string = "";
240
242
 
243
+ fromOutMoney: number = 0;
244
+
241
245
  listLock: IBillMainResponse[] = [];
242
246
 
243
247
  constructor(response: any = {}) {
@@ -245,7 +249,7 @@ export class TBillMainResponse implements IBillMainResponse {
245
249
  _.merge(this, _.pick(response, Object.keys(this)));
246
250
  }
247
251
  }
248
-
252
+
249
253
  static toFlowDatas(notis: TBillMainResponse[]): TFlowDataResponse[] {
250
254
  return notis.map((u) => this.toFlowData(u));
251
255
  }
@@ -19,8 +19,8 @@ export interface IDictResponseDictPara {
19
19
  zcdbType: number; ///字典-资产调拨-单据类型 配置0, 为单位内,调拨只在同一个单位下进行,调拨到其他部门。配置1,为跨单位调拨。配置2,为跨部门调拨
20
20
  /** 是否附件类型不判断必填 */
21
21
  notRequiredPath: boolean;
22
- /** 分值 */
23
- fraction:number
22
+ /** 分值 */
23
+ fraction: number;
24
24
  }
25
25
 
26
26
  export class TDictResponseDictPara implements IDictResponseDictPara {
@@ -38,5 +38,5 @@ export class TDictResponseDictPara implements IDictResponseDictPara {
38
38
  /** 是否附件类型不判断必填 */
39
39
  notRequiredPath: boolean = false;
40
40
  /** 分值 */
41
- fraction:number=0
41
+ fraction: number = 0;
42
42
  }
@@ -173,6 +173,7 @@ export class TUserResponse extends TBaseResponse<IUserResponse> implements IUser
173
173
  userIndx: number = 0; // #PK
174
174
  acnoMain: number = 0;
175
175
  avatarID: string = "";
176
+ /** 头像url */
176
177
  coverURL: string = "";
177
178
  createAt: number = 0;
178
179
  createBy: string = "";
@@ -209,6 +210,7 @@ export class TUserResponse extends TBaseResponse<IUserResponse> implements IUser
209
210
  sourceDW: string = "";
210
211
 
211
212
  thirdAct: string = "";
213
+ /**签名URL */
212
214
  touchURL: string = "";
213
215
  unitMain: number = 0;
214
216
  unitNamf: string = "";
@@ -3,6 +3,7 @@ import { TFlowDataResponse } from "../flow";
3
3
  import { IHznkFydwBillResponse } from "./IHznkFydwBillResponse";
4
4
  import { IHznkFydwFromResponse } from "./IHznkFydwFromResponse";
5
5
  import { IHznkFydwItemResponse } from "./IHznkFydwItemResponse";
6
+ import { IHznkMainResponse } from "./IHznkMainResponse";
6
7
 
7
8
  export interface IHznkFydwResponse {
8
9
  whoBuild: number;
@@ -78,7 +79,7 @@ export interface IHznkFydwResponse {
78
79
  // 到位经费信息区
79
80
  listBill: IHznkFydwBillResponse[];
80
81
  // 项目信息区
81
- listFrom: IHznkFydwFromResponse[];
82
+ listFrom: IHznkMainResponse[];
82
83
  }
83
84
 
84
85
  export class THznkFydwResponse implements IHznkFydwResponse {
@@ -146,7 +147,7 @@ export class THznkFydwResponse implements IHznkFydwResponse {
146
147
  listPath: IPathResponse[] = [];
147
148
  listItem: IHznkFydwItemResponse[] = [];
148
149
  listBill: IHznkFydwBillResponse[] = [];
149
- listFrom: IHznkFydwFromResponse[] = [];
150
+ listFrom: IHznkMainResponse[] = [];
150
151
 
151
152
  static toFlowDatas(card: IHznkFydwResponse[]): TFlowDataResponse[] {
152
153
  return card.map((u) => this.toFlowData(u));
@@ -48,7 +48,7 @@ export interface IHznkNoteResponse {
48
48
 
49
49
  /**附件 */
50
50
  listPath: IPathResponse[];
51
- listFROM: IHznkMainResponse[];
51
+ listFrom: IHznkMainResponse[];
52
52
  }
53
53
 
54
54
  export class THznkNoteResponse implements IHznkNoteResponse {
@@ -97,5 +97,5 @@ export class THznkNoteResponse implements IHznkNoteResponse {
97
97
  baseMemo: string = "";
98
98
 
99
99
  listPath: IPathResponse[] = [];
100
- listFROM: IHznkMainResponse[] = [];
100
+ listFrom: IHznkMainResponse[] = [];
101
101
  }
@@ -0,0 +1,104 @@
1
+ import { IPathResponse } from "../core/IPathResponse";
2
+ import { IHznkMainResponse } from "./IHznkMainResponse";
3
+
4
+ export interface IHznkYssqResponse {
5
+ whoBuild: number;
6
+ userIndx: number;
7
+ yssqIndx: number;
8
+ parentID: number;
9
+ hashCode: number;
10
+ dataLevl: number;
11
+ dataFrom: number;
12
+ kjndKJQJ: number;
13
+ dataStat: number;
14
+ dataOrdr: number;
15
+ dataHide: number;
16
+ dataType: number;
17
+ dataDate: number;
18
+ dataTime: number;
19
+ dataGUID: string;
20
+ userMain: number;
21
+ mastName: string;
22
+ mastGUID: string;
23
+ createBy: string;
24
+ createAt: number;
25
+ updateBy: string;
26
+ updateAt: number;
27
+ deleteBy: string;
28
+ deleteAt: number;
29
+ queuesBy: number;
30
+ entityID: string;
31
+ sourceND: number;
32
+ menuMain: number;
33
+ menuUUID: string;
34
+ unitMain: number;
35
+ deptMain: number;
36
+ sqyhMain: number;
37
+ sqyhText: string;
38
+ sqbmText: string;
39
+ flowUndo: number;
40
+ flowUser: string;
41
+ flowText: string;
42
+ yssqDate: number;
43
+ yssqStat: number;
44
+ baseName: string;
45
+ baseCode: string;
46
+ baseUses: string;
47
+ baseMemo: string;
48
+ diskStat: number;
49
+
50
+ /**附件 */
51
+ listPath: IPathResponse[];
52
+ /**关联项目 */
53
+ listFrom: IHznkMainResponse[];
54
+ }
55
+
56
+ export class THznkYssqResponse implements IHznkYssqResponse {
57
+ whoBuild: number = 0;
58
+ userIndx: number = 0;
59
+ yssqIndx: number = 0;
60
+ parentID: number = 0;
61
+ hashCode: number = 0;
62
+ dataLevl: number = 0;
63
+ dataFrom: number = 0;
64
+ kjndKJQJ: number = 0;
65
+ dataStat: number = 0;
66
+ dataOrdr: number = 0;
67
+ dataHide: number = 0;
68
+ dataType: number = 0;
69
+ dataDate: number = 0;
70
+ dataTime: number = 0;
71
+ dataGUID: string = "";
72
+ userMain: number = 0;
73
+ mastName: string = "";
74
+ mastGUID: string = "";
75
+ createBy: string = "";
76
+ createAt: number = 0;
77
+ updateBy: string = "";
78
+ updateAt: number = 0;
79
+ deleteBy: string = "";
80
+ deleteAt: number = 0;
81
+ queuesBy: number = 0;
82
+ entityID: string = "";
83
+ sourceND: number = 0;
84
+ menuMain: number = 0;
85
+ menuUUID: string = "";
86
+ unitMain: number = 0;
87
+ deptMain: number = 0;
88
+ sqyhMain: number = 0;
89
+ sqyhText: string = "";
90
+ sqbmText: string = "";
91
+ flowUndo: number = 0;
92
+ flowUser: string = "";
93
+ flowText: string = "";
94
+ yssqDate: number = 0;
95
+ yssqStat: number = 0;
96
+ baseName: string = "";
97
+ baseCode: string = "";
98
+ baseUses: string = "";
99
+ baseMemo: string = "";
100
+ diskStat: number = 0;
101
+
102
+ listPath: IPathResponse[] = [];
103
+ listFrom: IHznkMainResponse[] = [];
104
+ }
package/src/hznk/index.ts CHANGED
@@ -21,6 +21,8 @@ import { IHznkNoteResponse, THznkNoteResponse } from "./IHznkNoteResponse";
21
21
  import { IHznkNotePathResponse, THznkNotePathResponse } from "./IHznkNotePathResponse";
22
22
  import { IHznkNoteFromResponse, THznkNoteFromResponse } from "./IHznkNoteFromResponse";
23
23
 
24
+ import { IHznkYssqResponse, THznkYssqResponse } from "./IHznkYssqResponse";
25
+
24
26
 
25
27
  export {
26
28
  THznkDataResponse,
@@ -42,6 +44,7 @@ export {
42
44
  THznkNoteResponse,
43
45
  THznkNotePathResponse,
44
46
  THznkNoteFromResponse,
47
+ THznkYssqResponse,
45
48
  type IHznkDataResponse,
46
49
  type IHznkDataEachResponse,
47
50
  type IHznkDataPathResponse,
@@ -61,4 +64,5 @@ export {
61
64
  type IHznkNoteResponse,
62
65
  type IHznkNotePathResponse,
63
66
  type IHznkNoteFromResponse,
67
+ type IHznkYssqResponse,
64
68
  };
@@ -1,67 +0,0 @@
1
- import _ from "lodash";
2
-
3
- export interface ISyszclbgblbResponse {
4
- whoBuild: number
5
- userIndx: number
6
- zclbIndx: number
7
- dataStat: number
8
- dataHide: number
9
- dataOrdr: number
10
- dataFrom: number
11
- dataDate: number
12
- dataTime: number
13
- createBy: string
14
- createAt: number
15
- updateBy: string
16
- updateAt: number
17
- deleteBy: string
18
- deleteAt: number
19
- queuesBy: number
20
- fromWhoBuild: number
21
- fromUserIndx: number
22
- fromGblbIndx: number
23
- sourceND: number
24
- fromSourceND: number
25
-
26
- zclbTypeText: string
27
- zclbCode: string
28
- zclbName: string
29
- gblbCode: string
30
- gblbName: string
31
- }
32
-
33
- export class TSyszclbgblbResponse implements ISyszclbgblbResponse {
34
- whoBuild: number = 0
35
- userIndx: number = 0
36
- zclbIndx: number = 0
37
- dataStat: number = 0
38
- dataHide: number = 0
39
- dataOrdr: number = 0
40
- dataFrom: number = 0
41
- dataDate: number = 0
42
- dataTime: number = 0
43
- createBy: string = ""
44
- createAt: number = 0
45
- updateBy: string = ""
46
- updateAt: number = 0
47
- deleteBy: string = ""
48
- deleteAt: number = 0
49
- queuesBy: number = 0
50
- fromWhoBuild: number = 0
51
- fromUserIndx: number = 0
52
- fromGblbIndx: number = 0
53
- sourceND: number = 0
54
- fromSourceND: number = 0
55
-
56
- zclbTypeText: string = ""
57
- zclbCode: string = ""
58
- zclbName: string = ""
59
- gblbCode: string = ""
60
- gblbName: string = ""
61
-
62
- constructor(data: any = {}) {
63
- if (data) {
64
- _.merge(this, _.pick(data, Object.keys(this)));
65
- }
66
- }
67
- }
@@ -1,68 +0,0 @@
1
- import _ from "lodash";
2
-
3
- export interface ISyszclbgblb{
4
- whoBuild : number
5
- userIndx : number
6
- zclbIndx : number
7
- dataStat : number
8
- dataHide : number
9
- dataOrdr : number
10
- dataFrom : number
11
- dataDate : number
12
- dataTime : number
13
- createBy : string
14
- createAt : number
15
- updateBy : string
16
- updateAt : number
17
- deleteBy : string
18
- deleteAt : number
19
- queuesBy : number
20
- fromWhoBuild: number
21
- fromUserIndx: number
22
- fromGblbIndx: number
23
- sourceND : number
24
- fromSourceND: number
25
-
26
- zclbTypeText : string
27
- zclbCode: string
28
- zclbName: string
29
- gblbCode: string
30
- gblbName: string
31
-
32
- }
33
-
34
- export class TSyszclbgblb implements ISyszclbgblb{
35
- whoBuild : number = 0
36
- userIndx : number = 0
37
- zclbIndx : number = 0
38
- dataStat : number = 0
39
- dataHide : number = 0
40
- dataOrdr : number = 0
41
- dataFrom : number = 0
42
- dataDate : number = 0
43
- dataTime : number = 0
44
- createBy : string =''
45
- createAt : number = 0
46
- updateBy : string =''
47
- updateAt : number = 0
48
- deleteBy : string =''
49
- deleteAt : number = 0
50
- queuesBy : number = 0
51
- fromWhoBuild: number = 0
52
- fromUserIndx: number = 0
53
- fromGblbIndx: number = 0
54
- sourceND : number = 0
55
- fromSourceND: number = 0
56
-
57
- zclbTypeText : string =""
58
- zclbCode: string =""
59
- zclbName: string =""
60
- gblbCode: string =""
61
- gblbName: string =""
62
-
63
- constructor(data: Partial<ISYSZCLBGBLB> = {}) {
64
- if (data) {
65
- _.merge(this, _.pick(data, Object.keys(this)));
66
- }
67
- }
68
- }
@@ -1,20 +0,0 @@
1
- export const CONST_ITEM_TYPE_TO_数值 = 0; // #数值
2
- export const CONST_ITEM_TYPE_TO_文本 = 1; // #文本
3
- export const CONST_ITEM_TYPE_TO_文本域 = 2; // #备注
4
- export const CONST_ITEM_TYPE_TO_日期 = 3; // #日期
5
- export const CONST_ITEM_TYPE_TO_字典 = 4; // #字典
6
-
7
- export const CONST_VALIDATE_TO_手机号码 = 0; // #整数
8
- export const CONST_VALIDATE_TO_邮箱 = 1; // #文本
9
- export const CONST_VALIDATE_TO_身份证 = 2; // #备注
10
- export const CONST_VALIDATE_TO_自定义 = 3;
11
-
12
- export const CONST_CLEARABLE_TO_不清空 = 0; //不清空
13
- export const CONST_CLEARABLE_TO_清空 = 1; //清空
14
- export const CONST_CLEARABLE_TO_询问 = 2; //询问
15
-
16
- export const CONST_OPERATOR_TO_大于 = 0; //大于
17
- export const CONST_OPERATOR_TO_等于 = 1; //等于
18
- export const CONST_OPERATOR_TO_小于 = 2; //小于
19
- export const CONST_OPERATOR_TO_大于等于 = 3; //大于等于
20
- export const CONST_OPERATOR_TO_小于等于 = 4; //小于等于
@@ -1,29 +0,0 @@
1
- import * as Align from "./const_align";
2
- import * as Audit from "./const_audit";
3
- import * as Card from "./const_card";
4
- import * as Clas from "./const_clas";
5
- import * as Cnfg from "./const_cnfg";
6
- import * as DataFrom from "./const_data_from";
7
- import * as Elem from "./const_elem";
8
- import * as Flow from "./const_flow";
9
- import * as GamsMode from "./const_gams_mode";
10
- import * as Gzlm from "./const_gzlm";
11
- import * as Myoa from "./const_myoa";
12
- import * as Part from "./const_part";
13
- import * as Stat from "./const_stat";
14
- import * as TakeType from "./const_take_type";
15
- import * as Todo from "./const_todo";
16
- import * as Travel from "./const_travel";
17
- import * as Type from "./const_type";
18
- import * as TypeName from "./const_type_name";
19
- import * as User from "./const_user";
20
- import * as Yiha from "./const_yiha";
21
- import * as Zbzd from "./const_zbzd";
22
- import * as WtuiItemType from "./const_wtui_item_type";
23
- import * as WldyItemType from "./const_wldy_item_type";
24
- import * as ConstModuleType from "./const_module";
25
- import * as Module from "./const_module";
26
-
27
- export { Align, Audit, Card, Clas, Cnfg, DataFrom, Elem, Flow, GamsMode, Gzlm, Module, Myoa, Part, Stat, TakeType, Todo, Travel, Type, TypeName, User, WldyItemType, WtuiItemType, Yiha, Zbzd };
28
-
29
- export type ModuleType = (typeof ConstModuleType)[keyof typeof ConstModuleType];
@@ -1,162 +0,0 @@
1
- import { construct, destruct } from "@aximario/json-tree";
2
- import type { IBaseResponse } from "../base/IBaseResponse";
3
- import { TBaseResponse } from "../base/IBaseResponse";
4
- import type { IDictResponse } from "./IDictResponse";
5
- import _ from "lodash";
6
- import { TCore } from "../../index.ts";
7
-
8
- export interface IDeptResponse extends IBaseResponse<IDeptResponse[]> {
9
- codeFull: string;
10
- createAt: number;
11
- createBy: string;
12
- dataDate: number;
13
- dataFrom: number;
14
- dataGUID: string;
15
- dataHide: number;
16
- dataLevl: number;
17
- dataOrdr: number;
18
- dataStat: number;
19
- dataTime: number;
20
- dataType: number;
21
- deleteAt: number;
22
- deleteBy: string;
23
- /**联系电话 */
24
- deptCall: string;
25
- deptCode: string;
26
- deptGnkm: string;
27
- deptIndx: number;
28
- /** 负责人 */
29
- deptMast: string;
30
- /** 备注 */
31
- deptMemo: string;
32
- deptName: string;
33
- /** 部门类型(新) 文本 */
34
- deptTypeText: string;
35
- entityID: string;
36
- gkbmText: string;
37
- hashCode: number;
38
- isLasted: number;
39
- kjndKJQJ: number;
40
- mastGUID: string;
41
- mastName: string;
42
- nameFull: string;
43
- parentID: number;
44
- uniqueID: number;
45
- unitMain: number;
46
- unitText: string;
47
- updateAt: number;
48
- updateBy: string;
49
- userIndx: number;
50
- whoBuild: number;
51
- matchVal: string;
52
- dataMemo: string;
53
- queuesBy: number;
54
-
55
- ratioVal: number; //固定资产-部门分摊-占比
56
- cardZcyz: number; //固定资产-部门分摊-金额
57
-
58
- /** 部门类型 */
59
- listBMLX: Array<IDictResponse>;
60
- /** 部门类型(新) */
61
- listType: Array<IDictResponse>;
62
- }
63
-
64
- export class TDeptResponse extends TBaseResponse<IDeptResponse[]> implements IDeptResponse {
65
- codeFull: string = "";
66
- createAt: number = 0;
67
- createBy: string = "";
68
- dataDate: number = 0;
69
- dataFrom: number = 0;
70
- dataGUID: string = "";
71
- dataHide: number = 0;
72
- dataLevl: number = 0;
73
- dataOrdr: number = 0;
74
- dataStat: number = 0;
75
- dataTime: number = 0;
76
- dataType: number = 0;
77
- deleteAt: number = 0;
78
- deleteBy: string = "";
79
- deptCall: string = "";
80
- deptCode: string = "";
81
- deptGnkm: string = "";
82
- deptIndx: number = 0;
83
- deptMast: string = "";
84
- deptMemo: string = "";
85
- deptName: string = "";
86
- deptTypeText: string = "";
87
- entityID: string = "";
88
- gkbmText: string = "";
89
- hashCode: number = 0;
90
- isLasted: number = 0;
91
- kjndKJQJ: number = 0;
92
- mastGUID: string = "";
93
- mastName: string = "";
94
- nameFull: string = "";
95
- parentID: number = 0;
96
- uniqueID: number = 0;
97
- unitMain: number = 0;
98
- unitText: string = "";
99
- updateAt: number = 0;
100
- updateBy: string = "";
101
- userIndx: number = 0;
102
- whoBuild: number = 0;
103
- matchVal: string = "";
104
- dataMemo: string = "";
105
- queuesBy: number = 0;
106
-
107
- ratioVal: number = 0;
108
- cardZcyz: number = 0;
109
-
110
- listBMLX: IDictResponse[] = [];
111
- /** 部门类型(新) */
112
- listType: IDictResponse[] = [];
113
-
114
- constructor(data: any = {}) {
115
- super();
116
- if (data) {
117
- _.merge(this, _.pick(data, Object.keys(this)));
118
- }
119
- }
120
-
121
- public static toTree(listDept: IDeptResponse[]) {
122
- return construct(listDept, { id: "deptIndx", pid: "parentID", children: "children" }) as IDeptResponse[];
123
- }
124
-
125
- public static toList(treeDept: IDeptResponse[]) {
126
- return destruct(treeDept, { id: "deptIndx", pid: "parentID", children: "children" }) as IDeptResponse[];
127
- }
128
-
129
- public static createDetp(deptMain: number, deptName: string) {
130
- const dept = new TDeptResponse();
131
- dept.deptIndx = deptMain;
132
- dept.deptName = deptName;
133
- return dept;
134
- }
135
-
136
- static toTravel(dept: IDeptResponse, whatDone: string): TCore.ISysTravelResponse {
137
- const travel = new TCore.TSysTravelResponse();
138
- travel.whoBuild = dept.whoBuild;
139
- travel.flowMain = 0;
140
- travel.flowNode = 0;
141
- travel.billUUID = dept.entityID;
142
- travel.billMain = dept.deptIndx;
143
- travel.billCode = dept.deptCode;
144
- travel.mastName = dept.mastName;
145
- travel.createBy = dept.createBy;
146
- travel.whatDone = `${whatDone}${dept.deptName}`;
147
- return travel;
148
- }
149
-
150
- /** 转换成记录日志需要的数据(第一层,不包含菜单) */
151
- static toTravelData(card?: IDeptResponse | IDeptResponse[], whatDone: string = ""): TCore.ISysTravelResponse[] {
152
- if (_.isNil(card)) {
153
- return [];
154
- }
155
- if (_.isArray(card)) {
156
- return card.map((u) => {
157
- return this.toTravel(u, whatDone);
158
- });
159
- }
160
- return [this.toTravel(card, whatDone)];
161
- }
162
- }
@@ -1,93 +0,0 @@
1
- import { construct } from "@aximario/json-tree";
2
- import { IBaseResponse, TBaseResponse } from "../base/IBaseResponse";
3
-
4
- export interface IViewCtrlResponse extends IBaseResponse<IViewCtrlResponse> {
5
- asParent: number;
6
- ctrlCode: string;
7
- ctrlName: string;
8
- ctrlPara: string;
9
- entityID: string;
10
- formType: string;
11
- jsMethod: string;
12
- metaData: string;
13
- parentID: number;
14
- queuesBy: number;
15
- showCode: string;
16
- showName: string;
17
- uniqueID: number;
18
- userIndx: number;
19
- view4url: string;
20
- viewCode: string;
21
- viewIcon: string;
22
- viewMemo: string;
23
- viewName: string;
24
- viewPara: string;
25
- vitualID: number;
26
- whoBuild: number;
27
- withPara: string;
28
- wtuiMain: number;
29
- labelVal: string;
30
- viewIndx: number;
31
- //虚拟字段
32
- title: string;
33
- name: string;
34
- icon: string;
35
- /**
36
- * vxe中的路由
37
- * */
38
- routerLink?: {
39
- path?: string
40
- name?: string | number | null
41
- query?: any
42
- params?: any
43
- target?: null | '' | '_blank' | '_self' | '_parent' | '_top'
44
- };
45
- /**
46
- * 按钮权限
47
- * */
48
- permissions: IViewCtrlResponse[];
49
- }
50
-
51
- export class TViewCtrlResponse extends TBaseResponse<IViewCtrlResponse> implements IViewCtrlResponse {
52
- asParent: number = 0;
53
- ctrlCode: string = "";
54
- ctrlName: string = "";
55
- ctrlPara: string = "";
56
- entityID: string = "";
57
- formType: string = "";
58
- jsMethod: string = "";
59
- metaData: string = "";
60
- parentID: number = 0;
61
- queuesBy: number = 0;
62
- showCode: string = "";
63
- showName: string = "";
64
- uniqueID: number = 0;
65
- userIndx: number = 0;
66
- view4url: string = "";
67
- viewCode: string = "";
68
- viewIcon: string = "";
69
- viewMemo: string = "";
70
- viewName: string = "";
71
- viewPara: string = "";
72
- vitualID: number = 0;
73
- whoBuild: number = 0;
74
- withPara: string = "";
75
- wtuiMain: number = 0;
76
- labelVal: string = "";
77
- viewIndx: number = 0;
78
- title: string = "";
79
- name: string = "";
80
- icon: string = "";
81
-
82
- permissions: IViewCtrlResponse[] = [];
83
-
84
- static toTree(listView: IViewCtrlResponse[]) {
85
- listView.forEach((element) => {
86
- element.title = element.viewName;
87
- element.name = element.view4url;
88
- element.icon = `iconfont ${element.viewIcon}`;
89
- element.children = [];
90
- });
91
- return construct(listView, { id: "uniqueID", pid: "parentID", children: "children" }) as IViewCtrlResponse[];
92
- }
93
- }