appTenant.js 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  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: "post",
  90. data
  91. });
  92. }
  93. // 意见反馈管理类型
  94. export function sysSuggestionTypePage(data) {
  95. return request({
  96. url: "/api-web/sysSuggestionType/queryPage",
  97. method: "post",
  98. data
  99. });
  100. }
  101. // 意见反馈管理删除
  102. export function sysSuggestionTypeDel(data) {
  103. return request({
  104. url: "/api-web/sysSuggestionType/del",
  105. method: "get",
  106. params: data
  107. });
  108. }
  109. // 意见反馈管理添加
  110. export function sysSuggestionTypeAdd(data) {
  111. return request({
  112. url: "/api-web/sysSuggestionType/add",
  113. method: "post",
  114. data
  115. });
  116. }
  117. // 意见反馈管理 处理意见反馈
  118. export function sysSuggestionDispose(data) {
  119. return request({
  120. url: "/api-web/sysSuggestion/dispose",
  121. method: "post",
  122. data
  123. });
  124. }
  125. // 意见反馈管理修改
  126. export function sysSuggestionTypeUpdate(data) {
  127. return request({
  128. url: "/api-web/sysSuggestionType/update",
  129. method: "post",
  130. data
  131. });
  132. }
  133. // 人力资源列表
  134. export function employeeInfo(data) {
  135. return request({
  136. method: "get",
  137. url: "/api-web/employeeInfo/queryPage",
  138. params: data
  139. });
  140. }
  141. // 人力资源添加
  142. export function employeeCreate(data) {
  143. return request({
  144. method: "post",
  145. url: "/api-web/employeeInfo/insert",
  146. data
  147. });
  148. }
  149. // 人力资源修改
  150. export function employeeUpdate(data) {
  151. return request({
  152. method: "post",
  153. url: "/api-web/employeeInfo/update",
  154. data
  155. });
  156. }
  157. // 新增回访记录
  158. export function insertVisit(data) {
  159. return request({
  160. method: "post",
  161. url: "/api-web/employeeInfo/insertVisit",
  162. data
  163. });
  164. }
  165. // 回访记录
  166. export function employeeQueryDetail(data) {
  167. return request({
  168. method: "get",
  169. url: "/api-web/employeeInfo/queryDetail",
  170. params: data
  171. });
  172. }
  173. export function queryEmployeeByRole(data) {
  174. return request({
  175. method: "get",
  176. url: "/api-web/employee/queryEmployeeByRole",
  177. params: data
  178. });
  179. }
  180. // 上传图片
  181. export function uploadFile(data) {
  182. return request({
  183. method: "post",
  184. url: "/api-web/uploadFile",
  185. data
  186. });
  187. }
  188. // 上传图片 base64
  189. export function uploadFileWithBase64(data) {
  190. return request({
  191. method: "post",
  192. url: "/api-web/uploadFileWithBase64",
  193. data
  194. });
  195. }
  196. // 获取上传信息
  197. export function policy(data) {
  198. return request2({
  199. method: "post",
  200. url: "/api-web/getUploadSign",
  201. data
  202. });
  203. }