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