select-sensitive-data.wxml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <!-- 前台导入wxmlUtil.wxs -->
  2. <wxs src='/utils/wxmlUtil.wxs' module="wxmlUtil"></wxs>
  3. <loading wx:if="{{loading}}" loadingName="{{$t['loading']}}" backgroundColor="#f2f2f2;" opacity="0.8"></loading>
  4. <van-sticky scroll-top="0">
  5. <!-- 查询条件 -->
  6. <dk-dropdown-menu model:value="{{searchForm}}" menuList="{{searchContent}}" pullMenuList="{{pullMenuList}}" bind:search="searchData" searchTextPlaceholder="{{wxmlUtil.setSearchPlaceholder($t,['sensitiveName'])}}">
  7. </dk-dropdown-menu>
  8. <view style="display: flex;background-color: white;padding:18rpx;padding-right: 40rpx;padding-left:40rpx;">
  9. <view style="width: 60%;display: flex;">
  10. <view style="width: 18%;">
  11. <van-image width="40rpx" height="40rpx" src="{{'/static/image/roles.png'}}" />
  12. </view>
  13. <view class="font" style="width: 82%;">{{formData.roleName}}</view>
  14. </view>
  15. <view style="width: 50%;text-align: right;">
  16. <view style="display: flex;">
  17. <view class="font" style="width: 60%;text-align: center;">{{ formData.checked ?$t['allEnableVisible']:$t['allDisableVisible'] }}</view>
  18. <view style="width: 40%;text-align: right;">
  19. <van-switch bind:change="onChangeSwitch" active-color="#3E69F6" checked="{{ formData.checked }}" size="18px"></van-switch>
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. </van-sticky>
  25. <!-- 数据列表区 -->
  26. <view wx:for="{{tableData}}" wx:for-item="item" wx:for-index="index" data-item="{{item}}" wx:key="index" class="main-class-source">
  27. <view class="main-foot-source" style="position: relative;">
  28. <view class="corner-view" style="padding:20rpx">
  29. <view style="display: flex;">
  30. <view class="corner-view-text font" style="width: 70%;">{{item.itemName}}</view>
  31. <view style="width: 30%;text-align: right;">
  32. <van-switch bind:change="onCheckedItem" data-index="{{index}}" active-color="#3E69F6" checked="{{ item.checked }}" size="18px"></van-switch>
  33. </view>
  34. </view>
  35. </view>
  36. <view style="background-color: white;">
  37. <view wx:for="{{item.children}}" wx:for-item="item_" wx:for-index="index_" wx:key="index_" style="display: flex;padding:20rpx">
  38. <view class="corner-view-text font" style="width: 70%;">{{item_.itemName}}</view>
  39. <view style="width: 30%;text-align: right;">
  40. <van-switch bind:change="onCheckedItem_" data-index="{{index}}" data-index_="{{index_}}" active-color="#3E69F6" checked="{{ item_.checked }}" size="18px"></van-switch>
  41. </view>
  42. </view>
  43. </view>
  44. </view>
  45. </view>
  46. <!-- <dk-save-bottom flagTypeName="select-functional-permissions" bottomClass="{{true}}" bind:submit="toClose" bind:allClean="toAdd" /> -->
  47. <dk-save-button model:value="{{btnFormData}}" btnAutoWidthFlag="{{true}}" btnRightFlag="{{true}}" buttonList="{{buttonSaveList}}" contentList="{{contentSaveList}}" bind:open="toAdd"></dk-save-button>