createTask.axml 1.59 KB
<import src="../../template/avater/index.axml"/>
<view class="task-column edit-column">
  <input onInput="inputChange" value="{{currentTask.title}}" placeholder="请输入任务标题"/>
</view>
<view>
  <view class="task-column participator-top" data-excutorId="{{currentTask.excutorId}}" onTap="handleExcutorChange">
    <text class="iconpeople1 iconfont icon"></text>
    <text class="participator-title">{{currentTask.excutorId ? '执行人' : '设置执行人'}}</text>
    <text class="iconright iconfont icon"></text>
  </view>
  <view class="participator-bottom" a:if="{{currentTask.excutorId}}">
    <view class="people" data-excutorId="{{currentTask.excutorId}}" onTap="handleExcutorChange">
      <template is="avater" data="{{item: currentTask.excutor}}"/>
      <view class="name">{{currentTask.excutor.name}}</view>
    </view>
  </view>
</view>
<view class="task-column participator-top task-time" onTap="handleOpenTime">
  <text class="iconicon_conflict iconfont icon"></text>
  <text class="participator-title">{{currentTask.endTime ?  `${currentTask.endTime} 截止`: '设置截止时间'}}</text>
</view>
<view class="save" onTap="addTask">
  <view class="button {{limitClick || !currentTask.title.trim() ? 'gray' : ''}}">
        {{type === 'edit' ? '立即修改' : '立即创建'}}
  </view>
  <view class="tabBarBottom" a:if="{{isIPX}}">
  </view>
</view>
<popup a:if="{{show}}" title="设置截止时间" show="{{show}}" mask="true" onClose="closePopup">
  <meeting-time-picker onComplete="onComplete" startTime="{{currentTask.startTime}}" endTime="{{currentTask.endTime}}" isIPX="{{isIPX}}"/>
</popup>