portal.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. import request from '@/utils/request'
  2. //门户列表
  3. export function PortalList() {
  4. return request({
  5. url: `/api/visualdev/Portal/Selector?platform=App&type=1`,
  6. method: 'get',
  7. options: {
  8. load: false
  9. }
  10. })
  11. }
  12. //更新门户
  13. export function SetPortal(id) {
  14. return request({
  15. url: `/api/visualdev/Portal/${id}/Actions/SetDefault?platform=App`,
  16. method: 'put',
  17. options: {
  18. load: false
  19. }
  20. })
  21. }
  22. //门户列表切换后列表
  23. export function auth(id) {
  24. return request({
  25. url: `/api/visualdev/Portal/${id}/auth?platform=App`,
  26. method: 'get',
  27. options: {
  28. load: false
  29. }
  30. })
  31. }
  32. //获取门户地图数据
  33. export function geojson(code) {
  34. return request({
  35. url: `/api/system/atlas/geojson?code=${code}&hasChildren=true`,
  36. method: 'get',
  37. options: {
  38. load: false
  39. }
  40. })
  41. }
  42. //获取省市区树
  43. export function getAtlas() {
  44. return request({
  45. url: `/api/system/atlas`,
  46. method: 'get',
  47. options: {
  48. load: false
  49. }
  50. })
  51. }
  52. // 获取发送配置列表列表
  53. export const getMsgTemplate = data => {
  54. return request({
  55. url: '/api/message/SendMessageConfig/getSendConfigList',
  56. method: 'GET',
  57. data,
  58. options: {
  59. load: false
  60. }
  61. })
  62. }
  63. // 预览
  64. export const getPreviewPortal = id => {
  65. return request({
  66. url: '/api/visualdev/Portal/' + id,
  67. method: 'GET',
  68. options: {
  69. load: false
  70. }
  71. })
  72. }