<div class="chartWrap clearfix">
    <div class="chartWrapItem grayhm titleChart nothborder">
        <div class="chartModule">
            <span>子账户管理</span>
            <div class="searchWrap" style="float: right;">
                <input type="text" class="searchIpt" ng-model="searchTxt" placeholder="输入账户名或姓名搜索">
            </div>
            <div class="campaginAction">
                <select-list meau-info="deviceList" meau-id="deviceId" meau-data="deviceInit" class="whitebg mr10" style="width:100px;"></select-list>

                <div class="btn10 mr10" ng-click="gopage()">
                    <span class="formAddIcon"></span>
                    <span>新建子账号</span>
                </div>
            </div>
        </div>
        <div class="tableList">
            <table>
                <tr>
                    <th>序号</th>
                    <th>账户名</th>
                    <th>姓名</th>
                    <th>角色</th>
                    <th>状态</th>
                    <th>操作</th>
                    <th>操作记录</th>
                </tr>
                <tr ng-repeat="info in authList | filterList:searchTxt:'name,email' track by $index"  ng-if="$index>flipPage.start && $index < flipPage.end">
                    <td>{{$index+1}}</td>
                    <td>{{info.email}}</td>
                    <td>{{info.name}}</td>
                    <td ng-if="accountFlag!='channel'">{{info.roleName}}</td>
                    <td>
                        <span ng-if="info.status==-3">未激活</span>
                        <span ng-if="info.status!=-3 && info.valid">激活</span>
                        <span ng-if="info.status!=-3 && !info.valid">已过期</span>
                    </td>
                    <td class="formOper">
                        <div ng-hide="(info.roleCategory == 1 && !isSuper) || info.email == 'demo@reyun.com' || (info.roleCategory==2 && isAppManage)">
                            <div class="formBtn" ng-class="{'dis':!info.valid}" ng-click="gopage(info)" ng-show="info.status==1 && findName=='enable'"><span class="editIcon"></span>编辑</div>
                            <div class="btn4" ng-if="info.status!=-3 && findName=='disable' && info.valid" ng-click="onUser(info.id)">启用</div>
                            <div class="btn2" ng-if="info.status!=-3 && findName=='enable' && info.valid" ng-click="offUser(info.id)">停用</div>
                            <div class="formBtn" ng-if="info.status==-3 && !info.send" ng-click="sendEmailAgain(info)">重新发送激活邮件</div>
                            <div class="formBtn dis" ng-if="info.status==-3 && info.send == 1">发送成功</div>
                            <div class="formBtn" ng-click="deleteAuth(info)" ng-if="info.status==-3"><span class="removeIcon"></span>删除</div>
                        </div>
                        <div class="nopower" ng-if="info.roleCategory==2 && isAppManage" title="您已无此授权权限，请联系管理员">
                        </div>
                    </td>
                    <td>
                        <div class="formBtn" ng-click="showDetails(info)" stop-event><span class="lookIcon"></span></div>
                    </td>
                </tr>
            </table>
            <flip-info list-info="authList" search-txt="searchTxt" search-name="name,email"></flip-info>
        </div>
    </div>
</div>
<div class="openTipWin" ng-show="wantDelete">
    <div class="closeGray" ng-click="closeWin()"></div>
    <div class="tipCont">
        您正在删除&nbsp;&nbsp;“{{delInfo.name}}”&nbsp;&nbsp;
        <span>子账户</span>，请确认。
    </div>
    <div class="openBtnGroup clearfix">
        <div class="btn8 mr20" ng-click="closeWin()">取消</div>
        <div class="btn8" ng-click="doDelete()">确定</div>
    </div>
</div>
<div class="leftTipsSlider" ng-class="{'sliderSw':isdetail}" stop-event>
    <div class="slideHeader">
        操作记录
        <div class="whiteClose" ng-click="hideDetails()"></div>
    </div>
    <div class="slideSub">账户名：{{detailInfo.email}}</div>
    <ul class="tipsInfo">
        <li>创建人：{{detailInfo.createAccountName}}</li>
        <li>创建时间：{{detailInfo.createTime | date:'yyyy-MM-dd HH:mm:ss'}}</li>
        <li>最后编辑人：{{detailInfo.modifyAccountName}}</li>
        <li>最后编辑时间：{{detailInfo.modifyTime | date:'yyyy-MM-dd HH:mm:ss'}}</li>
    </ul>
</div>
