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

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

上级 81db9f09
...@@ -10,11 +10,12 @@ ...@@ -10,11 +10,12 @@
<ion-list class="items"> <ion-list class="items">
<template v-if="(viewType == 'DEMOBMDVIEW9') && controlStyle != 'SWIPERVIEW' "> <template v-if="(viewType == 'DEMOBMDVIEW9') && controlStyle != 'SWIPERVIEW' ">
<div class="selectall"> <div class="selectall">
<ion-checkbox :checked="selectAllIschecked" v-show="showCheack" @ionChange="checkboxAll"></ion-checkbox> <van-checkbox class="checkAllBtn" v-model="selectAllIschecked" v-show="showCheack" @click="checkboxAll">全选</van-checkbox>
<ion-label class="selectal-label" v-show="showCheack">全选</ion-label>
</div> </div>
<ion-item-sliding ref="sliding" v-for="(item, index) in items" @click="item_click(item)" :key="index" class="app-mob-mdctrl-item"> <van-checkbox-group v-model="checkedResult" ref="checkboxGroup">
<#-- BENGIN:输出界面行为组 --> <van-cell-group>
<van-swipe-cell v-for="(item, index) in items" :key="index" class="app-mob-mdctrl-item">
<#-- BENGIN:输出界面行为组 -->
<@outPutActionGroup ctrl /> <@outPutActionGroup ctrl />
<#-- END:输出界面行为组 --> <#-- END:输出界面行为组 -->
<#if ctrl.getItemPSLayoutPanel()??> <#if ctrl.getItemPSLayoutPanel()??>
...@@ -22,20 +23,27 @@ ...@@ -22,20 +23,27 @@
<@outPutItemLaoutPanel ctrl /> <@outPutItemLaoutPanel ctrl />
<#-- END:输出项布局面板 --> <#-- END:输出项布局面板 -->
<#else> <#else>
<ion-item> <van-cell :ref="item.srfkey" @click="item_click(item,index)">
<ion-checkbox :checked="item.checked" v-show="showCheack" @click.stop="checkboxSelect(item)"></ion-checkbox> <#--实体列表项集合-->
<#--实体列表项集合--> <#if ctrl.getPSDEListItems()??>
<#if ctrl.getPSDEListItems()??> <!-- 列表视图样式 -->
<!-- 列表视图样式 --> <app-list-default <#if ctrl.getPSDEListItems()??>:dataItemNames = "[<#list ctrl.getPSDEListItems() as item><#if item.getDataItemName()??>'${item.getDataItemName()}',</#if></#list>]"</#if> :item="item" major="<#if appde.getMajorPSAppDEField()??>${appde.getMajorPSAppDEField().getCodeName()?lower_case}<#else>srfmajortext</#if>" v-if="controlStyle.substring(0,8) === 'LISTVIEW'"></app-list-default>
<app-list-default <#if ctrl.getPSDEListItems()??>:dataItemNames = "[<#list ctrl.getPSDEListItems() as item><#if item.getDataItemName()??>'${item.getDataItemName()}',</#if></#list>]"</#if> :item="item" major="<#if appde.getMajorPSAppDEField()??>${appde.getMajorPSAppDEField().getCodeName()?lower_case}<#else>srfmajortext</#if>" v-if="controlStyle.substring(0,8) === 'LISTVIEW'"></app-list-default> <!-- 图标视图样式 -->
<!-- 图标视图样式 --> <app-icon-list :item="item" v-if="controlStyle === 'ICONVIEW'"></app-icon-list>
<app-icon-list :item="item" v-if="controlStyle === 'ICONVIEW'"></app-icon-list> <template #right-icon>
<#else> <van-checkbox ref="checkboxes" :checked="item.checked" v-show="showCheack" :name="item.mobentityname"/>
<div>暂无数据</div> </template>
</#if> <#else>
</ion-item> <div>暂无数据</div>
</#if> </#if>
</ion-item-sliding> </van-cell>
<template #right>
<van-button square type="danger" text="删除" style="height:100%" @click="remove([item])"/>
</template>
</#if>
</van-swipe-cell>
</van-cell-group>
</van-checkbox-group>
<ion-button size="small" color="secondary" v-if="!isTempMode && !allLoaded" style ="position: relative;left: calc( 50% - 44px);" @click="loadBottom">{{$t('app.button.loadmore')}}</ion-button> <ion-button size="small" color="secondary" v-if="!isTempMode && !allLoaded" style ="position: relative;left: calc( 50% - 44px);" @click="loadBottom">{{$t('app.button.loadmore')}}</ion-button>
</template> </template>
</ion-list> </ion-list>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册