index.js 700 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import request from '@/utils/request'
  2. // 查询客服组分页列表
  3. export function listCustomerRole(query) {
  4. return request({
  5. url: '/app/cusrole/pageList',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询客服组下拉选项
  11. export function listCustomerRoleOptions() {
  12. return request({
  13. url: '/app/cusrole/pageList',
  14. method: 'get',
  15. params: { pageNum: 1, pageSize: 999 }
  16. })
  17. }
  18. // 新增客服组
  19. export function addCustomerRole(data) {
  20. return request({
  21. url: '/app/cusrole',
  22. method: 'post',
  23. data: data
  24. })
  25. }
  26. // 修改客服组
  27. export function updateCustomerRole(data) {
  28. return request({
  29. url: '/app/cusrole',
  30. method: 'put',
  31. data: data
  32. })
  33. }