Browse Source

添加场景类型

bill 1 year ago
parent
commit
1e4f094026
4 changed files with 13 additions and 0 deletions
  1. 6 0
      src/constant/scene.ts
  2. 2 0
      src/store/case.ts
  3. 3 0
      src/store/scene.ts
  4. 2 0
      src/view/vrmodel/list.vue

+ 6 - 0
src/constant/scene.ts

@@ -6,6 +6,8 @@ export const SceneTypeDesc: { [key in SceneType]: string } = {
   [SceneType.SWSS]: "激光转台点云场景",
   [SceneType.SWMX]: "三维模型",
   [SceneType.SWSSMX]: "激光转台Mesh场景",
+  [SceneType.SWYDSS]: "激光移动点云场景",
+  [SceneType.SWYDMX]: "激光移动Mesh场景",
   // [SceneType.QJKK]: '全景看看',
 };
 
@@ -15,6 +17,8 @@ export const SceneTypeDomain: { [key in SceneType]: string } = {
   [SceneType.SWSS]: window.location.href,
   [SceneType.SWMX]: window.location.href,
   [SceneType.SWSSMX]: window.location.href,
+  [SceneType.SWYDSS]: window.location.href,
+  [SceneType.SWYDMX]: window.location.href,
 };
 
 export const SceneTypePaths: { [key in SceneType]: string[] } = {
@@ -29,6 +33,8 @@ export const SceneTypePaths: { [key in SceneType]: string[] } = {
     ? ["/dev-code/index.html", "/dev-code/index.html"]
     : ["/code/index.html", "/code/index.html"],
   [SceneType.SWSSMX]: ["/swkk/spg.html", "/swkk/epg.html"],
+  [SceneType.SWYDSS]: ["/swss/index.html", "/swss/index.html"],
+  [SceneType.SWYDMX]: ["/swkk/spg.html", "/swkk/epg.html"],
 };
 
 export const QuoteSceneStatusDesc: { [key in QuoteSceneStatus]: string } = {

+ 2 - 0
src/store/case.ts

@@ -56,6 +56,8 @@ export const getCaseScenes = (scenes: Scene[]) => {
     { type: SceneType.SWMX, numList: [] },
     { type: SceneType.SWSS, numList: [] },
     { type: SceneType.SWSSMX, numList: [] },
+    { type: SceneType.SWYDSS, numList: [] },
+    { type: SceneType.SWYDMX, numList: [] },
   ] as CaseScenes;
 
   for (const scene of scenes) {

+ 3 - 0
src/store/scene.ts

@@ -61,6 +61,9 @@ export enum SceneType {
   SWSS,
   SWMX,
   SWSSMX,
+
+  SWYDSS,
+  SWYDMX,
 }
 
 // 模型场景状态

+ 2 - 0
src/view/vrmodel/list.vue

@@ -37,6 +37,8 @@ const headOptions = [
   { value: SceneType.SWKJ, name: SceneTypeDesc[SceneType.SWKJ] },
   { value: SceneType.SWSS, name: SceneTypeDesc[SceneType.SWSS] },
   { value: SceneType.SWSSMX, name: SceneTypeDesc[SceneType.SWSSMX] },
+  { value: SceneType.SWYDSS, name: SceneTypeDesc[SceneType.SWYDSS] },
+  { value: SceneType.SWYDMX, name: SceneTypeDesc[SceneType.SWYDMX] },
   { value: SceneType.SWMX, name: SceneTypeDesc[SceneType.SWMX] },
 ];
 </script>