/** * 指标权重 * Created by Michael . */ (function (angular) { var app = angular.module('core.index.indexWeight', [ 'ngResource', 'base.param', 'eccrm.angular', 'eccrm.angularstrap' ]); app.service('IndexWeightService', function (CommonUtils, $resource) { return $resource(CommonUtils.contextPathURL('/core/index/indexWeight/:method'), {}, { // 保存 save: {method: 'POST', params: {method: 'save'}, isArray: false}, // 批量保存 batchSave: {method: 'POST', params: {method: 'save-batch'}, isArray: false}, // 更新 update: {method: 'POST', params: {method: 'update'}, isArray: false}, // 接受字符串数组 deleteByIds: {method: 'POST', params: {method: 'delete'}, isArray: false}, // 不带分页的列表查询 query: {method: 'POST', params: {method: 'query'}, isArray: false} }) }); })(angular);