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

多数据删除操作异常

上级 67a11391
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<ion-checkbox :checked="selectAllIschecked" v-show="showCheack" @ionChange="checkboxAll"></ion-checkbox> <ion-checkbox :checked="selectAllIschecked" v-show="showCheack" @ionChange="checkboxAll"></ion-checkbox>
<ion-label class="selectal-label" v-show="showCheack">全选</ion-label> <ion-label class="selectal-label" v-show="showCheack">全选</ion-label>
</div> </div>
<ion-item-sliding v-for="(item, index) in items" @click="goPage(item)" :key="index" class="app-mob-mdctrl-item"> <ion-item-sliding ref="sliding" v-for="(item, index) in items" @click="goPage(item)" :key="index" class="app-mob-mdctrl-item">
<#-- BENGIN:输出界面行为组 --> <#-- BENGIN:输出界面行为组 -->
<@outPutActionGroup ctrl /> <@outPutActionGroup ctrl />
<#-- END:输出界面行为组 --> <#-- END:输出界面行为组 -->
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
<ion-checkbox :checked="selectAllIschecked" v-show="showCheack" @ionChange="checkboxAll"></ion-checkbox> <ion-checkbox :checked="selectAllIschecked" v-show="showCheack" @ionChange="checkboxAll"></ion-checkbox>
<ion-label class="selectal-label" v-show="showCheack">全选</ion-label> <ion-label class="selectal-label" v-show="showCheack">全选</ion-label>
</div> </div>
<ion-item-sliding v-for="(item, index) in items" @click="goPage(item)" :key="index" class="app-mob-mdctrl-item"> <ion-item-sliding ref="sliding" v-for="(item, index) in items" @click="goPage(item)" :key="index" class="app-mob-mdctrl-item">
<#-- BENGIN:输出界面行为组 --> <#-- BENGIN:输出界面行为组 -->
<@outPutActionGroup ctrl /> <@outPutActionGroup ctrl />
<#-- END:输出界面行为组 --> <#-- END:输出界面行为组 -->
......
...@@ -375,6 +375,7 @@ ...@@ -375,6 +375,7 @@
if (response && response.status === 200) { if (response && response.status === 200) {
this.$notice.success((this.$t('app.message.deleteSccess') as string)); this.$notice.success((this.$t('app.message.deleteSccess') as string));
this.load(); this.load();
this.closeSliding();
resolve(response); resolve(response);
} else { } else {
this.$notice.error(response.message); this.$notice.error(response.message);
...@@ -759,6 +760,21 @@ ...@@ -759,6 +760,21 @@
*/ */
public selectAllIschecked = false; public selectAllIschecked = false;
/**
* 关闭滑动项
*
* @memberof Mdctrl
*/
public closeSliding(){
let sliding :any = this.$refs.sliding;
if(sliding){
sliding.forEach((item:any) => {
item.closeOpened();
});
}
}
<#ibizinclude> <#ibizinclude>
../@MACRO/CONTROL/CONTROL_BOTTOM-BASE.vue.ftl ../@MACRO/CONTROL/CONTROL_BOTTOM-BASE.vue.ftl
</#ibizinclude> </#ibizinclude>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册