selectSectionStaff_tow.axml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <view class="all">
  2. <view class="close">
  3. <image mode="scaleToFill" catchTap="onClose" src="../../../image/close.png"/>
  4. </view>
  5. <form onReset="onReset">
  6. <view class="search flex-box flex-v-ce">
  7. <image mode="scaleToFill" src="../../../image/ss.png"/>
  8. <input placeholder="请输入姓名搜索" onInput="bindKeyInput" class="flex-1"/>
  9. <button a:if="{{isVal}}" class="delVal" formType="reset">×</button>
  10. </view>
  11. </form>
  12. <view class="content">
  13. <view class="flex-box flex-v-ce shu" a:if="{{terr.length>1}}">
  14. <view a:for="{{terr}}" class="flex-box flex-v-ce" data-index="{{index}}" catchTap="activeItem" data-item="{{item}}">
  15. <image mode="scaleToFill" src="../../../image/right.png" style="width:20rpx;height:20rpx;margin:0 6rpx;" a:if="{{index!=0}}"/>
  16. <text style="max-width:2.5rem" class="font-flex-word">{{item.name}}</text>
  17. </view>
  18. </view>
  19. <scroll-view class="staff-ul" scroll-y="{{true}}" style="{{terr.length>1? 'height: calc(100vh - 390rpx);':'height: calc(100vh - 320rpx);'}}">
  20. <view class="ul2">
  21. <view class="flex-box flex-v-ce li" a:for="{{rule_tree}}">
  22. <view class="flex-box flex-v-ce flex-1" data-item="{{item}}" catchTap="changeSection">
  23. <image mode="scaleToFill" style="width:50rpx;height:50rpx; margin:0 10rpx;" src="../../../image/BM.png"/>
  24. <text class="flex-1">{{item.name}}</text>
  25. </view>
  26. <view class="xia" a:if="{{item._child.length>0}}" data-item="{{item}}" catchTap="openDown">| 下级</view>
  27. </view>
  28. </view>
  29. <view a:if="{{item.name.indexOf(keyVal)>= 0}}" class="flex-box flex-v-ce userItem" a:for="{{userList}}" a:key="{{index}}">
  30. <view class="{{item.checked? 'active':''}} flex-box flex-v-ce flex-1" catchTap="bindtap1" data-index="{{index}}" data-item="{{item}}">
  31. <img-box name="{{item.name}}" imgUrl="{{item.img_url}}" height="70rpx" width="70rpx"></img-box>
  32. <text style="margin-left:20rpx;" class="flex-1">{{item.name}}</text>
  33. <view class="radio_"></view>
  34. </view>
  35. </view>
  36. <view a:if="{{userList.length==0}}">
  37. <view class="fontColorC" style="margin-top:200rpx;text-align: center;">
  38. <view>你暂无相关审批人</view>
  39. </view>
  40. </view>
  41. </scroll-view>
  42. </view>
  43. <view class="StaffFooter flex-box flex-v-ce">
  44. <view class="flex-1 f-left flex-box flex-v-ce">
  45. <view a:for="{{selectUserId}}" style="margin-right:10rpx;" a:key="{{index}}" a:if="{{item.id}}">
  46. <image mode="scaleToFill" class="img_box" src="{{item.img_url}}" a:if="{{item.img_url}}"/>
  47. <view a:else class="img_name_box">{{item.name.substr(item.name.length-2)}}</view>
  48. </view>
  49. </view>
  50. <view class="staffBtn" onTap="onConfirm">确定</view>
  51. </view>
  52. </view>