12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <wxs module="filters" src="/utils/filters.wxs"></wxs>
- <view class="selectMask" hidden="{{showSelect}}" bindtap="closeComponent">
- <view class="selectBlock" catchtap="doneFunc">
- <view class="selectTitle">
- <image wx:if="{{pid}}" class="lastStep" src="../../img/last.png" mode="widthFix" bindtap="lastStepFuc" />
- 请选择人员
- </view>
- <view class="selectContent">
- <van-search wx:if="{{filterable}}" value="{{ searchVal }}" placeholder="请输入搜索关键词" use-action-slot bind:change="onInputChange" bind:search="onSearch">
- <view slot="action" bind:tap="onSearch">搜索</view>
- </van-search>
- <block wx:if="{{multiple}}">
- <block wx:if="{{showTime}}">
- <van-checkbox-group value="{{ result }}" bind:change="onChange">
- <van-checkbox wx:for="{{departmentObj.designer}}" wx:key="{{index}}" custom-class="van-checkbox" name="{{item.name}}${{item.id}}">
- <view class="designer">
- <view class="designerImage">
- <image src="{{item.headimgurl?item.headimgurl:'../../img/default.png'}}" mode="" />
- </view>
- <view class="designerName">{{item.name}}</view>
- </view>
- </van-checkbox>
- </van-checkbox-group>
- </block>
- <view wx:for="{{departmentObj.child_org}}" wx:key="{{index}}" data-item="{{item}}" bindtap="nextDepart" class="departBox">
- <view class="departImage">
- <image src="../../img/depart.png" mode="widthFix" />
- </view>
- <view class="departMsg">
- <text>{{item.name}}</text>
- <text class="departNum">({{item.designer_num}})人</text>
- </view>
- </view>
- </block>
- <block wx:else="">
- <block wx:if="{{showTime}}">
- <van-radio-group value="{{ itemStr }}" bind:change="onRadioChange">
- <van-radio wx:for="{{departmentObj.designer}}" custom-class="van-checkbox" name="{{item.name}}${{item.id}}">
- <view class="designer">
- <view class="designerImage">
- <image src="{{item.headimgurl?item.headimgurl:'../../img/default.png'}}" mode="" />
- </view>
- <view class="designerName">{{item.name}}</view>
- </view>
- </van-radio>
- </van-radio-group>
- </block>
- <view wx:for="{{departmentObj.child_org}}" wx:key="{{index}}" data-item="{{item}}" bindtap="nextDepart" class="departBox">
- <view class="departImage">
- <image src="../../img/depart.png" mode="widthFix" />
- </view>
- <view class="departMsg">
- <text>{{item.name}}</text>
- <text class="departNum">({{item.designer_num}})人</text>
- </view>
- </view>
- </block>
- <block wx:if="{{!departArr.child_org.length && !departArr.designer.length}}">
- <view style="width: 100%;height: 400rpx;display: flex;align-items: center;justify-content: center;">暂无人员加入系统</view>
- </block>
- </view>
- <button class="selectBtn" bindtap="submitDataFunc">确定</button>
- </view>
- </view>
|