提交 74e8a196 编写于 作者: tony001's avatar tony001

补充动态数据看板接口存储 --- fix1

上级 49eab1a6
...@@ -96,7 +96,7 @@ export default class ${srfclassname('${item.getCodeName()}')}UtilServiceBase ext ...@@ -96,7 +96,7 @@ export default class ${srfclassname('${item.getCodeName()}')}UtilServiceBase ext
this.stoageDataService.getDynaModel(context,requestParam).then((res:any) =>{ this.stoageDataService.getDynaModel(context,requestParam).then((res:any) =>{
if(res && res.status === 200){ if(res && res.status === 200){
const data: any = res.data; const data: any = res.data;
resolve({status:200,data:data.model?data.model:[]}); resolve({status:200,data:(data && data.model)?data.model:[]});
} }
}).catch((error:any) =>{ }).catch((error:any) =>{
reject(error); reject(error);
...@@ -129,7 +129,6 @@ export default class ${srfclassname('${item.getCodeName()}')}UtilServiceBase ext ...@@ -129,7 +129,6 @@ export default class ${srfclassname('${item.getCodeName()}')}UtilServiceBase ext
const requestParam:any ={configType:data.utilServiceName,targetType:data.modelid,model:data.model}; const requestParam:any ={configType:data.utilServiceName,targetType:data.modelid,model:data.model};
this.stoageDataService.setDynaModel(context,requestParam).then((res:any) =>{ this.stoageDataService.setDynaModel(context,requestParam).then((res:any) =>{
if(res && res.status === 200){ if(res && res.status === 200){
const data: any = res.data;
resolve({status:200,data:data.model}); resolve({status:200,data:data.model});
} }
}).catch((error:any) =>{ }).catch((error:any) =>{
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册