@ningboyz/types 1.0.180 → 1.0.182
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
|
@@ -32,14 +32,6 @@ export interface IViewCtrlResponse extends IBaseResponse<IViewCtrlResponse> {
|
|
|
32
32
|
title: string;
|
|
33
33
|
name: string;
|
|
34
34
|
icon: string;
|
|
35
|
-
/**
|
|
36
|
-
* vxe中的路由
|
|
37
|
-
* */
|
|
38
|
-
routerLink: string;
|
|
39
|
-
/**
|
|
40
|
-
* 按钮权限
|
|
41
|
-
* */
|
|
42
|
-
permissions: IViewCtrlResponse[];
|
|
43
35
|
}
|
|
44
36
|
|
|
45
37
|
export class TViewCtrlResponse extends TBaseResponse<IViewCtrlResponse> implements IViewCtrlResponse {
|
|
@@ -72,8 +64,6 @@ export class TViewCtrlResponse extends TBaseResponse<IViewCtrlResponse> implemen
|
|
|
72
64
|
title: string = "";
|
|
73
65
|
name: string = "";
|
|
74
66
|
icon: string = "";
|
|
75
|
-
routerLink: string = "";
|
|
76
|
-
permissions: IViewCtrlResponse[] = [];
|
|
77
67
|
|
|
78
68
|
static toTree(listView: IViewCtrlResponse[]) {
|
|
79
69
|
listView.forEach((element) => {
|
|
@@ -0,0 +1,93 @@
|
|
|
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
|
+
}
|