|
@@ -335,18 +335,20 @@ define([ 'app/app' ], function(app) {
|
|
|
//table设置
|
|
//table设置
|
|
|
$scope.tableParams = new ngTableParams({
|
|
$scope.tableParams = new ngTableParams({
|
|
|
page : 1,
|
|
page : 1,
|
|
|
- count : 20
|
|
|
|
|
|
|
+ size : 10
|
|
|
}, {
|
|
}, {
|
|
|
total : 0,
|
|
total : 0,
|
|
|
getData : function ($defer, params) {
|
|
getData : function ($defer, params) {
|
|
|
// $scope.loading = true;
|
|
// $scope.loading = true;
|
|
|
var param = BaseService.parseParams(params.url());
|
|
var param = BaseService.parseParams(params.url());
|
|
|
- param.keyword = $scope.keyword;
|
|
|
|
|
- manage.getEnterpriseList(param, function (data) {
|
|
|
|
|
|
|
+ // param.keyword = $scope.keyword;
|
|
|
|
|
+ param.startTime = $scope.startFormatDate;
|
|
|
|
|
+ param.endTime = $scope.endFormatDate;
|
|
|
|
|
+ Goods.loadUploadProductDetail(param, function (data) {
|
|
|
params.total(data.totalElements);
|
|
params.total(data.totalElements);
|
|
|
$defer.resolve(data.content);
|
|
$defer.resolve(data.content);
|
|
|
}, function (response) {
|
|
}, function (response) {
|
|
|
- toaster.pop('error', '获取企业列表失败');
|
|
|
|
|
|
|
+ toaster.pop('error', '获取上传产品详情列表失败');
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
@@ -355,5 +357,9 @@ define([ 'app/app' ], function(app) {
|
|
|
$scope.onSearch = function() {
|
|
$scope.onSearch = function() {
|
|
|
$scope.tableParams.reload();
|
|
$scope.tableParams.reload();
|
|
|
};
|
|
};
|
|
|
|
|
+ // 导出
|
|
|
|
|
+ $scope.exportXls = function () {
|
|
|
|
|
+ window.location.href = '/store-service/export?startTime='+ $scope.startFormatDate + '&endTime=' + $scope.endFormatDate
|
|
|
|
|
+ }
|
|
|
}]);
|
|
}]);
|
|
|
});
|
|
});
|