提交 92761f9a 编写于 作者: Neuromancer255's avatar Neuromancer255

多数据部件模板调整 --fix2

上级 a83d9f8b
...@@ -745,7 +745,13 @@ ...@@ -745,7 +745,13 @@
public item_click(item:any,index:number){ public item_click(item:any,index:number){
if(this.showCheack){ if(this.showCheack){
let count = this.selectedArray.findIndex((i) => { let count = this.selectedArray.findIndex((i) => {
return i.mobentityid == item.mobentityid; <#if ctrl.getPSAppDataEntity?? && ctrl.getPSAppDataEntity()??>
<#if ctrl.getPSAppDataEntity().getKeyPSAppDEField?? && ctrl.getPSAppDataEntity().getKeyPSAppDEField()??>
<#if ctrl.getPSAppDataEntity().getKeyPSAppDEField().getName?? && ctrl.getPSAppDataEntity().getKeyPSAppDEField().getName()??>
return i.${ctrl.getPSAppDataEntity().getKeyPSAppDEField().getName()?lower_case} == item.mobentityid;
</#if>
</#if>
</#if>
}); });
if (count === -1) { if (count === -1) {
this.selectedArray.push(item); this.selectedArray.push(item);
...@@ -767,7 +773,14 @@ ...@@ -767,7 +773,14 @@
*/ */
public checkboxSelect(item:any){ public checkboxSelect(item:any){
let count = this.selectedArray.findIndex((i) => { let count = this.selectedArray.findIndex((i) => {
return i.mobentityid == item.mobentityid; <#if ctrl.getPSAppDataEntity?? && ctrl.getPSAppDataEntity()??>
<#if ctrl.getPSAppDataEntity().getKeyPSAppDEField?? && ctrl.getPSAppDataEntity().getKeyPSAppDEField()??>
<#if ctrl.getPSAppDataEntity().getKeyPSAppDEField().getName?? && ctrl.getPSAppDataEntity().getKeyPSAppDEField().getName()??>
return i.${ctrl.getPSAppDataEntity().getKeyPSAppDEField().getName()?lower_case} == item.mobentityid;
</#if>
</#if>
</#if>
}); });
let re = true; let re = true;
if(count == -1){ if(count == -1){
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册