map.js 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import {requestInstance_Map_token, requestInstance_Service_token, requestPost} from "./index.js";
  2. export function getMapToken(){
  3. return requestInstance_Map_token({
  4. url:'/ToolShare/getToken',
  5. data:{
  6. "APPLY_KEY": "20230816178478",
  7. "CID": "b7d75267-3377-456a-9b99-4871d9c11589",
  8. "RID": "AH0026"
  9. }
  10. })
  11. }
  12. export function getServiceToken(name,password){
  13. debugger
  14. return requestInstance_Service_token({
  15. url:'/security/getToken',
  16. params:{
  17. "username": name,
  18. "key": password
  19. }
  20. })
  21. }
  22. export function getLegend(url){
  23. return requestInstance_Service_token({
  24. url
  25. })
  26. }
  27. export function getMapNum(type,id){
  28. return requestInstance_Map_token({
  29. url:'/DataSearch/OneCode/clustering',
  30. data:{
  31. "esAggregation":{
  32. "field":"1111",
  33. "value":type,
  34. "size":999
  35. },
  36. "businessField": {
  37. "catalogCode": id
  38. }
  39. }
  40. })
  41. }