|
|
@@ -595,6 +595,9 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
controller: 'AddPartnersCtrl'
|
|
|
}).state('baseInfo.partner_searchresult', {
|
|
|
url: '/search',
|
|
|
+ params: {
|
|
|
+ 'active': 'done'
|
|
|
+ },
|
|
|
templateUrl: "static/tpl/index/baseInfo/searchresult.html",
|
|
|
controller: 'EnterpriseSearchCtrl'
|
|
|
}).state('baseInfo.invitation', {
|
|
|
@@ -14774,8 +14777,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
}, function (response) {
|
|
|
|
|
|
});
|
|
|
- }
|
|
|
- ;
|
|
|
+ };
|
|
|
|
|
|
// 查找供应商
|
|
|
$scope.dbfindVend = function () {
|
|
|
@@ -20974,10 +20976,14 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
}]);
|
|
|
|
|
|
// 企业圈搜索结果
|
|
|
- app.controller('EnterpriseSearchCtrl', ['$scope', 'getAccountUserSpace', 'ngTableParams', '$filter', 'BaseService', 'toaster', 'AddPartner', '$rootScope', '$modal', 'InvitationRecord', function ($scope, getAccountUserSpace, ngTableParams, $filter, BaseService, toaster, AddPartner, $rootScope, $modal, InvitationRecord) {
|
|
|
+ app.controller('EnterpriseSearchCtrl', ['$scope', 'getAccountUserSpace', 'ngTableParams', '$filter', 'BaseService', 'toaster', 'AddPartner', '$rootScope', '$modal', 'InvitationRecord', '$stateParams', function ($scope, getAccountUserSpace, ngTableParams, $filter, BaseService, toaster, AddPartner, $rootScope, $modal, InvitationRecord, $stateParams) {
|
|
|
$scope.status = 'add';
|
|
|
BaseService.scrollBackToTop();
|
|
|
- $scope.active = 'all';
|
|
|
+ if ($stateParams.active != null) {
|
|
|
+ $scope.active = $stateParams.active;
|
|
|
+ } else {
|
|
|
+ $scope.active = 'all';
|
|
|
+ }
|
|
|
$scope.agreedText = '全部';
|
|
|
$scope.dateZoneText = '一个月内';
|
|
|
$scope.condition = {dateZone: 1};
|