org.wxml 5.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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;font-weight: 500;">
  11. <view class="image-frame">
  12. <van-image round width="39rpx" height="39rpx" fit="fill" src="{{imageUrl + 'org-img.png'}}" />
  13. </view>
  14. <view>{{orgName}}</view>
  15. </view>
  16. </van-sticky>
  17. <!-- 暂无数据 -->
  18. <van-empty wx:if="{{tableData.length<=0}}" description="{{$t['nodata']}}" />
  19. <!-- 列表 -->
  20. <view wx:if="{{showFlag}}" wx:for="{{tableData}}" class="Outer-frame">
  21. <!-- 列表上半部分 -->
  22. <view style="display: flex;padding:3vw; border-radius: 15rpx 15rpx 0 0 " class="tile-class" data-open="{{item.open}}" data-item="{{item}}" data-index="{{index}}" bindtap="onchange">
  23. <van-swipe-cell right-width="{{ 65 }}" data-index="{{index}}" data-item="{{item}}" bind:click="deactivateEnable" disabled="{{!item.levelLeaf}}">
  24. <view style="width: calc(100vw - 120rpx);display:flex">
  25. <view style="display: flex;flex: 1;">
  26. <van-image round width="39rpx" height="39rpx" fit="fill" src="/static/image/ghxk.png" />
  27. <view style="margin-left:5vw;font-size: 16px;font-weight: 500;align-items: center;display: flex;" data-item="{{item}}" bindtap="clickName">{{item.orgName}}
  28. <van-image wx:if="{{item.flgBusiness}}" style="padding-left: 10rpx;align-items: center;display: flex;" src="{{imageUrl + 'business.png'}}" width="30rpx" height="30rpx" fit="fill" />
  29. </view>
  30. </view>
  31. <view style=" text-align: right;" wx:if="{{!item.levelLeaf }}">
  32. <van-icon wx:if="{{ item.open }}" color="#bdb7b7" name="arrow-down" style="font-size: 16px;" />
  33. <van-icon wx:else color="#bdb7b7" name="arrow" style="font-size: 16px;" />
  34. </view>
  35. </view>
  36. <!-- 侧拉 -->
  37. <view style="font-size: 14px;" data-index="{{index}}" data-item="{{item}}" slot="right">{{item['flgValid'] ? $t['disable'] : $t['enable'] }}</view>
  38. </van-swipe-cell>
  39. </view>
  40. <!-- 列表下半部分 -->
  41. <view wx:if="{{ !item.open}}" wx:for="{{item.children}}" wx:for-item="item_" wx:for-index="index_" class="list-below-item">
  42. <van-swipe-cell right-width="{{ 65 }}" data-index="{{index_}}" data-item="{{item_}}" bind:click="deactivateEnable" disabled="{{!item_.levelLeaf}}">
  43. <view style="width: calc(100vw - 130rpx); display:flex;align-items:center; font-size:36rpx;margin-top: 5px;">
  44. <view>
  45. <van-image src="{{imageUrl + 'tree.png'}}" width="25rpx" height="25rpx" fit="heightFix" />
  46. </view>
  47. <view style="margin-left: 5vw;font-size: 14px;align-items: center;display: flex;" data-item="{{item_}}" data-type="sub" data-open="{{item.open}}" bindtap="clickName">
  48. {{item_.orgName}}
  49. </view>
  50. <view style="width: 100%;flex:1;text-align: right;" bindtap="toSubOrg" data-item="{{item}}" data-item_="{{item_}}">
  51. <van-icon wx:if="{{!item_.levelLeaf }}" color="#bdb7b7" name="arrow" style="font-size: 14px;" />
  52. <van-image wx:else src="{{imageUrl + 'business.png'}}" width="30rpx" height="30rpx" fit="fill" catchtap="showBusinessTip" />
  53. </view>
  54. </view>
  55. <!-- 侧拉 -->
  56. <view style="font-size: 14px;" data-index="{{index_}}" data-item="{{item_}}" slot="right">{{item_['flgValid'] ? $t['disable'] : $t['enable'] }}</view>
  57. </van-swipe-cell>
  58. </view>
  59. </view>
  60. <view style="height: 200rpx;"></view>
  61. <!-- 新建按钮 -->
  62. <dk-save-button model:value="{{btnFormData}}" btnAutoWidthFlag="{{true}}" btnRightFlag="{{true}}" buttonList="{{buttonList}}" contentList="{{contentList}}" bind:change="onEnableChange" bind:open="open"></dk-save-button>
  63. <!-- 新建 框 -->
  64. <dk-popup routeObjName="{{routeObjName}}" type="basic" priceCol="pricePromotion" subCol="desc" title="{{popTitle}}" defaultFlagTitle="默认" value="{{form}}" show="{{showPop}}" contentObj="{{popContent}}" defaultFlagCol="flgBusiness" defaultFlagTitle="业务部门" flgDefaultDisabled="flgBusinessControl" bind:commit="editItems" validFlag="{{true}}" autoCloseFlag="{{false}}" readonly="{{readonly}}" bind:onClosePopup="onClosePopup">
  65. </dk-popup>
  66. <!-- 底部编辑 以后要做 todo......... -->
  67. <!-- <view wx:if="{{readonly}}" style="z-index: 111; position: fixed;bottom: 230rpx;right: 30rpx;">
  68. <view bind:tap="toEdit" class="btn-add-class">
  69. <van-icon name="edit" color="#FFFFFF" size="60rpx" />
  70. </view>
  71. </view> -->
  72. <!-- 编辑 -->
  73. <view wx:if="{{readonly}}" style="position: fixed;bottom: 230rpx;right: 30rpx;z-index: 99;" bindtap="toEdit">
  74. <image src="{{imageUrl + 'edit.png'}} " class="edit-class" />
  75. </view>