提交 86e2b73e 编写于 作者: KK's avatar KK

日历批操作工具栏

上级 2d5c6d28
......@@ -92,12 +92,12 @@
<van-step v-for="(i,index) in evendata[activeItem]" :key="index">
<p>{{i.time}}</p>
<div class="touch" v-for="(item,index) in i.evens" :key="index" @touchstart="touchStart" @touchend="touchEnd">
<ion-checkbox v-show="showcheack" class="touch-checkbox" @click.stop="checkboxSelect(item)"></ion-checkbox>
<ion-checkbox v-show="showCheack" class="touch-checkbox" @click.stop="checkboxSelect(item)"></ion-checkbox>
<div :key="item.id" class="even-box">
<#-- BENGIN: 事件内容项 -->
<#ibizinclude>./EVENTS_CONTENT.vue.ftl</#ibizinclude>
<#-- END: 事件内容项 -->
<ion-icon v-show="!showcheack" @click="remove([item])" class="event-delete" name="close-outline"></ion-icon>
<ion-icon v-show="!showCheack" @click="remove([item])" class="event-delete" name="close-outline"></ion-icon>
</div>
</div>
</van-step>
......
......@@ -668,12 +668,12 @@ import moment from 'moment';
*/
public selectedArray:Array<any> = [];
/**
/**
* 是否展示多选
*
* @memberof ${srfclassname('${ctrl.codeName}')}
*/
public showcheack = false;
@Prop({default:false}) showCheack?: boolean;
/**
* 选中或取消事件
......
<#-- content -->
<#assign content>
:showBusyIndicator="${ctrl.isShowBusyIndicator()?c}"
:showCheack="showCheack"
@showCheackChange="showCheackChange"
</#assign>
<#ibizinclude>
../@MACRO/HTML/DEFAULT.html.ftl
......
......@@ -2,6 +2,16 @@
<#assign view_content>
${P.getCtrlCode('calendar', 'CONTROL.html').code}
</#assign>
<#assign view_footer>
<#if calendar.getBatchPSDEToolbar?? && calendar.getBatchPSDEToolbar()??>
<#assign batchToolbar = calendar.getBatchPSDEToolbar()>
<div v-show="showCheack" >
<@ibizindent blank=8>
${P.getCtrlCode(batchToolbar, 'CONTROL.html').code}
</@ibizindent>
</div>
</#if>
</#assign>
</#if>
<#ibizinclude>
../@MACRO/VIEW_LAYOUT_BASE.ftl
......
......@@ -10,6 +10,43 @@
../@MACRO/VIEW_CONTENT-BASE.vue.ftl
</#ibizinclude>
/**
* 多选状态改变事件
*
* @memberof ${srfclassname('${view.name}')}Base
*/
public showCheackChange(value:any){
this.showCheack = value;
}
/**
* 多选状态
*
* @memberof ${srfclassname('${view.name}')}Base
*/
public showCheack = false;
/**
* 取消选择状态
* @memberof ${srfclassname('${view.name}')}Base
*/
public cancelSelect() {
this.showCheackChange(false);
}
<#if view.hasPSControl('calendar')>
<#assign calendar = view.getPSControl('calendar')>
<#if calendar.getBatchPSDEToolbar?? && calendar.getBatchPSDEToolbar()??>
<#assign batchToolbar = calendar.getBatchPSDEToolbar()>
public <#if batchToolbar.getName()??> ${batchToolbar.getName()}_click</#if>(tag:string,event:any) {
let calendar: any = this.$refs.calendar;
if(calendar && calendar.<#if batchToolbar.getName()??> ${batchToolbar.getName()}_click</#if> instanceof Function){
calendar.<#if batchToolbar.getName()??> ${batchToolbar.getName()}_click</#if>(tag,event);
}
}
</#if>
</#if>
<#ibizinclude>
../@MACRO/VIEW_BOTTOM-BASE.vue.ftl
</#ibizinclude>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册