提交 46246369 编写于 作者: KK's avatar KK
......@@ -340,7 +340,7 @@ ${ctrl.render.code}
promice.then((response: any) => {
if (!response.status || response.status !== 200) {
if (response.errorMessage) {
this.$notify({ type: 'danger', message: response.errorMessage });
this.$notice.error(response.error.message);
}
return;
}
......@@ -354,7 +354,7 @@ ${ctrl.render.code}
if (response && response.status === 401) {
return;
}
this.$notify({ type: 'danger', message: response.errorMessage });
this.$notice.error(response.error.message);
});
}
......@@ -372,7 +372,7 @@ ${ctrl.render.code}
promice.then((response: any) => {
if (!response.status || response.status !== 200) {
if (response.errorMessage) {
this.$notify({ type: 'danger', message: response.errorMessage });
this.$notice.error(response.error.message);
}
return;
}
......@@ -382,7 +382,7 @@ ${ctrl.render.code}
if (response && response.status === 401) {
return;
}
this.$notify({ type: 'danger', message: response.errorMessage });
this.$notice.error(response.error.message);
});
}
......
<#ibiztemplate>
TARGET=PSAPPDATAENTITY
</#ibiztemplate>
import { Http,Util } from '@/ibiz-core/utils';
import { Http,Util,HttpResponse } from '@/ibiz-core/utils';
<#-- import {EntityService} from '@/ibiz-core/service/entity-service-base'; -->
import { EntityService } from '@/ibiz-core';
<#if item.getAllPSAppDELogics()??>
......@@ -364,12 +364,12 @@ import { ${srfclassname('${singleLogic.getCodeName()}')}Logic } from './${srffil
if(context.srfsessionkey && !Object.is(this.tempStorage.getItem(context.srfsessionkey+'_${srfpluralize(item.codeName)?lower_case}'),'undefined')){
let result:any = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_${srfpluralize(item.codeName)?lower_case}') as any);
if(result){
return {"status":200,"data":result};
return new HttpResponse(200,{});
}else{
return {"status":200,"data":[]};
return new HttpResponse(200,{});
}
}else{
return {"status":200,"data":[]};
return new HttpResponse(200,{});
}
</#list>
</#if>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册