doctorArticle.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. import request from '@/utils/request'
  2. // 查询医生文章列表
  3. export function listArticle(query) {
  4. return request({
  5. url: '/his/doctorArticle/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询医生名称列表
  11. export function listdocuser(query) {
  12. return request({
  13. url: '/his/doctor/userdoc/list',
  14. method: 'get',
  15. params: query
  16. })
  17. }
  18. // 查询医生文章详细
  19. export function getArticle(articleId) {
  20. return request({
  21. url: '/his/doctorArticle/' + articleId,
  22. method: 'get'
  23. })
  24. }
  25. // 新增医生文章
  26. export function addArticle(data) {
  27. return request({
  28. url: '/his/doctorArticle',
  29. method: 'post',
  30. data: data
  31. })
  32. }
  33. // 修改医生文章
  34. export function updateArticle(data) {
  35. return request({
  36. url: '/his/doctorArticle',
  37. method: 'put',
  38. data: data
  39. })
  40. }
  41. // 删除医生文章
  42. export function delArticle(articleId) {
  43. return request({
  44. url: '/his/doctorArticle/' + articleId,
  45. method: 'delete'
  46. })
  47. }
  48. // 导出医生文章
  49. export function exportArticle(query) {
  50. return request({
  51. url: '/his/doctorArticle/export',
  52. method: 'get',
  53. params: query
  54. })
  55. }