Browse Source

修复打包压缩语法错误的Bug

suntg 7 years ago
parent
commit
605929abfc

+ 1 - 1
src/main/webapp/resources/js/admin/controllers/supplierMaintenanceCtrl.js

@@ -45,7 +45,7 @@ define([ 'app/app' ], function(app) {
 
 		// 删除供应商信息
 		$scope.deleteSupplier = function(flag, supplier) {
-			SupplierSubmit.delete({id : flag}, function(){
+			SupplierSubmit.deleteById({id : flag}, function(){
 				toaster.pop('info', '提示', "删除申请已提交待审核");
 			});
 			supplier.edit = false;

+ 5 - 5
src/main/webapp/resources/js/common/query/supplier.js

@@ -26,7 +26,7 @@ define([ 'ngResource' ], function() {
 			/*
 			 * 删除品牌供应商申请信息
 			 */
-			delete: {
+			deleteById: {
 				url: rootPath + '/produce/vendorSubmit/:id',
 				method: 'DELETE'
 			},
@@ -41,28 +41,28 @@ define([ 'ngResource' ], function() {
 			/*
 			 * 保存
 			 */
-			submit : {
+			submit: {
 				url : rootPath + '/produce/vendorSubmit',
 				method : 'POST'
 			},
 			/*
 			 * 更新供应商申请
 			 */
-			updateSupplier : {
+			updateSupplier: {
 				url : rootPath + '/produce/vendorSubmit/update',
 				method : 'POST'
 			},
 			/*
 			 * 审核通过
 			 */
-			audit : {
+			audit: {
 				url : rootPath + '/produce/vendorSubmit/audit',
 				method : 'POST'
 			},
 			/*
 			 * 审核不通过
 			 */
-			unaudit : {
+			unaudit: {
 				url : rootPath + '/produce/vendorSubmit/unaudit/:id',
 				method : 'POST'
 			}