appTenant.js 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. import request from '@/utils/request'
  2. import qs from 'qs'
  3. let api = '/api-web'
  4. // 分页查询活动列表
  5. export function getEntryActivities(data) {
  6. return request({
  7. url: api + '/tenantEntryActivities/queryPage',
  8. method: 'get',
  9. params: data
  10. })
  11. }
  12. // 新增、修改活动
  13. export function getActivitieMerge(data) {
  14. return request({
  15. url: api + '/tenantEntryActivities/merge',
  16. method: 'post',
  17. data: data
  18. })
  19. }
  20. // 启用,停止
  21. export function getActivitieUpdateDelFlag(data) {
  22. return request({
  23. url: api + '/tenantEntryActivities/updateDelFlag',
  24. method: 'post',
  25. data: qs.stringify(data)
  26. })
  27. }
  28. // 查询单条活动
  29. export function getActivitieQuery(data) {
  30. return request({
  31. url: api + '/tenantEntryActivities/query',
  32. method: 'get',
  33. params: data
  34. })
  35. }
  36. // 帮助中心分类列表
  37. export function helpCenterCatalogList(data) {
  38. return request({
  39. url: '/api-cms/helpCenterCatalog/list',
  40. method: 'get',
  41. params: data
  42. })
  43. }
  44. // 帮助中心分类列表 添加或修改
  45. export function helpCenterCatalogModify(data) {
  46. return request({
  47. url: '/api-cms/helpCenterCatalog/modify',
  48. method: 'post',
  49. data: qs.stringify(data)
  50. })
  51. }
  52. // 帮助中心分类列表 删除
  53. export function helpCenterCatalogDelete(data) {
  54. return request({
  55. url: '/api-cms/helpCenterCatalog/delete',
  56. method: 'post',
  57. data: qs.stringify(data)
  58. })
  59. }
  60. // 帮助中心内容列表
  61. export function helpCenterContentList(data) {
  62. return request({
  63. url: '/api-cms/helpCenterContent/list',
  64. method: 'get',
  65. params: data
  66. })
  67. }
  68. // 帮助中心内容 添加或修改
  69. export function helpCenterContentModify(data) {
  70. return request({
  71. url: '/api-cms/helpCenterContent/modify',
  72. method: 'post',
  73. data: qs.stringify(data)
  74. })
  75. }
  76. // 帮助中心内容 删除
  77. export function helpCenterContentDelete(data) {
  78. return request({
  79. url: '/api-cms/helpCenterContent/delete',
  80. method: 'post',
  81. data: qs.stringify(data)
  82. })
  83. }
  84. // 意见反馈管理
  85. export function sysSuggestionList(data) {
  86. return request({
  87. url: '/api-web/sysSuggestion/queryPage',
  88. method: 'get',
  89. params: data
  90. })
  91. }
  92. // 人力资源列表
  93. export function employeeInfo(data) {
  94. return request({
  95. method: 'get',
  96. url: '/api-web/employeeInfo/queryPage',
  97. params: data
  98. })
  99. }
  100. // 人力资源添加
  101. export function employeeCreate(data) {
  102. return request({
  103. method: 'post',
  104. url: '/api-web/employeeInfo/insert',
  105. data
  106. })
  107. }
  108. // 人力资源修改
  109. export function employeeUpdate(data) {
  110. return request({
  111. method: 'post',
  112. url: '/api-web/employeeInfo/update',
  113. data
  114. })
  115. }
  116. // 新增回访记录
  117. export function insertVisit(data) {
  118. return request({
  119. method: 'post',
  120. url: '/api-web/employeeInfo/insertVisit',
  121. data
  122. })
  123. }
  124. // 回访记录
  125. export function employeeQueryDetail(data) {
  126. return request({
  127. method: 'get',
  128. url: '/api-web/employeeInfo/queryDetail',
  129. params: data
  130. })
  131. }
  132. export function queryEmployeeByRole(data) {
  133. return request({
  134. method: 'get',
  135. url: '/api-web/employee/queryEmployeeByRole',
  136. params: data
  137. })
  138. }
  139. // 上传图片
  140. export function uploadFile(data) {
  141. return request({
  142. method: 'post',
  143. url: '/api-web/uploadFile',
  144. data
  145. })
  146. }
  147. // 上传图片 base64
  148. export function uploadFileWithBase64(data) {
  149. return request({
  150. method: 'post',
  151. url: '/api-web/uploadFileWithBase64',
  152. data
  153. })
  154. }