checkdesigner.wxml 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <wxs module="filters" src="/utils/filters.wxs"></wxs>
  2. <view class="selectMask" hidden="{{showSelect}}" bindtap="closeComponent">
  3. <view class="selectBlock" catchtap="doneFunc">
  4. <view class="selectTitle">
  5. <image wx:if="{{pid}}" class="lastStep" src="../../img/last.png" mode="widthFix" bindtap="lastStepFuc" />
  6. 请选择人员
  7. </view>
  8. <view class="selectContent">
  9. <van-search wx:if="{{filterable}}" value="{{ searchVal }}" placeholder="请输入搜索关键词" use-action-slot bind:change="onInputChange" bind:search="onSearch">
  10. <view slot="action" bind:tap="onSearch">搜索</view>
  11. </van-search>
  12. <block wx:if="{{multiple}}">
  13. <block wx:if="{{showTime}}">
  14. <van-checkbox-group value="{{ result }}" bind:change="onChange">
  15. <van-checkbox wx:for="{{departmentObj.designer}}" wx:key="{{index}}" custom-class="van-checkbox" name="{{item.name}}${{item.id}}">
  16. <view class="designer">
  17. <view class="designerImage">
  18. <image src="{{item.headimgurl?item.headimgurl:'../../img/default.png'}}" mode="" />
  19. </view>
  20. <view class="designerName">{{item.name}}</view>
  21. </view>
  22. </van-checkbox>
  23. </van-checkbox-group>
  24. </block>
  25. <view wx:for="{{departmentObj.child_org}}" wx:key="{{index}}" data-item="{{item}}" bindtap="nextDepart" class="departBox">
  26. <view class="departImage">
  27. <image src="../../img/depart.png" mode="widthFix" />
  28. </view>
  29. <view class="departMsg">
  30. <text>{{item.name}}</text>
  31. <text class="departNum">({{item.designer_num}})人</text>
  32. </view>
  33. </view>
  34. </block>
  35. <block wx:else="">
  36. <block wx:if="{{showTime}}">
  37. <van-radio-group value="{{ itemStr }}" bind:change="onRadioChange">
  38. <van-radio wx:for="{{departmentObj.designer}}" custom-class="van-checkbox" name="{{item.name}}${{item.id}}">
  39. <view class="designer">
  40. <view class="designerImage">
  41. <image src="{{item.headimgurl?item.headimgurl:'../../img/default.png'}}" mode="" />
  42. </view>
  43. <view class="designerName">{{item.name}}</view>
  44. </view>
  45. </van-radio>
  46. </van-radio-group>
  47. </block>
  48. <view wx:for="{{departmentObj.child_org}}" wx:key="{{index}}" data-item="{{item}}" bindtap="nextDepart" class="departBox">
  49. <view class="departImage">
  50. <image src="../../img/depart.png" mode="widthFix" />
  51. </view>
  52. <view class="departMsg">
  53. <text>{{item.name}}</text>
  54. <text class="departNum">({{item.designer_num}})人</text>
  55. </view>
  56. </view>
  57. </block>
  58. <block wx:if="{{!departArr.child_org.length && !departArr.designer.length}}">
  59. <view style="width: 100%;height: 400rpx;display: flex;align-items: center;justify-content: center;">暂无人员加入系统</view>
  60. </block>
  61. </view>
  62. <button class="selectBtn" bindtap="submitDataFunc">确定</button>
  63. </view>
  64. </view>