my_sp.axml 4.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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="{{(minuteIndex==0)&&list.length>0}}" scroll-y="{{true}}" onScrollToLower="onScrollToLower">
  28. <view class="li border-bottom" a:for="{{list}}" key="{{item.id}}">
  29. <view class="flex-box li-top">
  30. <img-box name="{{item.employee_name}}" key="{{item.id}}" 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.isCs? 'red':''}}">{{item.expire_time}} 截止</text>
  40. <button type="primary" class="defBtn" catchTap="openDetail" data-item="{{item}}">查看任务</button>
  41. </view>
  42. </view>
  43. </view>
  44. </view>
  45. <view class="noDatas" a:if="{{isData}}">没有更多咯</view>
  46. </scroll-view>
  47. <scroll-view class="scroll" a:if="{{(minuteIndex==1||minuteIndex==2)&&list.length>0}}" scroll-y="{{true}}" onScrollToLower="onScrollToLower">
  48. <view class="li border-bottom" a:for="{{list}}">
  49. <view class="flex-box li-top">
  50. <img-box name="{{item.employee_name}}" a:key="{{index}}" id="{{item.employee_id}}" height="80rpx" width="80rpx" fSize="24rpx"></img-box>
  51. <view class="flex-1" style="padding-left:16rpx;">
  52. <view class="flex-box-ce" style="padding-top:16rpx;">
  53. <text class="flex-1">{{item.employee_name}}</text>
  54. <text class="red" a:if="{{item.point_config.base_point>0}}">+{{item.point_config.base_point}} {{item.pt_name}}</text>
  55. <text a:else>{{item.point_config.base_point}} {{item.pt_name}}</text>
  56. </view>
  57. <view class="content">{{item.task_name}}</view>
  58. <view class="flex-box li-bottom">
  59. <text class="flex-1 fontColorX">{{item.expire_time}} 截止</text>
  60. <button type="primary" class="defBtn" catchTap="openDetail" data-item="{{item}}">查看任务</button>
  61. <button a:if="{{minuteIndex==1}}" type="primary" class="defBtn" catchTap="openDetail2" data-item="{{item}}" style="margin-left:20rpx;">去审批</button>
  62. <button a:if="{{minuteIndex==2}}" type="primary" class="defBtn" catchTap="openDetail2" data-item="{{item}}" style="margin-left:20rpx;">查看审批</button>
  63. </view>
  64. </view>
  65. </view>
  66. </view>
  67. <view class="noDatas" a:if="{{isData}}">没有更多咯</view>
  68. </scroll-view>
  69. <no-data a:if="{{list.length==0}}"></no-data>
  70. </view>
  71. <select-staff defaultUser="{{employee_ids}}" isAllSelect="{{false}}" isShow="{{showStaff}}" a:if="{{showStaff==true}}" onClose="onClose" onConfirm="onConfirmStaff"></select-staff>
  72. <select-zp defaultSx="{{sxObj}}" typeIndex="2" a:if="{{showZp==true}}" isShow="{{showZp}}" onClose="onClose" onConfirm="onConfirmSx"></select-zp>
  73. </view>