notification.js 997 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import request from '@/utils/request'
  2. // 查询环保信用评价结果的通知列表
  3. export function listNotification(query) {
  4. return request({
  5. url: '/crmEnvironmentalCreditEvaluationNotification/findByPage',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询环保信用评价结果的通知详细
  11. export function getNotification(id) {
  12. return request({
  13. url: '/basicData/notification/' + id,
  14. method: 'get'
  15. })
  16. }
  17. // 新增环保信用评价结果的通知
  18. export function addNotification(data) {
  19. return request({
  20. url: '/basicData/notification',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 修改环保信用评价结果的通知
  26. export function updateNotification(data) {
  27. return request({
  28. url: '/basicData/notification',
  29. method: 'put',
  30. data: data
  31. })
  32. }
  33. // 删除环保信用评价结果的通知
  34. export function delNotification(id) {
  35. return request({
  36. url: '/crmEnvironmentalCreditEvaluationNotification/deleteAll',
  37. method: 'delete'
  38. })
  39. }