<!--pages/scheduling/index.wxml-->
<view class="scheduling">
  <t-calendar 
    value="{{value}}" 
    switch-mode="year-month" 
    use-popup="{{false}}" 
    type="single" 
    title="日历标题"
    minDate="{{minDate}}" 
    maxDate="{{maxDate}}" 
    show-lunar="{{true}}" 
    format="{{format}}"
    bind:select="handleSelect"  
    bind:confirm="handleConfirm"
    bind:panel-change="handlePanelChange"
  />

<view class="content">
<view class="content_fonst">
<view>{{valuename}} 值班</view>

<view class="Scancode_lefticon" wx:if="{{partnerPosition!=1}}">
  <t-icon bind:tap="ondutyadd" name="add" size="60rpx" data-name="add"/>
 </view>
 </view>
<view class="Scancode_content" wx:for="{{selectschedudata[0].partner}}">{{item.partnerName}} 
  <!-- 1: '值班员', 2: '值长', 3: '站长', 4: '董事长'  -->
<text class="Scancode_content11" wx:if="{{item.partnerPosition==1}}">值班员</text>
<text class="Scancode_content11" wx:if="{{item.partnerPosition==2}}">值长</text>
<text class="Scancode_content11" wx:if="{{item.partnerPosition==3}}">站长</text>
<text class="Scancode_content11" wx:if="{{item.partnerPosition==4}}">董事长</text>
</view>

</view>
</view>

<t-popup
  visible="{{visible}}"
  usingCustomNavbar
  bind:visible-change="onVisibleChange"
  placement="bottom"
>
   <view class="popupbox">
   <view class="popupboxname">选择值班员</view>
   <t-checkbox-group value="{{current}}" bind:change="handleGroupChange" options="{{options}}" />
   <view class="workorder_box">
<view class="workorder" bind:tap="onworkorder">提交</view>
</view>
   </view>
</t-popup>
