提交 c66fef4e 编写于 作者: KK's avatar KK

主状态界面行为 --fix

上级 4756d436
...@@ -15,7 +15,6 @@ TARGET=PSAPPDATAENTITY ...@@ -15,7 +15,6 @@ TARGET=PSAPPDATAENTITY
<#assign exist = true> <#assign exist = true>
</#list> </#list>
</#if> </#if>
<#if exist??>
import EntityUIActionBase from '@/utils/ui-service-base/entity-ui-action-base'; import EntityUIActionBase from '@/utils/ui-service-base/entity-ui-action-base';
import { Util, Loading } from '@/ibiz-core/utils'; import { Util, Loading } from '@/ibiz-core/utils';
import { Notice } from '@/utils'; import { Notice } from '@/utils';
...@@ -36,6 +35,13 @@ export default class ${srfclassname(item.getCodeName())}UIActionBase extends Ent ...@@ -36,6 +35,13 @@ export default class ${srfclassname(item.getCodeName())}UIActionBase extends Ent
*/ */
public isEnableWorkflow:boolean = false; public isEnableWorkflow:boolean = false;
/**
* 当前UI服务对应的数据服务对象
*
* @memberof ${srfclassname('${item.getCodeName()}')}UIServiceBase
*/
public dataService:${srfclassname('${item.getCodeName()}')}Service = new ${srfclassname('${item.getCodeName()}')}Service();
/** /**
* 所有关联视图 * 所有关联视图
* *
...@@ -85,9 +91,8 @@ export default class ${srfclassname(item.getCodeName())}UIActionBase extends Ent ...@@ -85,9 +91,8 @@ export default class ${srfclassname(item.getCodeName())}UIActionBase extends Ent
* @memberof ${srfclassname('${item.getCodeName()}')}UIServiceBase * @memberof ${srfclassname('${item.getCodeName()}')}UIServiceBase
*/ */
constructor(opts: any = {}) { constructor(opts: any = {}) {
super(); super(opts);
this.authService = window.authServiceConstructor.getService("${srfclassname('${item.getCodeName()}')?lower_case}"); this.authService = new ${srfclassname('${item.getCodeName()}')}AuthService(opts);
this.dataService = window.appEntityServiceConstructor.getService("${srfclassname('${item.getCodeName()}')?lower_case}");
this.initViewMap(); this.initViewMap();
this.initDeMainStateMap(); this.initDeMainStateMap();
this.initDeMainStateOPPrivsMap(); this.initDeMainStateOPPrivsMap();
...@@ -130,18 +135,19 @@ export default class ${srfclassname(item.getCodeName())}UIActionBase extends Ent ...@@ -130,18 +135,19 @@ export default class ${srfclassname(item.getCodeName())}UIActionBase extends Ent
<#if item.getPSDataEntity?? && item.getPSDataEntity()?? && item.getPSDataEntity().getAllPSDEMainStates()??> <#if item.getPSDataEntity?? && item.getPSDataEntity()?? && item.getPSDataEntity().getAllPSDEMainStates()??>
<#list item.getPSDataEntity().getAllPSDEMainStates() as demState> <#list item.getPSDataEntity().getAllPSDEMainStates() as demState>
<#if demState.getMSTag()??> <#if demState.getMSTag()??>
this.allDeMainStateOPPrivsMap.set('${demState.getMSTag()}',<@getMainStateOPPrivs mainState=demState dataEntity=item.getPSDataEntity() />); this.allDeMainStateOPPrivsMap.set('${demState.getMSTag()}',Object.assign(<@getDataEntityMainStateOPPrivs mainState=demState dataEntity=item.getPSDataEntity() />,<@getMainStateOPPrivs mainState=demState />));
</#if> </#if>
</#list> </#list>
</#if> </#if>
} }
<#if item.getAllPSAppDEUIActions()??>
<#list item.getAllPSAppDEUIActions() as appdeUIAction> <#list item.getAllPSAppDEUIActions() as appdeUIAction>
${P.getLogicCode(appdeUIAction, "LOGIC.vue").code} ${P.getLogicCode(appdeUIAction, "LOGIC.vue").code}
</#list> </#list>
</#if>
/** /**
* 获取指定数据的重定向页面 * 获取指定数据的重定向页面
* *
* @param srfkey 数据主键 * @param srfkey 数据主键
...@@ -213,15 +219,14 @@ ${P.getLogicCode(appdeUIAction, "LOGIC.vue").code} ...@@ -213,15 +219,14 @@ ${P.getLogicCode(appdeUIAction, "LOGIC.vue").code}
</#if> </#if>
} }
//多表单,todo //多表单,todo
const isEnableMultiForm:boolean = false; const multiFormDEField:string|null =<#if de.getFormTypePSDEField()??>"${de.getFormTypePSDEField().getCodeName()?lower_case}"<#else>null</#if>;
const multiFormDEField:string|null =null;
if (isEnableMultiForm && multiFormDEField) { if (multiFormDEField) {
const objFormValue:string = curData[multiFormDEField]; const objFormValue:string = curData[multiFormDEField];
if(!Environment.isAppMode){ if(!Environment.isAppMode){
return 'MOBEDITVIEW'+objFormValue; return 'MOBEDITVIEW:'+objFormValue;
} }
return 'EDITVIEW'+objFormValue; return 'EDITVIEW:'+objFormValue;
} }
if(!Environment.isAppMode){ if(!Environment.isAppMode){
if(this.getDEMainStateTag(curData)){ if(this.getDEMainStateTag(curData)){
...@@ -364,4 +369,3 @@ ${P.getLogicCode(appdeUIAction, "LOGIC.vue").code} ...@@ -364,4 +369,3 @@ ${P.getLogicCode(appdeUIAction, "LOGIC.vue").code}
} }
} }
\ No newline at end of file
</#if>
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册