| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- <!-- 前台导入wxmlUtil.wxs -->
- <wxs src='/utils/wxmlUtil.wxs' module="wxmlUtil"></wxs>
- <!-- 加载图层 -->
- <loading wx:if="{{loading}}"></loading>
- <!-- 粘性布局的查询条件 -->
- <van-sticky scroll-top="0">
- <!-- 查询条件 -->
- <dk-dropdown-menu model:value="{{searchForm}}" menuList="{{searchContent}}" pullMenuList="{{pullMenuList}}" bind:search="searchData" searchTextPlaceholder="{{wxmlUtil.setSearchPlaceholder($t,['orgId'])}}">
- </dk-dropdown-menu>
- <view style="display: flex; padding: 4vw; background: white;">
- <view class="image-frame">
- <van-image round width="20rpx" height="24rpx" src="/static/image/Vector.png" />
- </view>
- <view>{{orgName}}</view>
- </view>
- </van-sticky>
- <!-- 暂无数据 -->
- <van-empty wx:if="{{tableData.length<=0}}" description="{{$t['nodata']}}" />
- <!-- 列表 -->
- <view wx:for="{{tableData}}" class="Outer-frame">
- <!-- 列表上半部分 -->
- <view style="display: flex;padding:3vw;background: linear-gradient(to right,#A8D0EF, #DAEFFF);border-radius: 15rpx 15rpx 0 0 "data-open="{{item.open}}"data-item = "{{item}}"data-index = "{{index}}" bindtap="onchange">
- <view style="display: flex;flex: 1;" >
- <van-image round width="35rpx" height="35rpx" src="/static/image/summarize.png" />
- <view style="margin-left:5vw;font-size: 16px;">{{item.orgName}}</view>
- </view>
- <view style=" text-align: right;" >
- <van-icon wx:if="{{ item.open }}" color="#bdb7b7" name="arrow-down" style="font-size: 16px;" />
- <van-icon wx:else color="#bdb7b7" name="arrow"style="font-size: 16px;" />
- </view>
- </view>
- <!-- 列表下半部分 -->
- <view wx:if="{{ !item.open}}" wx:for="{{item.children}}"wx:for-item="item_" wx:for-index="index_" class="list-below-item">
- <view style="width: 100vw; display:flex;align-items:center; font-size:36rpx;margin-top: 5px;">
- <view class="tree_left">
- <van-image round width="40rpx" height="40rpx" src="/static/image/tree.png" />
- </view>
- <view style="margin-left: 5vw;font-size: 14px;" data-item="{{item}}" data-type="sub" data-open="{{item.open}}" bindtap="clickName">
- {{item_.orgName}}
- </view>
- <view style="width: 100%;flex:1;text-align: right;" bindtap="toSubOrg" data-item = "{{item}}"data-item_ = "{{item_}}">
- <van-icon color="#bdb7b7" name="arrow" style="font-size: 14px;" />
- </view>
- </view>
-
- </view>
- </view>
-
- <view style="height: 135rpx;"></view>
- <!-- 底部按钮相关 -->
- <view class="bottom-class-org">
- <view style="padding:10rpx 34rpx 61rpx 43rpx; display: flex;">
- <view style="width: 50%;padding: 4vw;">
- <van-button round plain size="large" color="#1B365D" custom-style="height:88rpx;" bind:click="toAddStaff" type="info">
- {{$t['newStaff']}}
- </van-button>
- </view>
- <view style="width: 50%;padding: 4vw;">
- <van-button round size="large" color="#20365E" custom-style="height:88rpx;" bind:click="toadd" type="default">
- {{$t['newSubOrg']}}
- </van-button>
- </view>
- </view>
- </view>
- <!-- 新建 框 -->
- <dk-popup routeObjName="{{routeObjName}}" type="basic" priceCol="pricePromotion" subCol="desc" title="{{editFlag?$t['editDepartment']:$t['newDepartment']}}" defaultFlagTitle="默认" value="{{form}}" show="{{showPop}}" contentObj="{{popContent}}" bind:commit="editItems" validFlag="{{true}}" readonly = "{{readonly}}" bind:onClosePopup = "onClosePopup">
- </dk-popup>
- <!-- 底部编辑 以后要做 todo......... -->
- <view wx:if="{{readonly}}" style="z-index: 111; position: fixed;bottom: 230rpx;right: 30rpx;" >
- <view bind:tap="toEdit" class="btn-add-class">
- <van-icon name="edit" color="#FFFFFF" size="60rpx" />
- </view>
- </view>
-
|