@ningboyz/types 1.6.144 → 1.6.145
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
|
@@ -3,7 +3,6 @@ import _ from "lodash";
|
|
|
3
3
|
import { TWithEXPDS, TWithMYOA, WithEXPDS, WithMYOA } from "./IUserResponse.ts";
|
|
4
4
|
import { IPathResponsePathPara, TPathResponsePathPara } from "./IPathResponsePartPara.ts";
|
|
5
5
|
import { IWtuiViewResponse } from "../wtui/IWtuiViewResponse.ts";
|
|
6
|
-
import { IWtuiFormResponse } from "../wtui/IWtuiFormResponse.ts";
|
|
7
6
|
|
|
8
7
|
export interface IPartResponse {
|
|
9
8
|
whoBuild: number;
|
|
@@ -52,8 +51,7 @@ export interface IPartResponse {
|
|
|
52
51
|
/** 内部管理:允许查看请假统计 */
|
|
53
52
|
asLeaderWhenMYOA: number;
|
|
54
53
|
|
|
55
|
-
get4View:
|
|
56
|
-
get4Form: IWtuiViewResponse[];
|
|
54
|
+
get4View: IWtuiViewResponse[];
|
|
57
55
|
}
|
|
58
56
|
|
|
59
57
|
export class TPartResponse implements IPartResponse {
|
|
@@ -99,8 +97,7 @@ export class TPartResponse implements IPartResponse {
|
|
|
99
97
|
listUserWhenExpd: number = 0;
|
|
100
98
|
asLeaderWhenMYOA: number = 0;
|
|
101
99
|
|
|
102
|
-
get4View:
|
|
103
|
-
get4Form: IWtuiViewResponse[] = [];
|
|
100
|
+
get4View: IWtuiViewResponse[] = [];
|
|
104
101
|
|
|
105
102
|
static parseJson(partPara: string) {
|
|
106
103
|
const defaultPathPara = new TPathResponsePathPara();
|
|
@@ -129,15 +126,15 @@ export class TPartResponse implements IPartResponse {
|
|
|
129
126
|
}
|
|
130
127
|
|
|
131
128
|
/** 转化成记录日志需要的数据 */
|
|
132
|
-
static toTravelData(
|
|
133
|
-
if (_.isNil(
|
|
129
|
+
static toTravelData(part: IPartResponse | IPartResponse[] | undefined, buttonType: string): TCore.ISysTravelResponse[] {
|
|
130
|
+
if (_.isNil(part)) {
|
|
134
131
|
return [];
|
|
135
132
|
}
|
|
136
|
-
if (_.isArray(
|
|
137
|
-
return
|
|
133
|
+
if (_.isArray(part)) {
|
|
134
|
+
return part.map((u) => {
|
|
138
135
|
return this.toTravel(u, buttonType);
|
|
139
136
|
});
|
|
140
137
|
}
|
|
141
|
-
return [this.toTravel(
|
|
138
|
+
return [this.toTravel(part, buttonType)];
|
|
142
139
|
}
|
|
143
140
|
}
|
|
@@ -40,6 +40,10 @@ export interface IWtuiViewResponse {
|
|
|
40
40
|
expandOn: number; // #默认展开
|
|
41
41
|
|
|
42
42
|
labelVal: string;
|
|
43
|
+
vitualID: number;
|
|
44
|
+
wtuiCtrl: number;
|
|
45
|
+
showCode: string;
|
|
46
|
+
showName: string;
|
|
43
47
|
}
|
|
44
48
|
|
|
45
49
|
export class TWtuiViewResponse implements IWtuiViewResponse {
|
|
@@ -82,6 +86,10 @@ export class TWtuiViewResponse implements IWtuiViewResponse {
|
|
|
82
86
|
expandOn: number = 0;
|
|
83
87
|
listDict: IWtuiViewResponse[] = [];
|
|
84
88
|
labelVal: string = "";
|
|
89
|
+
vitualID: number = 0;
|
|
90
|
+
wtuiCtrl: number = 0;
|
|
91
|
+
showCode: string = "";
|
|
92
|
+
showName: string = "";
|
|
85
93
|
|
|
86
94
|
public static toLabelVal(list: IWtuiViewResponse[]) {
|
|
87
95
|
list.forEach((element) => {
|