<wxs src='/utils/wxmlUtil.wxs' module="wxmlUtil"></wxs>
<loading wx:if="{{loading}}"></loading>
<van-sticky scroll-top="0">
  <dk-navbar titleFontColor="#000000" navbarTitle="基础资料" bind:clickBack="handleNavBack" operateShow="{{ guideUrl ? true: false}}" operateUrl="{{guideUrl}}"/>
  <!-- 查询条件 -->
  <dk-dropdown-menu model:value="{{searchForm}}" menuList="{{searchContent}}" pullMenuList="{{pullMenuList}}" bind:search="searchData" searchTextPlaceholder="{{wxmlUtil.setSearchPlaceholder($t,['dataName','dataCode','remarks'])}}">
  </dk-dropdown-menu>
</van-sticky>

<view style="display: flex;">
  <!-- 左侧菜单列表 -->
  <van-sidebar activeKey="{{sideKey}}" bindchange="changeSidebar" custom-class="left-class">
    <view style="height:calc({{windowHeight+'px'}} - {{'390rpx'}});overflow: scroll;">
      <van-sidebar-item wx:key="index" custom-class="{{sideKey - 1 == index? 'sidebar-item-before': (sideKey + 1 == index?'sidebar-item-next':'sidebar-item')}}" title="{{item.kindName}}" data-id="{{item.id}}" wx:for="{{sidebarList}}" />
    </view>
  </van-sidebar>
  <view style="margin-left: 140rpx;width: 100%;">
  <!-- 列表 -->
    <dk-list list="{{tableData}}" titleImageFlag="{{false}}" swipeDisabled="{{false}}" bind:swipe="deactivateEnable" statusFlag="{{false}}" flgPoint="{{false}}" switchFlag="{{true}}" title="title" content="{{contentList}}"  flgValidOnFlag="{{true}}" simpleFlag="{{true}}"  contentObj="{{contentObj}}" contentCol="listItemTitle"  bind:toDetail="toDetail" bind:toPoint="toPoint" routeObjName="{{routeObjName}}" buttonList="{{buttonList}}" 
    defaultFlag="{{true}}" defaultFlagKey="flgDefault"
    bind:open="open"></dk-list>

    
    <!-- 保留高度 -->
    <view style="height: 220rpx;"></view>
  </view>

</view>


<dk-popup id="popup" flgDefaultDisabled="flgDefaultDisabled"  validFlag="{{true}}"  defaultFlagCol="{{flgDefault}}" defaultFlagTitle="默认" type="basic" priceTitle="" priceCol="pricePromotion" subCol="desc" title="{{formDataName}}" value="{{dataItem}}" show="{{showPop}}" autoCloseFlag="{{false}}" routeObjName="{{routeObjNameGoTo}}" contentObj="{{popContent}}" bind:commit="editItems">
</dk-popup>

<van-dialog id="van-dialog" />
<!-- 底部信息 -->

<dk-save-button model:value="{{btnFormData}}" btnAutoWidthFlag="{{true}}" btnRightFlag="{{true}}" buttonList="{{buttonSaveList}}" contentList="{{contentSaveList}}" bind:open="open"></dk-save-button>