|
@@ -10481,10 +10481,10 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
|
|
|
|
|
// 一键开启关闭
|
|
// 一键开启关闭
|
|
|
$scope.toggle = function(status) {
|
|
$scope.toggle = function(status) {
|
|
|
- if($scope.saleStatus = 0) {
|
|
|
|
|
- $scope.saleStatus = 1;
|
|
|
|
|
|
|
+ if($scope.saleStatus == 0) {
|
|
|
|
|
+ $scope.saleStatus == 1;
|
|
|
} else {
|
|
} else {
|
|
|
- $scope.saleStatus = 0;
|
|
|
|
|
|
|
+ $scope.saleStatus == 0;
|
|
|
}
|
|
}
|
|
|
$scope.loading = true;
|
|
$scope.loading = true;
|
|
|
GetProductInfo.toggle({status: status}, {}, function(data) {
|
|
GetProductInfo.toggle({status: status}, {}, function(data) {
|
|
@@ -17756,10 +17756,10 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
|
|
|
|
|
// 一键开启关闭
|
|
// 一键开启关闭
|
|
|
$scope.toggle = function(status) {
|
|
$scope.toggle = function(status) {
|
|
|
- if($scope.purcStatus = 0) {
|
|
|
|
|
- $scope.purcStatus = 1;
|
|
|
|
|
|
|
+ if($scope.purcStatus == 0) {
|
|
|
|
|
+ $scope.purcStatus == 1;
|
|
|
} else {
|
|
} else {
|
|
|
- $scope.purcStatus = 0;
|
|
|
|
|
|
|
+ $scope.purcStatus == 0;
|
|
|
}
|
|
}
|
|
|
$scope.loading = true;
|
|
$scope.loading = true;
|
|
|
Products.toggle({status: status}, {}, function(data) {
|
|
Products.toggle({status: status}, {}, function(data) {
|