@ningboyz/types 1.3.141 → 1.3.143

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.3.141",
4
+ "version": "1.3.143",
5
5
  "private": false,
6
6
  "description": "宁波甬政类型库",
7
7
  "author": "nbyt-syq",
@@ -2,6 +2,7 @@ import { construct } from "@aximario/json-tree";
2
2
  import { IBaseResponse, TBaseResponse } from "../base/IBaseResponse";
3
3
  import _ from "lodash";
4
4
  import { TSkdwType, USER_ACNO_DATA_TYPE_NULL } from "../const/const_user_acno";
5
+ import { TWtui } from "..";
5
6
 
6
7
  export interface IViewCtrlResponse extends IBaseResponse<IViewCtrlResponse> {
7
8
  asParent: number;
@@ -92,6 +93,17 @@ export class TViewCtrlResponse extends TBaseResponse<IViewCtrlResponse> implemen
92
93
  } catch (e: any) {}
93
94
  return result;
94
95
  }
96
+
97
+ static toWtuiNode(viewCtrl: TWtui.IViewCtrlResponse) {
98
+ const node = new TWtui.TWtuiNodeResponse();
99
+ _.merge(node, viewCtrl);
100
+ node.nodeName = viewCtrl.viewName;
101
+ return node;
102
+ }
103
+
104
+ static toListWtuiNode(listViewCtrl: TWtui.IViewCtrlResponse[]) {
105
+ return listViewCtrl.map((u) => this.toWtuiNode(u));
106
+ }
95
107
  }
96
108
 
97
109
  export interface IViewCtrlResponseWithParaConv {
@@ -120,7 +132,7 @@ export class TViewCtrlResponseWithParaConv implements IViewCtrlResponseWithParaC
120
132
  keepAlive: boolean = false;
121
133
  componentName: string = "";
122
134
  skdwType: TSkdwType = USER_ACNO_DATA_TYPE_NULL;
123
- defaultKey: string= "";
135
+ defaultKey: string = "";
124
136
  menuUUID: string = "";
125
137
  gzjgMain?: number = 0;
126
138
  showTab: string | string[] = "";