提交 013da884 编写于 作者: KK's avatar KK

解决当左滑右滑行为不显示状态下仍可滑动 bug

上级 a8f6d127
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
</template> </template>
</ion-list> </ion-list>
<ion-list class="items"> <ion-list class="items">
<ion-item-sliding :ref="item.srfkey" v-for="(item, index) in items" @click="item_click(item)" :key="index" class="app-mob-mdctrl-item"> <ion-item-sliding :ref="item.srfkey" v-for="(item, index) in items" @click="item_click(item)" :key="index" class="app-mob-mdctrl-item" :disabled="item.sliding_disabled">
<#-- BENGIN:输出界面行为组 --> <#-- BENGIN:输出界面行为组 -->
<@outPutActionGroup ctrl /> <@outPutActionGroup ctrl />
<ion-item> <ion-item>
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,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 ref="sliding" v-for="(item, index) in items" @click="item_click(item)" :key="index" class="app-mob-mdctrl-item"> <ion-item-sliding ref="sliding" v-for="(item, index) in items" @click="item_click(item)" :key="index" class="app-mob-mdctrl-item" :disabled="item.sliding_disabled">
<#-- BENGIN:输出界面行为组 --> <#-- BENGIN:输出界面行为组 -->
<@outPutActionGroup ctrl /> <@outPutActionGroup ctrl />
<#-- END:输出界面行为组 --> <#-- END:输出界面行为组 -->
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,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 :ref="item.srfkey" v-for="(item, index) in items" @click="item_click(item)" :key="index" class="app-mob-mdctrl-item"> <ion-item-sliding :ref="item.srfkey" v-for="(item, index) in items" @click="item_click(item)" :key="index" class="app-mob-mdctrl-item" :disabled="item.sliding_disabled">
<#-- BENGIN:输出界面行为组 --> <#-- BENGIN:输出界面行为组 -->
<@outPutActionGroup ctrl /> <@outPutActionGroup ctrl />
<#-- END:输出界面行为组 --> <#-- END:输出界面行为组 -->
......
...@@ -531,6 +531,7 @@ ...@@ -531,6 +531,7 @@
} }
this.items.forEach((item:any)=>{ this.items.forEach((item:any)=>{
Object.assign(item,this.getActionState(item)); Object.assign(item,this.getActionState(item));
this.setSlidingDisabled(item);
}); });
return response; return response;
} }
...@@ -864,6 +865,21 @@ ...@@ -864,6 +865,21 @@
this.$viewTool.calcActionItemAuthState(data,tempActionModel,this.deUIService); this.$viewTool.calcActionItemAuthState(data,tempActionModel,this.deUIService);
return tempActionModel; return tempActionModel;
} }
/**
* 判断列表项左滑右滑禁用状态
*
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public setSlidingDisabled(item:any){
item.sliding_disabled = true;
Object.keys(this.ActionModel).forEach((key,index) => {
if(item[key].visabled && item.sliding_disabled ){
item.sliding_disabled = false;
}
})
}
<#ibizinclude> <#ibizinclude>
../@MACRO/CONTROL/CONTROL_BOTTOM-BASE.vue.ftl ../@MACRO/CONTROL/CONTROL_BOTTOM-BASE.vue.ftl
</#ibizinclude> </#ibizinclude>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册