choose-org.wxml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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}}" bind:search="filterData" searchTextPlaceholder="{{wxmlUtil.setSearchPlaceholder($t,['orgId'])}}">
  9. </dk-dropdown-menu>
  10. </van-sticky>
  11. <!-- 内容列表 -->
  12. <!-- <view style="width: 100%;">
  13. <view wx:if="{{item && item.orgName_socail}}" class="main-class">
  14. <view class="table-content table-content-row table-content-location ">
  15. <van-image src="{{imageUrl + 'location.png'}}" width="25rpx" height="25rpx" fit="heightFix" />
  16. {{item.orgName_socail}}
  17. </view>
  18. </view>
  19. <view wx:for="{{tableData}}" wx:for-item="item" wx:key="index" class="main-class">
  20. <view class="table-content">
  21. <view class="table-title-row" data-item="{{item}}" catchtap="chooseData">
  22. <view style="font-size: 16px;font-weight: 500;width: 100%;padding-left: 30rpx;">
  23. {{item.orgName}}
  24. </view>
  25. </view>
  26. <view class="table-content-row" wx:for="{{item.children}}" wx:for-item="cItem" data-item="{{cItem}}" bindtap="chooseData">
  27. <view style="display: flex; font-size: 14px;padding-left: {{(cItem.levelNo - 2) * 40 + 'rpx'}};">
  28. <van-image src="{{imageUrl + 'tree.png'}}" width="25rpx" height="25rpx" fit="heightFix" />
  29. <view style="padding-left: 20rpx;">{{cItem.orgName}}</view>
  30. </view>
  31. </view>
  32. </view>
  33. </view>
  34. </view> -->
  35. <!-- 列表 -->
  36. <dk-tree-form wx:if="{{show}}" bind:clickName="clickName" treeList="{{tableData}}" idKey="orgId" nameKey="orgName" parentIdKey="parentId" itemListKey="children" id="treeSelect" isLastClickFlag="{{true}}" ></dk-tree-form>
  37. <!-- 暂无数据 -->
  38. <van-empty wx:if="{{tableData.length<=0}}" description="{{$t['nodata']}}" />
  39. <!-- 列表
  40. <view wx:for="{{tableData}}" style="margin:10px;background:white;border-radius:15rpx;padding: 10px;">
  41. <view wx:for="{{item}}" wx:for-item="item_" wx:for-index="index_">
  42. <view style="width: 100vw; display:flex;align-items:center; font-size:36rpx;margin-top: 5px;" data-item="{{item_}}" bindtap="clickName">
  43. <view style="margin-left: 5vw;font-size: 14px;">
  44. {{item_.orgName}}
  45. </view>
  46. </view>
  47. </view>
  48. </view> -->
  49. <van-divider wx:if="{{noMore}}" contentPosition="center" borderColor="#DCDCDC">{{$t['noMore']}}</van-divider>
  50. <view style="height: 135rpx;"></view>