@ningboyz/types 1.6.127 → 1.6.128

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.127",
4
+ "version": "1.6.128",
5
5
  "private": false,
6
6
  "description": "宁波甬政类型库",
7
7
  "author": "nbyt-syq",
@@ -164,6 +164,8 @@ export interface ISysMenuWithExpdResponse {
164
164
  listGamsText: string;
165
165
  /** 报销标准账套名称 */
166
166
  listCnfgText: string;
167
+ /**参数约定 */
168
+ menuParaConv: ISysMenuWithExpdResponseMenuPara;
167
169
  }
168
170
 
169
171
  export class TSysMenuWithExpdResponse implements ISysMenuWithExpdResponse {
@@ -322,16 +324,11 @@ export class TSysMenuWithExpdResponse implements ISysMenuWithExpdResponse {
322
324
 
323
325
  menuParaConv: ISysMenuWithExpdResponseMenuPara = new TSysMenuWithExpdResponseMenuPara();
324
326
 
325
- public parseJsonTest() {
326
- const defaultMenuPara = new TSysMenuWithExpdResponseMenuPara();
327
- if (_.isEmpty(this.menuPara)) {
328
- return defaultMenuPara;
327
+ public parseJsons(listMenu: ISysMenuWithExpdResponse[]) {
328
+ for (let i = 0; i < listMenu.length; i++) {
329
+ const menu = listMenu[i];
330
+ menu.menuParaConv = TSysMenuWithExpdResponse.parseJson(menu.menuPara);
329
331
  }
330
- try {
331
- const obj = JSON.parse(this.menuPara) as TSysMenuWithExpdResponseMenuPara;
332
- return _.merge(defaultMenuPara, obj);
333
- } catch (e) {}
334
- return defaultMenuPara;
335
332
  }
336
333
 
337
334
  public static parseJson(menuPara: string) {