index.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. * @Author: zhangyu
  3. * @Date: 2020-05-13 11:18:18
  4. * @Info:
  5. * @LastEditTime: 2020-05-18 11:27:42
  6. */
  7. import {baseUrl} from '@/api/scan/config'
  8. import http from '@/api/scan/httpUtil'
  9. //设备清单-查询当前设备类下的部件分类
  10. export function getPartsAllType(param, success) {
  11. let url = `${baseUrl}/equip-component/equip-query/equip-compon`;
  12. http.getJson(url, param, success)
  13. }
  14. //字典查询接口 竖井所有类型
  15. export function queryShaftType(success) {
  16. let url = `${baseUrl}/datacenter/data-dictionary/query-shaft-type`;
  17. http.getJson(url, {}, success)
  18. }
  19. //all - 查询数据字典 --列表表头
  20. export function getDataDictionary(param, success) {
  21. let url = `${baseUrl}/datacenter/data-dictionary/project/query?type=${param.type}`;
  22. let data = param.data
  23. http.postJson(url, data, success)
  24. }
  25. //创建品牌
  26. export function brandCreate(param, success) {
  27. let url = `${baseUrl}/prod/brand/create`;
  28. http.postJson(url, param, success)
  29. }
  30. //根据id删除品牌
  31. export function brandDelete(param, success) {
  32. let url = `${baseUrl}/prod/brand/delete`;
  33. http.postJson(url, param, success)
  34. }
  35. //更改品牌信息
  36. export function brandUpdate(param, success) {
  37. let url = `${baseUrl}/prod/brand/update`;
  38. http.postJson(url, param, success)
  39. }
  40. //查询品牌信息
  41. export function brandQuery(param, success) {
  42. let url = `${baseUrl}/prod/brand/query`;
  43. http.postJson(url, param, success)
  44. }
  45. //根据条件查询统计数量
  46. export function brandCount(param, success) {
  47. let url = `${baseUrl}/prod/brand/count`;
  48. http.getJson(url, param, success)
  49. }