<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 colspan="2" ng-if="findName=='enable'">操作</th>
                    <th ng-if="findName=='disable'">操作</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>{{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 leftAlg" ng-show="findName=='enable'">
                        <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="findName=='enable'">编辑</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">删除</div>
                        </div>
                    </td>
                    <td>
                      <div ng-if="info.status!=-3 && findName=='enable' && info.valid">
                        已启用<div class="onOffBtn on" ng-click="offUser(info.id)"></div>
                      </div>
                      <div ng-if="info.status!=-3 && findName=='disable' && info.valid">
                        已停用<div class="onOffBtn" ng-click="doOpen(info)"></div>
                      </div>
                    </td>
                    <td>
                        <div class="formBtn" ng-click="showDetails(info)" stop-event>查看</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="openTipWin" ng-show="wantOn">
    <div class="closeGray" ng-click="closeOn()"></div>
    <div class="tipCont">
        由于系统权限升级，不支持自定义账号权限，该账号启用后将会拥有对应产品的子应用管理员权限，请谨慎操作。是否确定启用？
    </div>
    <div class="openBtnGroup clearfix">
        <div class="btn8 mr20" ng-click="closeOn()">取消</div>
        <div class="btn8" ng-click="onUser(curOnId)">确定</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>
