select-data.wxml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <loading wx:if="{{loading}}"></loading>
  2. <wxs src='/utils/wxmlUtil.wxs' module="wxmlUtil"></wxs>
  3. <van-sticky scroll-top="0">
  4. <<<<<<< HEAD
  5. <view id="stickyView" style="height: {{(chooseFlag || (tagList && tagList.length > 0))?'190rpx': ((searchContent && searchContent.length > 0)?'200rpx':'90rpx')}}">
  6. =======
  7. <view style="height: {{(chooseFlag || (tagList && tagList.length > 0))?'210rpx': ((searchContent && searchContent.length > 0)?'200rpx':'120rpx')}}">
  8. >>>>>>> 25849cd66c3de72fdd910c5b873d14c868ea7962
  9. <!-- 查询条件 -->
  10. <dk-dropdown-menu model:value="{{searchForm}}" menuList="{{searchContent}}" pullMenuList="{{pullMenuList}}" bind:search="searchData" searchTextPlaceholder="{{wxmlUtil.setSearchPlaceholder($t,placeholder)}}">
  11. </dk-dropdown-menu>
  12. <!-- 多选 -->
  13. <van-tabs wx:if="{{chooseFlag}}" type="card" tab-active-class="{{active==0?'dk-tab-active-left':'dk-tab-active-right'}}" animated="{{true}}" swipeable="{{true}}" active="{{ active }}" dot bind:change="changeTag">
  14. <van-tab title="待选列表"></van-tab>
  15. <van-tab title="已选列表" info="{{choosedData.length==0?'':choosedData.length}}"></van-tab>
  16. </van-tabs>
  17. <!--tag-->
  18. <dk-tabs wx:if="{{tagList && tagList.length > 0}}" active="{{active}}" list="{{tagList}}" bind:onChange="onChangeTabs"> </dk-tabs>
  19. </view>
  20. </van-sticky>
  21. <!-- 暂无数据 -->
  22. <van-empty wx:if="{{tableData.length<=0}}" description="{{$t['nodata']}}" />
  23. <!--简单列表-->
  24. <!-- <view wx:if="{{simpleFlag}}" style="margin-top:30rpx;">
  25. <view wx:for="{{tableData}}" data-item="{{item}}" wx:key="index" class="main-class main-item-class" style="{{item.checked? 'border: 1px solid #1B365D;':''}}" data-index="{{index}}" catchtap="choose">
  26. {{item[title]}}
  27. </view>
  28. </view> -->
  29. <<<<<<< HEAD
  30. <!-- 列表区 防止遮住 TODO-->
  31. <view style="{{'margin-top:' + heightList + 'rpx'}}">
  32. <dk-list wx:if="{{!simpleFlag && active == 0}}" id="list" list="{{tableData}}" title="{{title}}" flgPoint="{{false}}" titleImageFlag="{{false}}" content="{{contentList}}" footerInfo="{{footerInfo}}" chooseFlag="{{chooseFlag}}" bind:toDetail="toDetail" bind:choose="chooseData"></dk-list>
  33. </view>
  34. =======
  35. <!-- 列表区 防止遮住 -->
  36. <dk-list wx:if="{{ active == 0}}" id="list" simpleFlag="{{simpleFlag}}" list="{{tableData}}" title="{{title}}" flgPoint="{{false}}" titleImageFlag="{{false}}" content="{{contentList}}" footerInfo="{{footerInfo}}" chooseFlag="{{chooseFlag}}" bind:toDetail="toDetail" bind:choose="chooseData"></dk-list>
  37. >>>>>>> 25849cd66c3de72fdd910c5b873d14c868ea7962
  38. <!-- 已选列表区 -->
  39. <dk-list wx:if="{{ chooseFlag && active == 1}}" id="choosed" list="{{choosedData}}" title="{{title}}" flgPoint="{{false}}" titleImageFlag="{{false}}" simpleFlag="{{simpleFlag}}" content="{{contentList}}" footerInfo="{{footerInfo}}" swipeDisabled="{{false}}" swipeDeleteFlag="{{true}}" bind:swipe="delChoosed"></dk-list>
  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 wx:if="{{chooseFlag}}" btnAutoWidthFlag="{{true}}" buttonList="{{buttonList}}" bind:open="confirm"></dk-save-button>
  44. <!-- 底部加号 -->
  45. <view style="position: fixed;bottom: 230rpx;right: 30rpx;" wx:if="{{addUrl || (popContent && popContent.length > 0)}}">
  46. <view bind:tap="toAdd" class="btn-add-class">
  47. <van-icon name="plus" color="#FFFFFF" size="60rpx" />
  48. </view>
  49. </view>
  50. <dk-popup id="popup" type="basic" validFlag="{{true}}" priceTitle="" title="{{popTitle}}" value="{{dataItem}}" show="{{showPop}}" routeObjName="{{routeObjNamePop}}" contentObj="{{popContent}}" bind:commit="editItems">
  51. </dk-popup>