<navigator class="group-item" url="#" wx:for="{{list}}" wx:key="changeuserid">
    <van-swipe-cell right-width="{{item.isleader? 0: ismyteam?200:0 }}">
        <view class="main">
            <view class="portrait">
                <image wx:if="{{item.headpic}}" src="{{item.headpic}}" mode="aspectFill" />
                <view wx:else class="alt">
                    {{item.name[0]}}
                </view>
                <text wx:if="{{item.isleader==1}}" class="iconfont icon-fuzeren" />
            </view>
            <view class="content">
                <view class="title line-1">
                    {{item.name}}
                </view>
                <view class="role line-1">
                    {{language['职位']||'职位'}}：{{item.position||" --"}}
                </view>
            </view>
            <!--  <navigator wx:if="{{ismyteam && !item.identity}}" url='#' class="delete-box" data-item="{{item}}" bindtap="{{item.userid!=teamleaderId?'handleDelete':'changeUser'}}">
            <text class="iconfont {{item.userid!=teamleaderId?'icon-shanchu':'icon-bianji1'}}" />
        </navigator> -->
        </view>
        <view slot="right" class="van-swipe-cell__right">
            <navigator url="#" class="edit" data-item="{{item}}" bindtap="openPopup">
                {{language['设置权限']||'设置权限'}}
            </navigator>
            <navigator url="#" class="delete" data-item="{{item}}" bindtap="handleDelete">
                {{language['删除']||'删除'}}
            </navigator>
        </view>
    </van-swipe-cell>
</navigator>


<van-popup show="{{ show }}" position="bottom" bind:click-overlay='onCancel' z-index='99999999'>
    <view class="popup-title">
        {{language['设置权限']||'设置权限'}}
    </view>
    <view class="popup-explain">
        {{language['请设置参与人权限']||'请设置参与人权限'}}：
    </view>
    <van-radio-group value="{{ changeItem.editable+'' }}">
        <view class="popup-item" bindtap="changeRadio" data-name="1">
            <view class="label">
                <van-radio icon-size='16px' name="1" />{{language['允许编辑']||'允许编辑'}}
            </view>
            <view class="value">{{language['允许参与人在有授权功能的情况下，可操作参与的数据的功能（包含数据主功能以及tab功能）']||'允许参与人在有授权功能的情况下，可操作参与的数据的功能（包含数据主功能以及tab功能）'}}。</view>
        </view>
        <view class="popup-item" bindtap="changeRadio" data-name="0">
            <view class="label">
                <van-radio icon-size='16px' name="0" />{{language['不允许编辑']||'不允许编辑'}}
            </view>
            <view class="value">{{language['不允许参与人操作参与的数据的功能']||'不允许参与人操作参与的数据的功能'}}。</view>
        </view>

        <view class="button-box">
            <van-button custom-class='but cancel' disabled='{{loading}}' bindtap="onCancel">{{language['取消']||'取消'}}</van-button>
            <van-button custom-class='but confirm' loading='{{loading}}' loading-text='保存中...' bindtap="onConfirm">{{language['确定']||'确定'}}</van-button>
        </view>
    </van-radio-group>
</van-popup>