@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
|
@@ -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
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
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) {
|