selectSectionStaff.axml 4.4 KB

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