소스 검색

feat : 保存8

gemercheung 9 달 전
부모
커밋
19c575954a
2개의 변경된 파일10개의 추가작업 그리고 20개의 파일을 삭제
  1. 4 19
      src/view/case/draw/board/useBoard.ts
  2. 6 1
      src/view/case/records/index.vue

+ 4 - 19
src/view/case/draw/board/useBoard.ts

@@ -115,23 +115,8 @@ const getStore = async (caseId: number, fileId: number, type: BoardType) => {
               scale: 2,
               geoType: "BgImage",
               vectorId: "BgImage8",
-              points: []   //   {
-              //     "x": 251,
-              //     "y": 140
-              //   },
-              //   {
-              //     "x": 251,
-              //     "y": 795.1999999999999
-              //   },
-              //   {
-              //     "x": 1158.1999999999998,
-              //     "y": 795.1999999999999
-              //   },
-              //   {
-              //     "x": 1158.1999999999998,
-              //     "y": 140
-              //   }
-              // ]
+              points: []
+
             }
             data.floors[0].bgImage = bgImage
           }
@@ -246,7 +231,7 @@ export const useBoard = (props: Ref<BoardProps | null>) => {
 
   watchEffect((onCleanup) => {
     if (board.value && state.value.addShape) {
-      const cleaup = board.value.readyAddShape(
+      const cleanup = board.value.readyAddShape(
         state.value.addShape,
         state.value.addData || null,
         () => {
@@ -258,7 +243,7 @@ export const useBoard = (props: Ref<BoardProps | null>) => {
         if (ev.key === "Escape") {
           state.value.addShape = null;
           state.value.addData = null;
-          cleaup();
+          cleanup();
         }
       };
       document.documentElement.addEventListener("keyup", keyupHandler);

+ 6 - 1
src/view/case/records/index.vue

@@ -725,10 +725,15 @@ const handleExport = async () => {
   max-width: 1280px;
   margin: 0 auto;
   padding: 20px 0;
-
+  position: relative;
   .header {
     display: flex;
     justify-content: flex-endTime;
+    position: sticky;
+    top: 10px;
+    z-index: 1000;
+    background-color: white;
+
   }
 
   .input {