<div class="wrapTitle ng-scope">
    <span>
        日志导出
        <help-tip class="help" name="日志导出"></help-tip>
    </span>
</div>
<div>
    <div class="btn3 mb20 mt20" ng-click="addExport()"><span class="formAddIcon"></span>新建导出</div>
        <div class="clear"></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 exprotList track by $index" ng-if="$index>flipPage.start && $index < flipPage.end">
                    <td>{{$index+1}}</td>
                    <td>{{getExportName(info.downloadtype)}}</td>
                    <td>{{info.businame}}</td>
                    <td>{{info.startdate}}至{{info.enddate}}</td>
                    <td>{{info.createTime | date:'yyyy-MM-dd HH:mm:ss'}}</td>
                    <td>
                        <span ng-if="info.status=='init'">开始生成</span>
                        <span ng-if="info.status=='downloading'">正在生成</span>
                        <span ng-if="info.status=='complete'">已完成</span>
                        <span ng-if="info.status=='failed'">
                            失败
                            <span class="f5Icon" ng-click="refreshExport(info.id)"></span>
                        </span>
                    </td>
                    <td class="formOper">
                        <div class="formBtn" ng-class="{'dis':info.status!='complete'}" ng-click="downloadEvt(info)"><span class="downloadIcon active"></span>下载</div>
                        <div class="formBtn" ng-click="doRemove(info.id)" ng-if="UserId == info.createAccount"><span class="removeIcon"></span>删除</div>
                    </td>
                </tr>
            </table>
            <flip-info list-info="exprotList" search-txt="searchTxt" search-name="name"></flip-info> 
        </div>
</div>
<div class="dialogWin tipwin" style="width:700px;" ng-show="addstatus">
    <div class="dialogTitle">
        <label>新建导出</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">时间范围:</div>
                <my-datepicker class="dateRange" options="dateOps" init-day="date" max-day="-1"><span>{{datestr}}</span></my-datepicker>
            </div>
            <div class="formDetailItem">
                <div class="iptlabel must">数据类型
                <!-- <help-tip class="help ml" name="推广回流列表" ng-show="exportTypeId=='backflow'"></help-tip> -->:
                </div>
                <select-list meau-info="exportTypeList" meau-id="exportTypeid" meau-data="exportTypeinit" meau-refresh="exprefresh"></select-list>
            </div>
            <div class="formDetailItem">
                <div class="iptlabel must">数据范围:</div>
                <select-list meau-info="exportRangelist" meau-id="exportRangeid" meau-data="exportRangeinit" style="width:160px;" ng-show="!exportgroup"  meau-refresh="exprefresh"></select-list>

                <select-list meau-info="typeInfoList" meau-id="typelistId" meau-name="typeInfoname" style="width:160px;" ng-show="exportRangeId!='all' || exportgroup" meau-red="selnull"  meau-refresh="exprefresh"></select-list>
            </div>
            <div class="formsaveBtnWrap clearfix">
                <div class="btn5" ng-click="save()">立即创建</div>
                <div class="btn6" ng-click="closeAdd()">取消</div>
            </div>
        </div>
    </div>
</div>

<div class="openTipWin" ng-show="wantRefresh">
    <div class="closeGray" ng-click="closeWin()"></div>
    <div class="tipCont">
        导出文件不存在，是否需要重新生成？
    </div>
    <div class="openBtnGroup clearfix">
        <div class="btn8 mr20" ng-click="closeWin()">取消</div>
        <div class="btn8" ng-click="downlistRefresh(null,1)">确定</div>
    </div>
</div>

<del-tip status="delstatus" delfn="removeInfo()">
    请确定是否删除该日志导出？
</del-tip>   