<van-tabs wx:if="{{tabShow}}" swipeable sticky title-active-color='var(--assist)' color='var(--assist)' bind:change="tabChange">
    <van-tab title="账号列表" />
    <van-tab title="角色列表" />
</van-tabs>
<view class="tabs" />
<My_listBox id="ListBox" height="{{listHeight}}" bind:getlist='getList'>
    <block wx:if="{{butText=='账号'}}">
        <navigator url="#" class="my-card user-item" wx:for="{{list}}" data-item="{{item}}" bindtap="changeUser">
            <view class="user-img">
                <van-image width="96rpx" height="96rpx" fit='cover' radius='48rpx' lazy-load src="{{item.attinfos[0].url||'/static/image/user.png'}}" />
            </view>
            <view class="details">
                <view class="user-name">
                    <view class="line-1">{{item.name}}</view>
                    <view class="position">{{item.position}}</view>
                    <view class="icon">
                        <text class="iconfont icon-a-wodetiaozhuan" />
                    </view>
                </view>
                <view class="base-msg line-1">
                    <!-- {{item.remarks}} -->
                </view>
                <view class="base-msg">账号ID：{{item.userid}}<text class="iconfont icon-a-wodemendianxinxidianhua" />{{item.phonenumber}}</view>
            </view>
        </navigator>
    </block>
    <block wx:else>
        <navigator url="#" class="my-card role-item" wx:for="{{list}}" data-item="{{item}}" bindtap="changeRole">
            <view class="role-l">
                <view class="first-line">
                    <text class="label line-1">{{item.rolename}}</text>
                    <text class="role line-1">{{item.remarks}}</text>
                </view>
                <view class="creator line-1">创建人：{{item.createby}}</view>
            </view>
            <view class="role-r">
                <text class="iconfont icon-a-wodetiaozhuan" />
            </view>
        </navigator>
    </block>
    <view style="height: 230rpx;" />
    <My_empty wx:if="{{list.length==0}}" />
</My_listBox>
<view class="footer" wx:if="{{per.query(authList,butText+'新增')}}">
    <van-button custom-class='add-but' color="var(--assist)" bindtap="newItem">新建{{butText}}</van-button>
</view>

<wxs src='../../utils/wxmlQueryPer.wxs' module="per" />