allTask.axml 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <view>
  2. <view class="header margin-bottom" style="padding-bottom:16rpx;">
  3. <view class="flex-box flex-v-ce tab border-bottom">
  4. <view class="flex-2">
  5. <picker onChange="activeItem" value="{{minuteIndex}}" range="{{minuteArray}}" range-key="name">
  6. <text>{{minuteArray[minuteIndex].name}}</text>
  7. </picker>
  8. </view>
  9. <view class="flex-2" catchTap="selectStaff">
  10. <text class="{{showStaff? 'activeView blue':''}}">{{staffVal}}</text>
  11. </view>
  12. <view catchTap="selectSx" class="flex-1 sxBorder" style="position: relative">
  13. <image mode="scaleToFill" class="sxImg" src="../../../image/sx.png"/>
  14. </view>
  15. </view>
  16. <form onReset="onReset">
  17. <view style="margin-top:16rpx;">
  18. <view class="search flex-box flex-v-ce">
  19. <image mode="scaleToFill" src="../../../image/ss.png"/>
  20. <input class="flex-1" placeholder="请输入任务内容" onInput="bindKeyInput"/>
  21. <button a:if="{{isVal}}" class="delVal" formType="reset">×</button>
  22. </view>
  23. </view>
  24. </form>
  25. </view>
  26. <view class="main scroll">
  27. <scroll-view class="scroll" a:if="{{list.length>0}}" scroll-y="{{true}}" onScrollToLower="onScrollToLower">
  28. <view class="li border-bottom" a:for="{{list}}" catchTap="openDetail" data-item="{{item}}" key="{{item.id}}">
  29. <view class="flex-box li-top">
  30. <img-box name="{{item.employee_name}}" a:key="{{index}}" id="{{item.employee_id}}" height="80rpx" width="80rpx" fSize="24rpx"></img-box>
  31. <view class="flex-1" style="padding-left:16rpx;">
  32. <view class="flex-box-ce" style="padding-top:16rpx;">
  33. <text class="flex-1">{{item.employee_name}}</text>
  34. <text class="red" a:if="{{item.point_config.base_point>0}}">+{{item.point_config.base_point}} {{item.pt_name}}</text>
  35. <text a:else>{{item.point_config.base_point}} {{item.pt_name}}</text>
  36. </view>
  37. <view class="content">{{item.task_name}}</view>
  38. <view class="flex-box li-bottom">
  39. <text class="flex-1 fontColorX">{{item.expire_time}} 截止</text>
  40. <button type="primary" class="defBtn" catchTap="openDetail" data-item="{{item}}">查看任务</button>
  41. <button a:if="{{minuteIndex==1||minuteIndex==2}}" type="primary" class="defBtn" catchTap="openDetail2" data-item="{{item}}" style="margin-left:20rpx;">查看审批</button>
  42. </view>
  43. </view>
  44. </view>
  45. </view>
  46. <view class="noDatas" a:if="{{isData}}">没有更多咯</view>
  47. </scroll-view>
  48. <no-data a:if="{{list.length==0}}"></no-data>
  49. </view>
  50. <select-staff defaultUser="{{employee_ids}}" isAllSelect="{{false}}" isShow="{{showStaff}}" a:if="{{showStaff==true}}" onClose="onClose" onConfirm="onConfirmStaff"></select-staff>
  51. <select-zp defaultSx="{{sxObj}}" typeIndex="2" a:if="{{showZp==true}}" isShow="{{showZp}}" onClose="onClose" onConfirm="onConfirmSx"></select-zp>
  52. </view>