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

多数据部件全选ui逻辑调整 --fix3

上级 9af6a01d
......@@ -56,7 +56,7 @@
<@outPutItemLaoutPanel ctrl />
<#-- END:输出项布局面板 -->
<#else>
<van-cell :ref="item.srfkey" @click="item_click(item)">
<van-cell :ref="item.srfkey" @click="item_click(item,index)">
<#--实体列表项集合-->
<#if ctrl.getPSDEListItems()??>
<!-- 列表视图样式 -->
......@@ -64,7 +64,7 @@
<!-- 图标视图样式 -->
<app-icon-list :item="item" v-if="controlStyle === 'ICONVIEW'"></app-icon-list>
<template #right-icon>
<van-checkbox :checked="item.checked" v-show="showCheack" :name="item.mobentityname"/>
<van-checkbox ref="checkboxes" :checked="item.checked" v-show="showCheack" :name="item.mobentityname"/>
</template>
<#else>
<div>暂无数据</div>
......
......@@ -742,7 +742,7 @@
*
* @memberof ${srfclassname('${ctrl.codeName}')}
*/
public item_click(item:any){
public item_click(item:any,index:number){
if(this.showCheack){
let count = this.selectedArray.findIndex((i) => {
return i.mobentityid == item.mobentityid;
......@@ -752,6 +752,7 @@
} else {
this.selectedArray.splice(count, 1);
}
this.$refs.checkboxes[index].toggle();
this.checkboxSelect(item)
} else {
this.goPage(item)
......@@ -776,8 +777,6 @@
this.items[index].checked = re;
}
});
console.log(this.items);
this.$forceUpdate();
}
/**
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册