|
|
@@ -1144,7 +1144,16 @@ define([ 'app/app' ], function(app) {
|
|
|
$scope.submitProduct.attach = $scope.attachName;
|
|
|
}
|
|
|
|
|
|
- console.log($scope.submitProduct);
|
|
|
+ Material.submitProduct({}, $scope.submitProduct, function (data) {
|
|
|
+ if (data.data == '已存在此器件') {
|
|
|
+ toaster.pop('info', '已存在此器件');
|
|
|
+ } else {
|
|
|
+ toaster.pop('info', data.data);
|
|
|
+ }
|
|
|
+ }, function (response) {
|
|
|
+ toaster.pop('error', response.data);
|
|
|
+ })
|
|
|
+
|
|
|
};
|
|
|
|
|
|
$scope.attachName = '';
|
|
|
@@ -1156,16 +1165,6 @@ define([ 'app/app' ], function(app) {
|
|
|
$scope.attachName = '';
|
|
|
};
|
|
|
|
|
|
- Material.submitProduct({}, $scope.submitProduct, function (data) {
|
|
|
- if (data.data == '已存在此器件') {
|
|
|
- toaster.pop('info', '已存在此器件');
|
|
|
- } else {
|
|
|
- toaster.pop('info', data.data);
|
|
|
- }
|
|
|
- }, function (response) {
|
|
|
- toaster.pop('error', response.data);
|
|
|
- })
|
|
|
-
|
|
|
}]);
|
|
|
|
|
|
//类目选择模态框
|