indexWeight.js 1007 B

123456789101112131415161718192021222324252627282930313233
  1. /**
  2. * 指标权重
  3. * Created by Michael .
  4. */
  5. (function (angular) {
  6. var app = angular.module('core.index.indexWeight', [
  7. 'ngResource',
  8. 'base.param',
  9. 'eccrm.angular',
  10. 'eccrm.angularstrap'
  11. ]);
  12. app.service('IndexWeightService', function (CommonUtils, $resource) {
  13. return $resource(CommonUtils.contextPathURL('/core/index/indexWeight/:method'), {}, {
  14. // 保存
  15. save: {method: 'POST', params: {method: 'save'}, isArray: false},
  16. // 批量保存
  17. batchSave: {method: 'POST', params: {method: 'save-batch'}, isArray: false},
  18. // 更新
  19. update: {method: 'POST', params: {method: 'update'}, isArray: false},
  20. // 接受字符串数组
  21. deleteByIds: {method: 'POST', params: {method: 'delete'}, isArray: false},
  22. // 不带分页的列表查询
  23. query: {method: 'POST', params: {method: 'query'}, isArray: false}
  24. })
  25. });
  26. })(angular);