Commit 96a15298 authored by dahai's avatar dahai

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

parents b56faf09 70b5c280
...@@ -191,7 +191,8 @@ ...@@ -191,7 +191,8 @@
<li class="dropdown user"> <li class="dropdown user">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">
<span class="hidden-xs">当前用户:{{loginData.name}}</span> <i class="glyphicon glyphicon-user"></i>
<span class="hidden-xs">{{loginData.name}}</span>
</a> </a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
<li style="padding: 5px;"> <li style="padding: 5px;">
...@@ -199,7 +200,6 @@ ...@@ -199,7 +200,6 @@
</li> </li>
</ul> </ul>
</li> </li>
<li class="dropdown user user-menu"> <li class="dropdown user user-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" style="padding-bottom: 0;"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" style="padding-bottom: 0;">
<img src="newTheme/dist/img/logo.jpg" class="user-image" alt="User Image"> <img src="newTheme/dist/img/logo.jpg" class="user-image" alt="User Image">
......
...@@ -173,17 +173,12 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule']) ...@@ -173,17 +173,12 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
}) })
}, },
selectXmlPackage:function(date,state,success){ selectXmlPackage:function(date,success){
if(angular.isUndefined(state)){
state=-1;
}
console.log(date,state)
$http({ $http({
method: 'GET', method: 'GET',
url: "../importXML/queryPersonXMLCount"+urlTimeStamp(), url: "../importXML/queryPersonXMLCount"+urlTimeStamp(),
params:{ params:{
importDate:date, importDate:date
state:state
} }
}).then(function successCallback(response) { }).then(function successCallback(response) {
success(response.data) success(response.data)
......
...@@ -91,9 +91,7 @@ ...@@ -91,9 +91,7 @@
</td> </td>
<td> <td>
<select class="form-control select2" id="state" ng-model="state"> <select class="form-control select2" id="state" ng-model="state">
<option value="">--请选择解析状态--</option> <option value="{{state.stateCode}}" ng-repeat="state in [{stateName:'已解析',stateCode:1},{stateName:'未解析',stateCode:0}] track by $index">{{state.stateName}}</option>
<option value="1">已解析</option>
<option value="-1">未解析</option>
</select> </select>
</td> </td>
<td> <td>
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
<div class="box-primary"> <div class="box-primary">
<table class="table table-bordered" style="margin-bottom: 0;"> <table class="table table-bordered" style="margin-bottom: 0;">
<tr> <tr>
<td width="10%">选择XML文件:</td> <td width="15%">选择XML文件:</td>
<td colspan="2" width="35%"> <td colspan="2" width="35%">
<input type="file" <input type="file"
id="id_file_photo_for_check" id="id_file_photo_for_check"
...@@ -53,8 +53,8 @@ ...@@ -53,8 +53,8 @@
<div class="box-primary" style="padding: 15px;padding-top: 0;"> <div class="box-primary" style="padding: 15px;padding-top: 0;">
<table class="table table-bordered" style="margin-bottom: 0;"> <table class="table table-bordered" style="margin-bottom: 0;">
<tr> <tr>
<td>XML导入时间:</td> <td width="15%">XML导入时间:</td>
<td> <td colspan="2" width="35%">
<div class="input-group date" style="width: 65%"> <div class="input-group date" style="width: 65%">
<div class="input-group-addon"> <div class="input-group-addon">
<i class="fa fa-calendar"></i> <i class="fa fa-calendar"></i>
...@@ -62,15 +62,7 @@ ...@@ -62,15 +62,7 @@
<input type="text" class="form-control pull-right" ng-model="choseDate" id="datepicker" readonly/> <input type="text" class="form-control pull-right" ng-model="choseDate" id="datepicker" readonly/>
</div> </div>
</td> </td>
<td> <td style="text-align: left;">
状态
</td>
<td>
<select class="form-control select2" id="state" ng-model="state">
<option value="{{state.stateCode}}" ng-repeat="state in [{stateName:'已解析',stateCode:1},{stateName:'未解析',stateCode:0}] track by $index">{{state.stateName}}</option>
</select>
</td>
<td>
<button class="btn btn-primary" ng-click="getXmlPackage()">查询</button> <button class="btn btn-primary" ng-click="getXmlPackage()">查询</button>
</td> </td>
</tr> </tr>
......
...@@ -69,8 +69,8 @@ angular.module('AvatarCheck.xmlAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm.p ...@@ -69,8 +69,8 @@ angular.module('AvatarCheck.xmlAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm.p
} }
$scope.getXmlPackage = function(){ $scope.getXmlPackage = function(){
console.log($("#datepicker").val(),$scope.state) console.log($("#datepicker").val())
HttpService.selectXmlPackage($("#datepicker").val(),$scope.state,function(data){ HttpService.selectXmlPackage($("#datepicker").val(),function(data){
$scope.xmlPackageData = data; $scope.xmlPackageData = data;
console.log("$scope.xmlPackageData:",$scope.xmlPackageData) console.log("$scope.xmlPackageData:",$scope.xmlPackageData)
}) })
......
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