company-param-setting.wxml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  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. <!-- 数据列表区 -->
  5. <view wx:for="{{tableData}}" wx:for-item="item" wx:for-index="index" data-item="{{item}}" wx:key="index" class="main-class">
  6. <view class="main-foot-2" style="position: relative;">
  7. <view class="corner-view" style="padding:20rpx">
  8. <view style="display: flex;">
  9. <view class="corner-view-text font" style="width: 70%;">{{item.itemName}}</view>
  10. <view style="width: 30%;text-align: right;">
  11. <van-switch bind:change="onCheckedItem" data-index="{{index}}" active-color="#00A7B5" checked="{{ item.checked }}" size="18px"></van-switch>
  12. </view>
  13. </view>
  14. </view>
  15. <view style="background-color: white;">
  16. <view wx:for="{{item.children}}" wx:for-item="item_" wx:for-index="index_" wx:key="index_" style="display: flex;padding:20rpx">
  17. <view class="corner-view-text font" style="width: 70%;">{{item_.itemName}}</view>
  18. <view style="width: 30%;text-align: right;">
  19. <van-switch bind:change="onCheckedItem_" data-index="{{index}}" data-index_="{{index_}}" active-color="#00A7B5" checked="{{ item_.checked }}" size="18px"></van-switch>
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. <dk-save-bottom flagTypeName="select-functional-permissions" bottomClass="{{true}}" bind:submit="toClose" bind:allClean="toAdd" />