sub-org-choose.wxml 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <!-- 前台导入wxmlUtil.wxs -->
  2. <wxs src='/utils/wxmlUtil.wxs' module="wxmlUtil"></wxs>
  3. <!-- 加载图层 -->
  4. <loading wx:if="{{loading}}"></loading>
  5. <!-- 粘性布局的查询条件 -->
  6. <van-sticky scroll-top="0">
  7. <!-- 查询条件 -->
  8. <dk-dropdown-menu model:value="{{searchForm}}" menuList="{{searchContent}}" pullMenuList="{{pullMenuList}}" bind:search="searchData" searchTextPlaceholder="{{wxmlUtil.setSearchPlaceholder($t,['orgId'])}}">
  9. </dk-dropdown-menu>
  10. <view style="display: flex; padding: 4vw; background: white;">
  11. <view class="image-frame">
  12. <van-image round width="39rpx" height="39rpx" fit="fill" src="{{imageUrl + 'org-img.png'}}" />
  13. </view>
  14. <view>{{item.chooseOrgSort}}</view>
  15. </view>
  16. </van-sticky>
  17. <!-- 暂无数据 -->
  18. <van-empty wx:if="{{tableData.length<=0}}" description="{{$t['nodata']}}" />
  19. <!-- 列表 -->
  20. <view class="Outer-frame">
  21. <view wx:for="{{tableData}}" class="list-below-item">
  22. <van-swipe-cell right-width="{{ 65 }}" data-index="{{index}}" data-item="{{item}}" bind:click="deactivateEnable" disabled="{{!item.levelLeaf}}">
  23. <view style="width: calc(100vw - 130rpx); display:flex;align-items:center; font-size:36rpx;margin-top: 5px;">
  24. <view>
  25. <van-image src="{{imageUrl + 'tree.png'}}" width="25rpx" height="25rpx" fit="heightFix" />
  26. </view>
  27. <view style="margin-left: 5vw;font-size: 14px;align-items: center;display: flex;" data-item="{{item}}" bindtap="clickName">
  28. {{item.orgName}}
  29. </view>
  30. <view wx:if="{{item.itemDataLength>0}}" style="width: 100%;flex:1;text-align: right;" bindtap="toSubOrg" data-item="{{item}}">
  31. <van-icon wx:if="{{!item.levelLeaf }}" color="#bdb7b7" name="arrow" style="font-size: 14px;" />
  32. <van-image wx:else src="{{imageUrl + 'business.png'}}" width="30rpx" height="30rpx" fit="fill" catchtap="showBusinessTip" />
  33. </view>
  34. </view>
  35. <!-- 侧拉 -->
  36. <view style="font-size: 14px;" data-index="{{index}}" data-item="{{item}}" slot="right">{{item['flgValid'] ? $t['disable'] : $t['enable'] }}</view>
  37. </van-swipe-cell>
  38. </view>
  39. </view>
  40. <van-divider wx:if="{{noMore}}" contentPosition="center" borderColor="#DCDCDC">{{$t['noMore']}}</van-divider>
  41. <view style="height: 200rpx;"></view>
  42. <!-- 新建按钮 -->
  43. <dk-save-button model:value="{{btnFormData}}" btnAutoWidthFlag="{{true}}" btnRightFlag="{{true}}" buttonList="{{buttonList}}" contentList="{{contentList}}" bind:change="onEnableChange" bind:open="open"></dk-save-button>
  44. <!-- 新建 框 -->
  45. <dk-popup routeObjName="{{routeObjName}}" type="basic" priceCol="pricePromotion" subCol="desc" title="{{editFlag?$t['editDepartment']:$t['newDepartment']}}" defaultFlagTitle="默认" value="{{form}}" show="{{showPop}}" contentObj="{{popContent}}" defaultFlagCol="flgBusiness" defaultFlagTitle="业务部门" flgDefaultDisabled="flgBusinessControl" autoCloseFlag="{{false}}" bind:commit="editItems" validFlag="{{true}}" readonly="{{readonly}}" bind:onClosePopup="onClosePopup">
  46. </dk-popup>
  47. <!-- 底部编辑 以后要做 todo......... -->
  48. <!-- <view wx:if="{{readonly}}" style="z-index: 111;position: fixed;bottom: 230rpx;right: 30rpx;">
  49. <view bind:tap="toEdit" class="btn-add-class">
  50. <van-icon name="edit" color="#FFFFFF" size="60rpx" />
  51. </view>
  52. </view> -->
  53. <!-- 编辑 -->
  54. <view wx:if="{{readonly}}" style="position: fixed;bottom: 230rpx;right: 30rpx;z-index: 99;" bindtap="toEdit">
  55. <image src="{{imageUrl + 'edit.png'}} " class="edit-class" />
  56. </view>