Commit dc05d95c authored by liboyang's avatar liboyang

下载制证包选制证类型

parent 837537c1
......@@ -48,7 +48,7 @@
<td><input type="text" class="form-control" ng-model="sljg" placeholder="受理机关"></td>
<td>制证类型:</td>
<td style="text-align: left;">
<select class="form-control select2" id="county" ng-model="typeCode">
<select class="form-control select2" id="cardType">
<option value="">--请选择制证类型--</option>
<option value="{{type.cardTypeId}}" ng-repeat="type in typeList">{{type.cardType}}</option>
</select>
......
......@@ -85,6 +85,7 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't
var getCountAndDownloadUrl = function (url) {
var date = $("#datepicker").val();
var packageType = $("#packageType").val();
var cardType=$("#cardType").val();
if(angular.isUndefined($scope.uploadNo)){
url = url + 'uploadNo=&';
}else{
......@@ -110,10 +111,10 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't
}else{
url = url + 'SSXQDM=' + $scope.sljg + '&';
}
if(angular.isUndefined($scope.typeCode)){
if(cardType==''){
url = url + 'cardType=&';
}else{
url = url + 'cardType=' + $scope.typeCode + '&';
url = url + 'cardType=' + cardType + '&';
}
if(angular.isUndefined(packageType)){
url = url + 'state=&';
......@@ -121,8 +122,7 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't
url = url + 'state=' + packageType + '&';
}
if (date==''){
date=$filter("date")(new Date(), "yyyy-MM-dd");
url = url + 'uploadDate=' + date + '&';
url = url + 'uploadDate=&';
}else{
url = url + 'uploadDate=' + date + '&';
}
......@@ -133,7 +133,8 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't
var a = document.createElement("a");
document.body.appendChild(a);
a.href = encodeURI(getCountAndDownloadUrl(url));
a.click();
console.log(encodeURI(getCountAndDownloadUrl(url)))
// a.click();
}
var getTypeList = function(){
......
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