selectSectionStaff.axml 4.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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"></image>
  8. <input placeholder="请输入姓名搜索" onInput="bindKeyInput" class="flex-1"></input>
  9. <button a:if="{{isVal}}" class="delVal" formType="reset">×</button>
  10. </view>
  11. </form>
  12. <view class="content">
  13. <view a:if="{{terr.length>1}}" class="flex-box flex-v-ce shu">
  14. <view a:for="{{terr}}" class="flex-box flex-v-ce" data-index="{{index}}" catchTap="activeItem" data-item="{{item}}">
  15. <image a:if="{{index!=0}}" mode="scaleToFill" src="../../../image/right.png" style="width:20rpx;height:20rpx;margin:0 6rpx;"></image>
  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 a:for="{{rule_tree}}" class="flex-box flex-v-ce li">
  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"></image>
  24. <text class="flex-1">{{item.name}}</text>
  25. </view>
  26. <view a:if="{{item._child.length>0}}" class="xia" data-item="{{item}}" catchTap="openDown">| 下级</view>
  27. </view>
  28. </view>
  29. <view class="flex-box flex-v-ce staff-all">
  30. <view class="flex-1"></view>
  31. <label a:if="{{isAll}}">
  32. <text class="rule-all-text">全选</text>
  33. <checkbox onChange="ruleActiveAll" disabled="{{item.disabled}}" checked="{{isAllChecked}}"></checkbox>
  34. </label>
  35. </view>
  36. <view a:if="{{userList.length>0&&isAll&&item.name.indexOf(keyVal)>= 0}}" a:for="{{userList}}" class="flex-box flex-v-ce userItem">
  37. <label class="flex-box flex-v-ce flex-1">
  38. <img-box name="{{item.name}}" imgUrl="{{item.img_url}}" height="70rpx" width="70rpx"></img-box>
  39. <text style="margin-left:20rpx;" class="flex-1">{{item.name}}</text>
  40. <checkbox onChange="radioChange" data-index="{{index}}" data-item="{{item}}" checked="{{item.checked}}" name="{{item.id}}"></checkbox>
  41. </label>
  42. </view>
  43. <view a:if="{{userList.length>0&&!isAll&&item.name.indexOf(keyVal)>= 0}}" a:for="{{userList}}" class="flex-box flex-v-ce userItem">
  44. <view class="{{item.checked? 'active':''}} flex-box flex-v-ce flex-1" catchTap="radioChange" data-index="{{index}}" data-item="{{item}}">
  45. <img-box name="{{item.name}}" imgUrl="{{item.img_url}}" height="70rpx" width="70rpx"></img-box>
  46. <text style="margin-left:20rpx;" class="flex-1">{{item.name}}</text>
  47. <view class="radio_"></view>
  48. </view>
  49. </view>
  50. <view a:if="{{userList.length==0}}">
  51. <view style="text-align:center">
  52. <image mode="scaleToFill" src="../../../image/noData.png" style="width: 340rpx;height: 340rpx;margin-bottom:20rpx;"/>
  53. </view>
  54. <view class="fontColorC" style="margin-top:0rpx;text-align: center;" a:if="{{isCreator}}">
  55. <view style="font-size:0.28rem">未授权员工进入系统,请前往钉钉电脑端</view>
  56. <view style="font-size:0.28rem">为员工【启用积分管理】</view>
  57. </view>
  58. <view class="fontColorC" style="margin-top:0rpx;text-align: center;" a:else>
  59. <view style="font-size:0.28rem">你当前没有可管理人员,请前往钉钉电脑端</view>
  60. <view style="font-size:0.28rem" >设置【管理范围】</view>
  61. </view>
  62. </view>
  63. </scroll-view>
  64. </view>
  65. <view class="StaffFooter flex-box flex-v-ce">
  66. <view class="flex-1 f-left flex-box flex-v-ce">
  67. <view a:for="{{selectUserId}}" style="margin-right:10rpx;" a:if="{{item.id}}">
  68. <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>
  69. <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>
  70. </view>
  71. </view>
  72. <view class="staffBtn" onTap="onConfirm">确定</view>
  73. </view>
  74. </view>