@ningboyz/types 1.3.114 → 1.3.115
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
|
@@ -100,6 +100,18 @@ export interface IViewCtrlResponseWithParaConv {
|
|
|
100
100
|
keepAlive: boolean;
|
|
101
101
|
componentName: string;
|
|
102
102
|
skdwType: TSkdwType;
|
|
103
|
+
defaultKey: string;
|
|
104
|
+
menuUUID: string;
|
|
105
|
+
gzjgMain?: number;
|
|
106
|
+
showTab: string | string[];
|
|
107
|
+
tabItems?: {
|
|
108
|
+
key: string;
|
|
109
|
+
tabsTitle: string;
|
|
110
|
+
exportExcelFileName: string;
|
|
111
|
+
}[];
|
|
112
|
+
changeUUID?: string;
|
|
113
|
+
interfaceUUID?: string; //其他页面的UUID
|
|
114
|
+
pathId?: string; // 附件的dictindx
|
|
103
115
|
}
|
|
104
116
|
|
|
105
117
|
export class TViewCtrlResponseWithParaConv implements IViewCtrlResponseWithParaConv {
|
|
@@ -108,4 +120,16 @@ export class TViewCtrlResponseWithParaConv implements IViewCtrlResponseWithParaC
|
|
|
108
120
|
keepAlive: boolean = false;
|
|
109
121
|
componentName: string = "";
|
|
110
122
|
skdwType: TSkdwType = USER_ACNO_DATA_TYPE_NULL;
|
|
123
|
+
defaultKey: string= "";
|
|
124
|
+
menuUUID: string = "";
|
|
125
|
+
gzjgMain?: number = 0;
|
|
126
|
+
showTab: string | string[] = "";
|
|
127
|
+
tabItems?: {
|
|
128
|
+
key: string;
|
|
129
|
+
tabsTitle: string;
|
|
130
|
+
exportExcelFileName: string;
|
|
131
|
+
}[] = [];
|
|
132
|
+
changeUUID?: string = "";
|
|
133
|
+
interfaceUUID?: string = ""; //其他页面的UUID
|
|
134
|
+
pathId?: string = ""; // 附件的dictindx
|
|
111
135
|
}
|
|
@@ -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
|
-
}
|