tangning 3 주 전
부모
커밋
37fdc469f9
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      src/view/case/quisk.ts

+ 4 - 2
src/view/case/quisk.ts

@@ -8,11 +8,13 @@ import EditEshapeTable, {
 } from "./draw/editEshapeTable.vue";
 import SceneList from "./sceneList.vue";
 import SelectFuseImage, { FuseImage } from "./draw/selectFuseImage.vue";
-// import SelectMapImage, { MapImage } from "./draw/selectMapImagess.vue";
+import SelectMapImages from "./draw/selectMapImagess.vue";
 // import SelectMapImage, { MapImage } from "./draw/selectMapleaftImages.vue";
 import SelectMapImage, { MapImage } from "./draw/selectMapImage.vue";
 import { quiskMountFactory } from "@/helper/mount";
 import { nextTick } from "vue";
+import { strToParams } from "@/util";
+const params = strToParams(window.location.search);
 
 export const addCaseFile = quiskMountFactory(AddCaseFile, {
   title: "上传附件",
@@ -56,7 +58,7 @@ export const selectFuseImage = quiskMountFactory(SelectFuseImage, {
   width: 1300,
 })<FuseImage>;
 
-export const selectMapImage = quiskMountFactory(SelectMapImage, {
+export const selectMapImage = quiskMountFactory(params.testMap?SelectMapImages:SelectMapImage, {
   title: "选择地址",
   width: 588,
 })<MapImage>;