@ningboyz/types 1.6.143 → 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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ningboyz/types",
3
3
  "type": "module",
4
- "version": "1.6.143",
4
+ "version": "1.6.145",
5
5
  "private": false,
6
6
  "description": "宁波甬政类型库",
7
7
  "author": "nbyt-syq",
@@ -2,6 +2,7 @@ import { TCore } from "../index.ts";
2
2
  import _ from "lodash";
3
3
  import { TWithEXPDS, TWithMYOA, WithEXPDS, WithMYOA } from "./IUserResponse.ts";
4
4
  import { IPathResponsePathPara, TPathResponsePathPara } from "./IPathResponsePartPara.ts";
5
+ import { IWtuiViewResponse } from "../wtui/IWtuiViewResponse.ts";
5
6
 
6
7
  export interface IPartResponse {
7
8
  whoBuild: number;
@@ -49,6 +50,8 @@ export interface IPartResponse {
49
50
  listUserWhenExpd: number;
50
51
  /** 内部管理:允许查看请假统计 */
51
52
  asLeaderWhenMYOA: number;
53
+
54
+ get4View: IWtuiViewResponse[];
52
55
  }
53
56
 
54
57
  export class TPartResponse implements IPartResponse {
@@ -93,6 +96,8 @@ export class TPartResponse implements IPartResponse {
93
96
  listUserGet4Part: string = "";
94
97
  listUserWhenExpd: number = 0;
95
98
  asLeaderWhenMYOA: number = 0;
99
+
100
+ get4View: IWtuiViewResponse[] = [];
96
101
 
97
102
  static parseJson(partPara: string) {
98
103
  const defaultPathPara = new TPathResponsePathPara();
@@ -121,15 +126,15 @@ export class TPartResponse implements IPartResponse {
121
126
  }
122
127
 
123
128
  /** 转化成记录日志需要的数据 */
124
- static toTravelData(card: IPartResponse | IPartResponse[] | undefined, buttonType: string): TCore.ISysTravelResponse[] {
125
- if (_.isNil(card)) {
129
+ static toTravelData(part: IPartResponse | IPartResponse[] | undefined, buttonType: string): TCore.ISysTravelResponse[] {
130
+ if (_.isNil(part)) {
126
131
  return [];
127
132
  }
128
- if (_.isArray(card)) {
129
- return card.map((u) => {
133
+ if (_.isArray(part)) {
134
+ return part.map((u) => {
130
135
  return this.toTravel(u, buttonType);
131
136
  });
132
137
  }
133
- return [this.toTravel(card, buttonType)];
138
+ return [this.toTravel(part, buttonType)];
134
139
  }
135
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) => {