appTenant.js 3.6 KB

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