<div class="wrapTitle1 ng-scope">
    <span style="margin-left: 0px;">
        {{ '设备管理' | translate}}
    </span>

</div>
<div>
    <!--<div class="btn3 mb20 mt20" ng-click="add()" ng-disabled="deviceList.length>=5"><span class="formAddIcon"></span>{{ '添加设备' | translate}}</div>-->
    <div class="pageButtons">
        <button class="button-btn1" ng-click="add()" ng-disabled="" ng-class="{'disButton':deviceFilterList.length>=maxItems}" ><span class="formAddIcon" ng-class="{'disIocn':deviceFilterList.length>=maxItems}"></span>{{ '添加设备' | translate}}</button>
        <p class="pageHint" style="width: calc(100% - 370px)">{{ '在这里添加和管理你的白名单测试设备,白名单设备可重复激活(注册)完成联调测试,所产生的测试数据当日计算,隔日清零。' | translate}}</p>
        <div class="searchWrap mb20" ng-style="{'en':{'width': '250px'}}[lang]">
            <input type="text" class="searchIpt" ng-model="searchTxt" placeholder="{{searchtip}}" ng-mouseup="sendEve()">
        </div>
        <div class="clear"></div>
    </div>


    <div class="tableList">
        <table>
            <tr>
                <th>{{ '序号' | translate}}</th>
                <th>{{ '设备名' | translate}}</th>
                <th>{{ '系统' | translate}}</th>
                <th>IDFA</th>
                <th>添加时间</th>
                <th>Android ID</th>
                <th>OAID</th>
                <th>IMEI</th>
                <!--<th ng-if="!demoU">{{ '操作' | translate}}</th>-->
                <th>{{ '操作' | translate}}</th>
            </tr>
            <tr ng-repeat="info in deviceFilterList.slice().reverse() track by $index" ng-if="$index>flipPage.start && $index < flipPage.end">
                <td>{{$index+1}}</td>
                <td>{{info.deviceName}}</td>
                <td>{{info.platform==systemList[0].id ? systemList[0].name:(info.platform==systemList[1].id ?systemList[1].name:'未知系统') | translate}}</td>
                <td>{{info.platform==systemList[0].id ? info.idfa:'-'}}</td>
                <td>{{info.createTime | date:'yyyy-MM-dd HH:mm:ss'}}</td>
                <td>{{info.platform==systemList[1].id ? info.androidId:'-'}}</td>
                <td>{{info.platform==systemList[1].id ? info.oaid:'-'}}</td>
                <td>{{info.platform==systemList[1].id ? info.imei:'-'}}</td>

                <!--<td class="formOper" ng-if="!demoU">-->
                <td class="formOper">
                    <div class="formBtn" ng-click="edit(info)">{{ '编辑' | translate}}</div>
                    <div class="formBtn" ng-click="confirmDelete(info)">{{ '删除' | translate}}</div>
                </td>
            </tr>
        </table>
        <flip-info list-info="deviceFilterList" lang="lang"></flip-info>
    </div>
</div>
<!--遮盖层-->
<div class="cover" ng-show="addstatus ||delstatus"></div>
<!--编辑页面-->
<div class="dialogWin tipwin" style="width:700px;" ng-show="addstatus">
    <div class="dialogTitle">
        <label><span ng-show="!selectedItem.id">{{ '添加' | translate}}</span><span ng-show="selectedItem.id">{{ '编辑' | translate}}</span>{{ '白名单设备' | translate}}</label>
        <div class="closeBtn right mr10" ng-click="closeAdd()"></div>
    </div>
    <div class="dialogContent" style="padding: 0px;">
        <div class="formDetailInfo" style="border:none;">
            <div class="formDetailItem" ng-show="!exportgroup">
                <div class="iptlabel must" style="width: 180px">{{ '系统:' | translate}}&nbsp;</div>
                <select-list meau-info="systemList" meau-id="platform" meau-data="selectedItem.platform" meau-refresh="exprefresh"  class="confirmInputWidth" ng-blur="checkParams({'key':'platform',val:selectedItem.platform})"/>
            </div>
            <div class="formDetailItem confirmFormDetailItem" ng-style="{'en':{'width': '100%'}}[lang]">
                <div class="iptlabel must" style="width: 180px;">{{ '设备名:' | translate}}&nbsp;</div>
                <input type="text" class="iptform" ng-model="selectedItem.deviceName" placeholder="{{ '自定义设备名称,便于识别不同设备' | translate}}" ng-blur="checkParams({'key':'deviceName',val:selectedItem.deviceName})" ng-style="{'en':{'width': '435px'},'zh':{'width': '240px'}}[lang]">
            </div>
            <em class="error errorHint" ng-show="errObj.deviceName.status" ng-style="{'en':{'width': '470px','display': 'inline-block','margin-left': '185px','margin-top': '-47px'}}[lang]">{{errObj.deviceName.txt | translate}}</em>

            <div class="formDetailItem confirmFormDetailItem" ng-show="platform==systemList[0].id">
                <div class="iptlabel must" style="width: 180px">IDFA:</div>
                <input type="text" class="iptform confirmInputWidth" ng-model="selectedItem.idfa" placeholder="{{ '请输入IDFA' | translate}}" ng-blur="checkParams({'key':'idfa',val:selectedItem.idfa})">
            </div>
            <em class="error errorHint"  ng-show="errObj.idfa.status" ng-style="{'en':{'width': '470px','display': 'inline-block','margin-left': '185px','margin-top': '-47px'}}[lang]">{{errObj.idfa.txt | translate}}</em>

            <div class="formDetailItem confirmFormDetailItem" ng-show="platform==systemList[1].id">
                <div class="iptlabel" style="width: 180px">IMEI:</div>
                <input type="text" class="iptform confirmInputWidth" ng-model="selectedItem.imei" placeholder="{{ '请输入IMEI' | translate}}" >
            </div>
            <em class="error errorHint" ng-show="errObj.imei.status" ng-style="{'en':{'width': '470px','display': 'inline-block','margin-left': '185px','margin-top': '-47px'}}[lang]">{{errObj.imei.txt | translate}}</em>
            
            <div class="formDetailItem confirmFormDetailItem" ng-show="platform==systemList[1].id">
                <div class="iptlabel" style="width: 180px">OAID:</div>
                <input type="text" class="iptform confirmInputWidth" ng-model="selectedItem.oaid" placeholder="{{ '请输入OAID' | translate}}">
            </div>
            <em class="error errorHint" ng-show="errObj.oaid.status" ng-style="{'en':{'width': '470px','display': 'inline-block','margin-left': '185px','margin-top': '-47px'}}[lang]">{{errObj.oaid.txt | translate}}</em>


            <div class="formDetailItem confirmFormDetailItem" ng-show="platform==systemList[1].id">
                <div class="iptlabel" style="width: 180px">Android ID:</div>
                <input type="text" class="iptform confirmInputWidth" ng-model="selectedItem.androidId" placeholder="{{ '请输入Android ID' | translate}}">
            </div>
            <em class="error errorHint " ng-show="errObj.androidId.status" ng-style="{'en':{'width': '470px','display': 'inline-block','margin-left': '185px','margin-top': '-47px'}}[lang]">{{errObj.androidId.txt | translate}}</em>

            <p class="dmHint">{{ '白名单设备添加成功15分钟后可生效。' | translate}}</p>
            <p class="dmHint">{{ '如果您有多个产品需要测试,仅需添加一次即可应用于全部产品,无需重复添加。' | translate}}</p>
            <div class="formsaveBtnWrap clearfix">
                <!--<div class="btn5" ng-click="save()" ng-class="{'disButton1':demoU}">-->
                <div class="btn5" ng-click="save()">
                    <span ng-show="!selectedItem.id">{{ '添加' | translate}}</span>
                    <span ng-show="selectedItem.id">{{ '保存' | translate}}</span>
                </div>
                <div class="btn6" ng-click="closeAdd()">{{ '取消' | translate}}</div>
            </div>
        </div>
    </div>
</div>
<!--删除页面-->
<del-tip status="delstatus" delfn="removeInfo()">
    {{ '您正在将' | translate}}{{selectedItem.deviceName}}{{ '的手机' | translate}}<span ng-show="selectedItem.platform==systemList[0].id"> {{'('| translate}}IDFA/AID{{':' |translate}}{{selectedItem.idfa}}{{')' |translate}}</span><span ng-show="selectedItem.platform==systemList[1].id">{{'(' | translate}}IMEI{{':'| translate}}{{selectedItem.imei}}{{';'| translate}}OAID{{':' |translate}}{{selectedItem.oaid}}{{';'| translate}}Android ID{{':' |translate}}{{selectedItem.androidId}})</span>{{ '从设备白名单移除,是否确认删除?' | translate}}
</del-tip>