|
|
@@ -5430,23 +5430,34 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.currentEn = data;
|
|
|
publicInquiry.getUrl({}, function(data) {
|
|
|
$scope.url = data.url;
|
|
|
- if (!$scope.remind) {// 非推荐信息
|
|
|
- $http({
|
|
|
- method: 'get',
|
|
|
- dataType: 'json',
|
|
|
- url: $scope.url + '/inquiry/public',
|
|
|
- params: {pageNumber: pageParams.page, pageSize: pageParams.count, enUU: $scope.currentEn.uu, keyword: $scope.keyword,
|
|
|
- fromDate: getDateTime($scope.condition.dateFrom), endDate: getDateTime($scope.condition.dateTo), distribute: $scope.distribute, remind: $scope.remind}
|
|
|
- }).success(function (response) {
|
|
|
- $scope.loading = false;
|
|
|
- if (response) {
|
|
|
- params.total(response.totalElements);
|
|
|
- $defer.resolve(response.content);
|
|
|
- $scope.searchFilterXls = angular.copy(pageParams.searchFilter);//保存当前取值的关键词
|
|
|
- }
|
|
|
- }).error(function (err) {
|
|
|
+ if (!$scope.remind) {// 企业商机
|
|
|
+ AuthenticationService.getAuthentication().success(function (data) {
|
|
|
$scope.loading = false;
|
|
|
- toaster.pop('error', '数据加载失败', err);
|
|
|
+ $scope.thisUser = data;
|
|
|
+ $http({
|
|
|
+ method: 'get',
|
|
|
+ dataType: 'json',
|
|
|
+ url: $scope.url + '/inquiry/sale/enremind',
|
|
|
+ params: {
|
|
|
+ pageNumber: pageParams.page,
|
|
|
+ pageSize: pageParams.count,
|
|
|
+ useruu: $scope.thisUser.userUU,
|
|
|
+ enuu: $scope.currentEn.uu,
|
|
|
+ keyword: $scope.keyword,
|
|
|
+ fromDate: getDateTime($scope.condition.dateFrom),
|
|
|
+ endDate: getDateTime($scope.condition.dateTo)
|
|
|
+ }
|
|
|
+ }).success(function (response) {
|
|
|
+ $scope.loading = false;
|
|
|
+ if (response) {
|
|
|
+ params.total(response.totalElements);
|
|
|
+ $defer.resolve(response.content);
|
|
|
+ $scope.searchFilterXls = angular.copy(pageParams.searchFilter);//保存当前取值的关键词
|
|
|
+ }
|
|
|
+ }).error(function (err) {
|
|
|
+ $scope.loading = false;
|
|
|
+ toaster.pop('error', '数据加载失败', err);
|
|
|
+ });
|
|
|
});
|
|
|
} else {// 推荐报价信息
|
|
|
AuthenticationService.getAuthentication().success(function (data) {
|