Commit ee8658b9 authored by suichenguang's avatar suichenguang

Merge remote-tracking branch 'origin/dev' into dev

parents 0cb3172f dcc058a6
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
提示 提示
</div> </div>
<div class="ui-dialog-content"> <div class="ui-dialog-content">
<div>确认下载{{count}}条记录吗?</div> <div>下载格口文件导入日期为:{{importDate}} 的<strong>{{count}}</strong>条记录</div>
</div> </div>
<div class="ui-dialog-confirm"> <div class="ui-dialog-confirm">
<button type="submit" class="btn btn-info" ng-click="confirmDownload()">确认</button> <button type="submit" class="btn btn-info" ng-click="confirmDownload()">确认</button>
......
...@@ -42,13 +42,12 @@ ...@@ -42,13 +42,12 @@
<td><input type="text" class="form-control" ng-model="emailNo" placeholder="邮件号"></td> <td><input type="text" class="form-control" ng-model="emailNo" placeholder="邮件号"></td>
</tr> </tr>
<tr> <tr>
<td>打印状态:</td> <td>数据状态:</td>
<td style="text-align: left;"> <td style="text-align: left;">
<select class="form-control select2" id="print" <select class="form-control select2" id="notNull" ng-model="isValid">
ng-model="isPrint"> <option value="">--请选择数据状态--</option>
<option value="">--请选择打印状态--</option> <option value="1">有效记录</option>
<option value="1">已打印</option> <option value="0">无效记录</option>
<option value="0">未打印</option>
</select> </select>
</td> </td>
<td >格口:</td> <td >格口:</td>
...@@ -72,12 +71,13 @@ ...@@ -72,12 +71,13 @@
<span class="input-group-addon"><span class="glyphicon glyphicon-remove"></span></span> <span class="input-group-addon"><span class="glyphicon glyphicon-remove"></span></span>
</div> </div>
</td> </td>
<td>数据状态:</td> <td>打印状态:</td>
<td style="text-align: left;"> <td style="text-align: left;">
<select class="form-control select2" id="notNull" ng-model="isValid"> <select class="form-control select2" id="print"
<option value="">--请选择数据状态--</option> ng-model="isPrint">
<option value="1">有效记录</option> <option value="">--请选择打印状态--</option>
<option value="0">无效记录</option> <option value="1">已打印</option>
<option value="0">未打印</option>
</select> </select>
</td> </td>
<td colspan="2"> <td colspan="2">
......
...@@ -205,6 +205,7 @@ angular.module('AvatarCheck.uploadExcelAndSearch', ['ngRoute', 'AvatarCheck.http ...@@ -205,6 +205,7 @@ angular.module('AvatarCheck.uploadExcelAndSearch', ['ngRoute', 'AvatarCheck.http
}) })
} }
$scope.downloadExcel = function(){ $scope.downloadExcel = function(){
var date =$('#datepicker').val();
ngDialog.open({ ngDialog.open({
template: 'dialogs/confirmToDownload.html' + urlTimeStamp(), template: 'dialogs/confirmToDownload.html' + urlTimeStamp(),
width: 800, width: 800,
...@@ -212,6 +213,7 @@ angular.module('AvatarCheck.uploadExcelAndSearch', ['ngRoute', 'AvatarCheck.http ...@@ -212,6 +213,7 @@ angular.module('AvatarCheck.uploadExcelAndSearch', ['ngRoute', 'AvatarCheck.http
closeByDocument:false, closeByDocument:false,
controller: ['$scope',function ($scope) { controller: ['$scope',function ($scope) {
getCount() getCount()
$scope.importDate = date;
$scope.confirmDownload = function () { $scope.confirmDownload = function () {
var url = '../personPostApi/download?'; var url = '../personPostApi/download?';
var a = document.createElement("a"); var a = document.createElement("a");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment