提交 d3b37428 编写于 作者: Mosher's avatar Mosher

Merge branch 'dev' of http://demo.ibizlab.cn/ibizr7pfstdtempl/ibizvuer7 into dev

<#ibiztemplate> <#ibiztemplate>
TARGET=PSAPPDATAENTITY TARGET=PSAPPDATAENTITY
</#ibiztemplate> </#ibiztemplate>
<#macro getMainStateOPPrivs mainState>
<#compress>
<#if mainState.getPSDEMainStateOPPrivs?? && mainState.getPSDEMainStateOPPrivs()??>
{<#list mainState.getPSDEMainStateOPPrivs() as mainStateOPPriv>'${mainStateOPPriv.getName()}':${mainStateOPPriv.isOPPrivAllowMode()?c<#if mainStateOPPriv_has_next>,</#if>}</#list>}
<#else>
{}
</#if>
<#compress>
</#macro>
import { Environment } from '@/environments/environment'; import { Environment } from '@/environments/environment';
import { UIActionTool,Util } from '@/utils'; import { UIActionTool,Util } from '@/utils';
import UIService from '../ui-service'; import UIService from '../ui-service';
...@@ -85,6 +94,13 @@ export default class ${srfclassname('${item.getCodeName()}')}UIServiceBase exten ...@@ -85,6 +94,13 @@ export default class ${srfclassname('${item.getCodeName()}')}UIServiceBase exten
*/ */
public allDeMainStateMap:Map<string,string> = new Map(); public allDeMainStateMap:Map<string,string> = new Map();
/**
* 主状态操作标识Map
*
* @memberof ${srfclassname('${item.getCodeName()}')}UIServiceBase
*/
public allDeMainStateOPPrivsMap:Map<string,any> = new Map();
/** /**
* Creates an instance of ${srfclassname('${item.getCodeName()}')}UIServiceBase. * Creates an instance of ${srfclassname('${item.getCodeName()}')}UIServiceBase.
* *
...@@ -95,6 +111,7 @@ export default class ${srfclassname('${item.getCodeName()}')}UIServiceBase exten ...@@ -95,6 +111,7 @@ export default class ${srfclassname('${item.getCodeName()}')}UIServiceBase exten
super(opts); super(opts);
this.initViewMap(); this.initViewMap();
this.initDeMainStateMap(); this.initDeMainStateMap();
this.initDeMainStateOPPrivsMap();
} }
/** /**
...@@ -121,9 +138,21 @@ export default class ${srfclassname('${item.getCodeName()}')}UIServiceBase exten ...@@ -121,9 +138,21 @@ export default class ${srfclassname('${item.getCodeName()}')}UIServiceBase exten
<#if demState.getMSTag()??> <#if demState.getMSTag()??>
this.allDeMainStateMap.set('${demState.getMSTag()}','${demState.getMSTag()}'); this.allDeMainStateMap.set('${demState.getMSTag()}','${demState.getMSTag()}');
</#if> </#if>
<#-- <#if demState.getId()?? && demState.getMSTag()??> </#list>
this.allDeMainStateMap.set('${demState.getId()}','${demState.getMSTag()}'); </#if>
</#if> --> }
/**
* 初始化主状态操作标识
*
* @memberof ${srfclassname('${item.getCodeName()}')}UIServiceBase
*/
public initDeMainStateOPPrivsMap(){
<#if item.getPSDataEntity?? && item.getPSDataEntity()?? && item.getPSDataEntity().getAllPSDEMainStates()??>
<#list item.getPSDataEntity().getAllPSDEMainStates() as demState>
<#if demState.getMSTag()??>
this.allDeMainStateOPPrivsMap.set('${demState.getMSTag()}',<@getMainStateOPPrivs mainState=demState />);
</#if>
</#list> </#list>
</#if> </#if>
} }
...@@ -310,8 +339,6 @@ ${P.getLogicCode(appdeUIAction, "LOGIC.vue").code} ...@@ -310,8 +339,6 @@ ${P.getLogicCode(appdeUIAction, "LOGIC.vue").code}
console.error(`当前数据对象不包含属性singleMainField,可能会发生错误`); console.error(`当前数据对象不包含属性singleMainField,可能会发生错误`);
} }
}) })
let strTag:String = "";
for (let i = 0; i <= 1; i++) { for (let i = 0; i <= 1; i++) {
let strTag:string = (curData[this.mainStateFields[0]])?(i == 0) ? curData[this.mainStateFields[0]] : "":""; let strTag:string = (curData[this.mainStateFields[0]])?(i == 0) ? curData[this.mainStateFields[0]] : "":"";
if (this.mainStateFields.length >= 2) { if (this.mainStateFields.length >= 2) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册