quotations.js 894 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. import request from '@/utils/request'
  2. // 查询行情列表
  3. export function listQuotations(query) {
  4. return request({
  5. url: '/quotations/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询行情详细
  11. export function getQuotations(id) {
  12. return request({
  13. url: '/quotations/' + id ,
  14. method: 'get'
  15. })
  16. }
  17. // 新增行情
  18. export function addQuotations(data) {
  19. return request({
  20. url: '/quotations',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 修改行情
  26. export function updateQuotations(data) {
  27. return request({
  28. url: '/quotations',
  29. method: 'put',
  30. data: data
  31. })
  32. }
  33. // 删除行情
  34. export function delQuotations(id) {
  35. return request({
  36. url: '/quotations/' + id ,
  37. method: 'delete'
  38. })
  39. }
  40. // 修改审核状态
  41. export function updateStatus(data) {
  42. return request({
  43. url: '/quotations/status',
  44. method: 'post',
  45. data: data
  46. })
  47. }