commonApi.js 745 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import request from '@/utils/request';
  2. // 查询用电分类
  3. export function getElecValencyType(){
  4. return request({
  5. url: '/ems/common/elecvalency/type',
  6. method: 'get'
  7. })
  8. }
  9. // 查询能源分类树
  10. export function getEmsClsTree(){
  11. return request({
  12. url: '/ems/common/emscls/tree',
  13. method: 'get'
  14. })
  15. }
  16. // 查询标签列表
  17. export function getEmsTag(tagModel){
  18. return request({
  19. url: '/ems/common/emstag?tagModel=' + tagModel,
  20. method: 'get'
  21. })
  22. }
  23. // 查询标签列表
  24. export function getDevcType(){
  25. return request({
  26. url: '/ems/common/devc/type',
  27. method: 'get'
  28. })
  29. }
  30. export const get = (uri, param = {}) => {
  31. return request({
  32. url: `/ems/${uri}`,
  33. method: 'get',
  34. params: param,
  35. });
  36. };