刘洋 8 місяців тому
батько
коміт
c22b425432

+ 3 - 0
src/render/store/modules/dataCheck/index.ts

@@ -77,6 +77,9 @@ export const useDataCheckStore = defineStore("dataCheck", {
       if (!this.curStudent) return;
       const { uri, pageIndex, paperIndex } = data;
       this.curStudent.papers[paperIndex].pages[pageIndex].sheetUri = uri;
+      if (this.curPage?.sheetUri) {
+        this.curPage.sheetUri = uri;
+      }
     },
     modifyPaperType(data: UpdatePaperType) {
       if (!this.curStudent) return;

+ 11 - 6
src/render/views/DataCheck/SliceImage/index.vue

@@ -23,12 +23,17 @@
                 :upload-data="curSliceInfo"
                 @upload-success="updateSliceSuccess"
               >
-                <a-button
-                  class="image-change"
-                  @click="onUpdateSlice(item.number, pindex, sindex)"
-                >
-                  <template #icon><PictureFilled /></template>
-                </a-button>
+                <a-tooltip placement="top">
+                  <template #title>
+                    <span>替换图片</span>
+                  </template>
+                  <a-button
+                    class="image-change"
+                    @click="onUpdateSlice(item.number, pindex, sindex)"
+                  >
+                    <template #icon><PictureFilled /></template>
+                  </a-button>
+                </a-tooltip>
               </import-btn>
               <a-button
                 class="image-slice"