scene.ts 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. import { ModelSceneStatus, QuoteSceneStatus, SceneType } from "@/store/scene";
  2. export const SceneTypeDesc: { [key in SceneType]: string } = {
  3. [SceneType.SWKK]: "八目",
  4. [SceneType.SWKJ]: "双目转台",
  5. [SceneType.SWSS]: "激光转台点云场景",
  6. [SceneType.SWMX]: "三维模型",
  7. [SceneType.SWSSMX]: "激光转台Mesh场景",
  8. [SceneType.SWYDSS]: "激光移动点云场景",
  9. [SceneType.SWYDMX]: "激光移动Mesh场景",
  10. // [SceneType.QJKK]: '全景看看',
  11. };
  12. export const SceneTypeDomain: { [key in SceneType]: string } = {
  13. [SceneType.SWKK]: window.location.href,
  14. [SceneType.SWKJ]: window.location.href,
  15. [SceneType.SWSS]: window.location.href,
  16. [SceneType.SWMX]: window.location.href,
  17. [SceneType.SWSSMX]: window.location.href,
  18. [SceneType.SWYDSS]: window.location.href,
  19. [SceneType.SWYDMX]: window.location.href,
  20. };
  21. export const SceneTypePaths: { [key in SceneType]: string[] } = {
  22. [SceneType.SWKK]: [
  23. "/swkk/spg.html",
  24. "/swkk/epg.html",
  25. "/swkk/livestream/fd/",
  26. ],
  27. [SceneType.SWKJ]: ["/swkk/spg.html", "/swkk/epg.html"],
  28. [SceneType.SWSS]: ["/swss/index.html", "/swss/index.html"],
  29. [SceneType.SWMX]: import.meta.env.DEV
  30. ? ["/dev-code/index.html", "/dev-code/index.html"]
  31. : ["/code/index.html", "/code/index.html"],
  32. [SceneType.SWSSMX]: ["/swkk/spg.html", "/swkk/epg.html"],
  33. [SceneType.SWYDSS]: ["/swss/index.html", "/swss/index.html"],
  34. [SceneType.SWYDMX]: ["/swkk/spg.html", "/swkk/epg.html"],
  35. };
  36. export const QuoteSceneStatusDesc: { [key in QuoteSceneStatus]: string } = {
  37. [QuoteSceneStatus.DEL]: "场景被删",
  38. [QuoteSceneStatus.RUN]: "计算中",
  39. [QuoteSceneStatus.ERR]: "计算失败",
  40. [QuoteSceneStatus.SUCCESS]: "计算成功",
  41. [QuoteSceneStatus.ARCHIVE]: "封存",
  42. [QuoteSceneStatus.RERUN]: "重新计算中",
  43. };
  44. export const ModelSceneStatusDesc: { [key in ModelSceneStatus]: string } = {
  45. [ModelSceneStatus.CANCEL]: "已取消",
  46. [ModelSceneStatus.ERR]: "上传失败",
  47. [ModelSceneStatus.RUN]: "上传中",
  48. [ModelSceneStatus.SUCCESS]: "成功",
  49. };
  50. export const ModelSupportType = ["obj", "ply", "las", "osgb", "b3dm"];
  51. export const ModelSupportFormats = [".zip"];
  52. export const ModelMaxSize = 1024 * 1024 * 1024;