|
|
@@ -1,8 +1,8 @@
|
|
|
define(['app/app'], function (app) {
|
|
|
app.register.controller('seekPurchaseCtrl',
|
|
|
- ['$scope', '$rootScope', '$stateParams', '$state', 'toaster',
|
|
|
+ ['$scope', '$location', '$rootScope', '$stateParams', '$state', 'toaster',
|
|
|
'seekPurchase', 'BaseService', 'ngTableParams', '$modal', '$upload', '$http',
|
|
|
- function ($scope, $rootScope, $stateParams, $state, toaster,
|
|
|
+ function ($scope, $location, $rootScope, $stateParams, $state, toaster,
|
|
|
seekPurchase, BaseService, ngTableParams, $modal, $upload, $http) {
|
|
|
document.title = '求购询价-优软商城';
|
|
|
$rootScope.active = 'vendor_seek_purchase';
|
|
|
@@ -20,7 +20,12 @@ define(['app/app'], function (app) {
|
|
|
$scope.initInquiryItem();
|
|
|
|
|
|
//卖家待报价推送信息,self为与我相关,all为全部
|
|
|
- $scope.vendorType = 'all';
|
|
|
+ if ($location.search().type === '1') {
|
|
|
+ $scope.vendorType = 'self';
|
|
|
+ console.log(1)
|
|
|
+ } else {
|
|
|
+ $scope.vendorType = 'all';
|
|
|
+ }
|
|
|
|
|
|
// 获取当前卖家求购推送列表
|
|
|
$scope.seekPurchaseTableParams = new ngTableParams({
|