selectSectionStaff.axml 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <view class="all">
  2. <image mode="scaleToFill" catchTap="onClose" class="close" src="../../../image/close.png"></image>
  3. <view class="search flex-box flex-v-ce">
  4. <image mode="scaleToFill" src="../../../image/ss.png"></image>
  5. <input placeholder="请输入姓名搜索" onInput="bindKeyInput"></input>
  6. </view>
  7. <view class="content">
  8. <view a:if="{{terr.length>1}}" class="flex-box flex-v-ce shu">
  9. <view a:for="{{terr}}" class="flex-box flex-v-ce" data-index="{{index}}" catchTap="activeItem" data-item="{{item}}">
  10. <image a:if="{{index!=0}}" mode="scaleToFill" src="../../../image/right.png" style="width:20rpx;height:20rpx;margin:0 6rpx;"></image>
  11. {{item.name}}
  12. </view>
  13. </view>
  14. <scroll-view class="staff-ul" scroll-y="{{true}}" style="{{terr.length>1? 'height: calc(100vh - 390rpx);':'height: calc(100vh - 320rpx);'}}">
  15. <block a:if="{{isItem}}">
  16. <view class="ul2">
  17. <view a:for="{{rule_tree}}" class="flex-box flex-v-ce li">
  18. <view class="flex-box flex-v-ce flex-1" data-item="{{item}}" catchTap="changeSection">
  19. <image mode="scaleToFill" style="width:50rpx;height:50rpx; margin:0 10rpx;" src="../../../image/BM.png"></image>
  20. {{item.name}}
  21. </view>
  22. <view a:if="{{item._child.length>0}}" class="xia" data-item="{{item}}" catchTap="openDown">| 下级</view>
  23. </view>
  24. </view>
  25. <view class="flex-box flex-v-ce staff-all">
  26. <view class="flex-1"></view>
  27. <label a:if="{{isAll}}">
  28. <text class="rule-all-text">全选</text>
  29. <checkbox onChange="ruleActiveAll" disabled="{{item.disabled}}" checked="{{isAllChecked}}"></checkbox>
  30. </label>
  31. </view>
  32. <view a:if="{{userList.length>0}}" a:for="{{userList}}" class="flex-box flex-v-ce userItem">
  33. <label class="flex-box flex-v-ce flex-1">
  34. <img-box name="{{item.name}}" imgUrl="{{item.img_url}}" height="70rpx" width="70rpx"></img-box>
  35. <text style="margin-left:20rpx;" class="flex-1">{{item.name}}</text>
  36. <checkbox onChange="radioChange" data-index="{{index}}" data-item="{{item}}" checked="{{item.checked}}" name="{{item.id}}"></checkbox>
  37. </label>
  38. </view>
  39. <view a:if="{{userList.length==0}}">
  40. <view class="fontColorF" style="margin-top:200rpx;text-align: center;">
  41. <view>您当前没有可管理人员,请联系公司管理员</view>
  42. <view>设置对应管理范围</view>
  43. </view>
  44. </view>
  45. </block>
  46. <view a:else a:for="{{searchVal}}" class="flex-box flex-v-ce userItem">
  47. <label class="flex-box flex-v-ce flex-1">
  48. <img-box name="{{item.name}}" imgUrl="{{item.img_url}}" height="70rpx" width="70rpx"></img-box>
  49. <text style="margin-left:20rpx;" class="flex-1">{{item.name}}</text>
  50. <checkbox onChange="radioChange" data-index="{{index}}" data-item="{{item}}" checked="{{item.checked}}" name="{{item.id}}"></checkbox>
  51. </label>
  52. </view>
  53. </scroll-view>
  54. </view>
  55. <view class="StaffFooter flex-box flex-v-ce">
  56. <view class="flex-1 f-left flex-box flex-v-ce">
  57. <view a:for="{{selectUserId}}" style="margin-right:10rpx;">
  58. <image a:if="{{item.img_url}}" class="img-url" style="width:70rpx;height:70rpx;display: inline-block; position: relative;top: 6rpx;" src="{{item.img_url}}"></image>
  59. <view a:else style="width: 70rpx;height: 70rpx;border-radius: 100%;background: #26A2FF;color: #fff;text-align: center;line-height: 70rpx;font-size: 24rpx;">{{item.name.substr(item.name.length-2)}}</view>
  60. </view>
  61. </view>
  62. <view class="staffBtn" onTap="onConfirm">确定</view>
  63. </view>
  64. </view>