|
|
@@ -263,7 +263,7 @@ define([ 'app/app' ], function(app) {
|
|
|
});
|
|
|
};
|
|
|
|
|
|
- function downloadByJs(url, keyword) {
|
|
|
+ function downloadByJs(url, keyword, type) {
|
|
|
var form = $("<form>"); //定义一个form表单
|
|
|
form.attr('style', 'display:none'); //在form表单中添加查询参数
|
|
|
form.attr('target', '');
|
|
|
@@ -274,10 +274,15 @@ define([ 'app/app' ], function(app) {
|
|
|
input1.attr('type', 'hidden');
|
|
|
input1.attr('name', 'keyword');
|
|
|
input1.attr('value', keyword);
|
|
|
+
|
|
|
+ var input2 = $('<input>');
|
|
|
input1.attr('type', 'hidden');
|
|
|
+ input1.attr('name', 'type');
|
|
|
+ input1.attr('value', type);
|
|
|
|
|
|
$('body').append(form); //将表单放置在web中
|
|
|
form.append(input1); //将查询参数控件提交到表单上
|
|
|
+ form.append(input2); //将类型参数控件提交到表单上
|
|
|
form.submit();
|
|
|
}
|
|
|
|
|
|
@@ -288,9 +293,9 @@ define([ 'app/app' ], function(app) {
|
|
|
return;
|
|
|
}
|
|
|
if ('standard' == $scope.standard_tab)
|
|
|
- downloadByJs('trade/products/template/standard', $scope.param.keyword);
|
|
|
+ downloadByJs('trade/products/template/download/type', $scope.param.keyword, 'standard');
|
|
|
if ('unstandard' == $scope.standard_tab)
|
|
|
- downloadByJs('trade/products/template/unstandard', $scope.param.keyword);
|
|
|
+ downloadByJs('trade/products/template/download/type', $scope.param.keyword, 'nStandard');
|
|
|
};
|
|
|
|
|
|
//初始化页数信息
|