zhangjie 9 сар өмнө
parent
commit
b4c7bb03e7

+ 17 - 7
src/components/PreviewAttachment.vue

@@ -8,6 +8,7 @@
     :close-on-click-modal="false"
     :close-on-press-escape="false"
     @open="visibleChange"
+    @close="dialogClose"
   >
     <div class="infinite-list-wrapper" style="overflow: auto">
       <ul
@@ -29,13 +30,18 @@
 
 <script>
 import ImageWatermark from "./ImageWatermark.vue";
-import { attachmentImages } from "@/modules/login/api";
+import { attachmentPreview } from "@/modules/login/api";
 
 export default {
   name: "preview-attachment",
   components: { ImageWatermark },
   props: {
-    attachmentId: String,
+    attachmentIds: {
+      type: Array,
+      default() {
+        return [];
+      },
+    },
   },
   data() {
     return {
@@ -44,7 +50,7 @@ export default {
       imageList: [],
       content: "",
       loading: false,
-      pageSize: 1,
+      pageSize: 2,
     };
   },
   computed: {
@@ -61,7 +67,7 @@ export default {
   },
   methods: {
     visibleChange() {
-      this.load();
+      this.getAttachments();
     },
     cancel() {
       this.modalIsShow = false;
@@ -69,10 +75,14 @@ export default {
     open() {
       this.modalIsShow = true;
     },
+    dialogClose() {
+      this.sources = [];
+      this.imageList = [];
+    },
     async getAttachments() {
-      if (!this.attachmentId) return;
-      const res = await attachmentImages(this.attachmentId);
-      this.sources = res || [];
+      if (!this.attachmentIds || !this.attachmentIds.length) return;
+      const res = await attachmentPreview(this.attachmentIds);
+      this.sources = (res || []).map((item) => item.url);
 
       if (this.sources.length) this.load();
     },

+ 1 - 1
src/components/UploadFileDialog.vue

@@ -92,7 +92,7 @@ export default {
         return;
       }
       const data = await attachmentPreview(this.attachment.attachmentId);
-      window.open(data.url);
+      window.open(data[0]?.url);
     },
   },
 };

+ 3 - 1
src/modules/card/components/CardPreviewDialog.vue

@@ -95,13 +95,15 @@ export default {
       ctx.rotate(angle);
       ctx.fillText(content, 0, 0);
 
+      const bgSize = 600;
+
       canvas.toBlob((val) => {
         if (!val) return;
         const watermarkBg = window.URL.createObjectURL(val);
         this.$el.querySelectorAll(".page-main-inner").forEach((dom) => {
           dom.setAttribute(
             "style",
-            `background-image: url(${watermarkBg});background-repeat: repeat;background-size: 500px 500px;`
+            `background-image: url(${watermarkBg});background-repeat: repeat;background-size: ${bgSize}px ${bgSize}px;`
           );
         });
       });

+ 1 - 1
src/modules/exam/components/ApplyContent.vue

@@ -1269,7 +1269,7 @@ export default {
       if (!attachment.attachmentId) return;
       this.addPreviewLog(attachment, "paper");
       const data = await attachmentPreview(attachment.attachmentId);
-      window.open(data.url);
+      window.open(data[0]?.url);
     },
     toSelectNextFlowUser() {
       if (!this.IS_NEED_SELECT_APPROVE_USER) return;

+ 1 - 1
src/modules/exam/components/ApplySubmitHistory.vue

@@ -98,7 +98,7 @@ export default {
     async downloadPaper(attachment) {
       if (!attachment.attachmentId) return;
       const data = await attachmentPreview(attachment.attachmentId);
-      window.open(data.url);
+      window.open(data[0]?.url);
     },
   },
 };

+ 11 - 13
src/modules/exam/components/ModifyTaskPaper.vue

@@ -110,7 +110,7 @@
                 v-else
                 type="text"
                 class="btn-primary"
-                @click="downloadPaper(attachment)"
+                @click="toViewAttachment(attachment)"
               >
                 <i
                   class="icon icon-download mr-1"
@@ -276,7 +276,7 @@
     <!-- PreviewAttachment -->
     <preview-attachment
       ref="PreviewAttachment"
-      :attachment-id="curAttachmentId"
+      :attachment-ids="attachmentIds"
     ></preview-attachment>
   </div>
 </template>
@@ -287,7 +287,6 @@ import ModifyCard from "../../card/components/ModifyCard";
 import CardPreviewDialog from "../../card/components/CardPreviewDialog.vue";
 import PreviewAttachment from "@/components/PreviewAttachment.vue";
 import { taskApplyDetail, taskPaperApplyEdit, cardForSelectList } from "../api";
-import { attachmentPreview } from "../../login/api";
 import { COMMON_CARD_RULE_ID } from "@/constants/enumerate";
 import { copyCard } from "../../card/api";
 
@@ -381,7 +380,7 @@ export default {
       cards: [],
       user: this.$ls.get("user", {}),
       // attachmentId preview
-      curAttachmentId: "",
+      attachmentIds: [],
     };
   },
   methods: {
@@ -486,20 +485,19 @@ export default {
         this.paperAttachments.splice(index, 1, { ...attachment });
       }
     },
-    async downloadPaper(attachment) {
-      if (!attachment.attachmentId) return;
-      const data = await attachmentPreview(attachment.attachmentId);
-      window.open(data.url);
-      // TODO:
+    toViewAttachment(attachment) {
+      if (!attachment.jpgAttachmentId) {
+        this.$message.error("附件丢失!");
+        return;
+      }
+      const datas = JSON.parse(attachment.jpgAttachmentId);
+      this.attachmentIds = datas.map((item) => item.attachmentId);
+      this.$refs.PreviewAttachment.open();
     },
     toViewCard(attachment) {
       this.curAttachment = { ...attachment };
       this.$refs.CardPreviewDialog.open();
     },
-    toViewAttachment(curAttachmentId) {
-      this.curAttachmentId = curAttachmentId;
-      this.$refs.PreviewAttachment.open();
-    },
     async toCopyCard(attachment) {
       this.curAttachment = { ...attachment };
       const newCardId = await copyCard(

+ 1 - 1
src/modules/exam/components/UploadPaperDialog.vue

@@ -182,7 +182,7 @@ export default {
       if (this.IS_UPLOAD_PAPER) this.hasViewed = true;
 
       const data = await attachmentPreview(attachmentId);
-      window.open(data.url);
+      window.open(data[0]?.url);
     },
   },
 };

+ 62 - 37
src/modules/exam/components/taskApply/ModifyTaskApply.vue

@@ -1,41 +1,55 @@
 <template>
-  <el-dialog
-    class="modify-task-apply"
-    :visible.sync="modalIsShow"
-    :title="title"
-    top="10px"
-    width="900px"
-    :close-on-click-modal="false"
-    :close-on-press-escape="false"
-    append-to-body
-    @open="visibleChange"
-    @close="closeHandle"
-  >
-    <div v-if="dataReady" class="apply-content task-detail">
-      <task-info></task-info>
-      <task-paper ref="TaskPaper"></task-paper>
-      <task-print v-if="showTaskPrint" ref="TaskPrint"></task-print>
-      <task-flow ref="TaskFlow"></task-flow>
-    </div>
+  <div>
+    <el-dialog
+      class="modify-task-apply"
+      :visible.sync="modalIsShow"
+      :title="title"
+      top="10px"
+      width="900px"
+      :close-on-click-modal="false"
+      :close-on-press-escape="false"
+      append-to-body
+      @open="visibleChange"
+      @close="closeHandle"
+    >
+      <div v-if="dataReady" class="apply-content task-detail">
+        <task-info></task-info>
+        <task-paper
+          ref="TaskPaper"
+          @view-attachment="toViewAttachment"
+        ></task-paper>
+        <task-print v-if="showTaskPrint" ref="TaskPrint"></task-print>
+        <task-flow
+          ref="TaskFlow"
+          @view-attachment="toViewAttachment"
+        ></task-flow>
+      </div>
 
-    <div slot="footer">
-      <el-button
-        v-if="taskStatus.IS_APPLY"
-        type="primary"
-        :disabled="loading"
-        @click="submit"
-        >确认提交</el-button
-      >
-      <el-button
-        v-if="taskStatus.IS_AUDIT"
-        type="primary"
-        :disabled="loading"
-        @click="toAuditSubmit"
-        >确定</el-button
-      >
-      <el-button @click="cancel">取消</el-button>
-    </div>
-  </el-dialog>
+      <div slot="footer">
+        <el-button
+          v-if="taskStatus.IS_APPLY"
+          type="primary"
+          :disabled="loading"
+          @click="submit"
+          >确认提交</el-button
+        >
+        <el-button
+          v-if="taskStatus.IS_AUDIT"
+          type="primary"
+          :disabled="loading"
+          @click="toAuditSubmit"
+          >确定</el-button
+        >
+        <el-button @click="cancel">取消</el-button>
+      </div>
+    </el-dialog>
+
+    <!-- PreviewAttachment -->
+    <preview-attachment
+      ref="PreviewAttachment"
+      :attachment-ids="attachmentIds"
+    ></preview-attachment>
+  </div>
 </template>
 
 <script>
@@ -52,6 +66,7 @@ import TaskInfo from "./TaskInfo.vue";
 import TaskPaper from "./TaskPaper.vue";
 import TaskPrint from "./TaskPrint.vue";
 import TaskFlow from "./TaskFlow.vue";
+import PreviewAttachment from "@/components/PreviewAttachment.vue";
 
 const initExamTask = {
   id: null,
@@ -123,7 +138,7 @@ const initTaskApply = {
 
 export default {
   name: "modify-task-apply",
-  components: { TaskInfo, TaskPaper, TaskFlow, TaskPrint },
+  components: { TaskInfo, TaskPaper, TaskFlow, TaskPrint, PreviewAttachment },
   props: {
     rowData: {
       type: Object,
@@ -172,6 +187,7 @@ export default {
       loading: false,
       examRule: {},
       dataReady: false,
+      attachmentIds: [],
     };
   },
   created() {
@@ -268,6 +284,15 @@ export default {
       this.cancel();
       this.$emit("modified");
     },
+    toViewAttachment(attachment) {
+      if (!attachment.jpgAttachmentId) {
+        this.$message.error("附件丢失!");
+        return;
+      }
+      const datas = JSON.parse(attachment.jpgAttachmentId);
+      this.attachmentIds = datas.map((item) => item.attachmentId);
+      this.$refs.PreviewAttachment.open();
+    },
     async submit() {
       if (!this.$refs.TaskPaper.checkData()) return;
       if (this.showTaskPrint && !this.$refs.TaskPrint.checkData()) return;

+ 1 - 4
src/modules/exam/components/taskApply/TaskFlow.vue

@@ -234,9 +234,7 @@ import {
   taskFlowNodeInfo,
   flowDetailByFlowId,
 } from "../../../base/api";
-import { attachmentPreview } from "../../../login/api";
 import { TASK_AUDIT_RESULT } from "@/constants/enumerate";
-
 import SelectUserDialog from "../../../base/components/SelectUserDialog";
 
 export default {
@@ -449,8 +447,7 @@ export default {
     async downloadPaper(attachment) {
       if (!attachment.attachmentId) return;
       this.addPreviewLog({ attachment, type: "paper" });
-      const data = await attachmentPreview(attachment.attachmentId);
-      window.open(data.url);
+      this.$emit("view-attachment", attachment);
     },
     toSelectNextFlowUser() {
       if (!this.IS_NEED_SELECT_APPROVE_USER) return;

+ 1 - 18
src/modules/exam/components/taskApply/TaskPaper.vue

@@ -437,11 +437,6 @@
       @confirm="cardBuildConfirm"
     ></card-build-dialog>
 
-    <!-- PreviewAttachment -->
-    <preview-attachment
-      ref="PreviewAttachment"
-      :attachment-id="curAttachmentId"
-    ></preview-attachment>
     <!-- card-preview-dialog -->
     <card-preview-dialog
       ref="CardPreviewDialog"
@@ -455,7 +450,6 @@
 import { mapState, mapMutations, mapActions } from "vuex";
 
 import { cardForSelectList } from "../../api";
-import { attachmentPreview } from "../../../login/api";
 import { deleteCard } from "../../../base/api";
 import { copyCard } from "../../../card/api";
 
@@ -465,7 +459,6 @@ import CardBuildDialog from "../../../card/components/CardBuildDialog.vue";
 import CardPreviewDialog from "../../../card/components/CardPreviewDialog.vue";
 import SimpleImagePreview from "../../../../components/SimpleImagePreview.vue";
 import ModifyCard from "../../../card/components/ModifyCard.vue";
-import PreviewAttachment from "@/components/PreviewAttachment.vue";
 
 export default {
   name: "task-paper",
@@ -476,7 +469,6 @@ export default {
     CardBuildDialog,
     CardPreviewDialog,
     SelectTikuPaperDialog,
-    PreviewAttachment,
   },
   data() {
     return {
@@ -508,8 +500,6 @@ export default {
       cards: [],
       examTaskInstr: this.$ls.get("schoolInfo", { examTaskInstr: "" })
         .examTaskInstr,
-      // attachmentId preview
-      curAttachmentId: "",
       // card-build
       cardBuildPresetData: {},
       // image-preview
@@ -832,9 +822,7 @@ export default {
     async downloadPaper(attachment) {
       if (!attachment.attachmentId) return;
       this.addPreviewLog({ attachment, type: "paper" });
-      const data = await attachmentPreview(attachment.attachmentId);
-      window.open(data.url);
-      // TODO:
+      this.$emit("view-attachment", attachment);
     },
     // select-paper
     toSelect(attachment) {
@@ -889,11 +877,6 @@ export default {
     toViewPaper(attachment) {
       if (!attachment.paperUrl) return;
       window.open(attachment.paperUrl);
-      // TODO:
-    },
-    toViewAttachment(curAttachmentId) {
-      this.curAttachmentId = curAttachmentId;
-      this.$refs.PreviewAttachment.open();
     },
     // image-preview
     toPreview(index) {

+ 2 - 5
src/modules/login/api.js

@@ -18,15 +18,12 @@ export const logout = () => {
 export const sysMenu = () => {
   return $postParam("/api/admin/common/get_menu", {});
 };
-export const attachmentPreview = (id) => {
-  return $postParam("/api/admin/common/file/preview", { id });
+export const attachmentPreview = (ids) => {
+  return $postParam("/api/admin/common/file/preview", { ids });
 };
 export const attachmentDetail = (id) => {
   return $postParam("/api/admin/common/file/get_one", { id });
 };
-export const attachmentImages = (id) => {
-  return $postParam("/api/admin/common/file/get_one", { id });
-};
 export const attachmentDownload = ({ id, type }) => {
   return $postParam("/api/admin/common/file/download", { id, type });
 };

+ 163 - 145
src/modules/print/components/ModifyPlanPaper.vue

@@ -1,153 +1,163 @@
 <template>
-  <el-dialog
-    class="modify-plan-paper"
-    :visible.sync="modalIsShow"
-    title="关联试卷"
-    top="10px"
-    width="900px"
-    :close-on-click-modal="false"
-    :close-on-press-escape="false"
-    append-to-body
-    @open="visibleChange"
-  >
-    <div class="part-box part-box-pad part-box-border">
-      <el-form
-        class="form-info"
-        ref="modalFormComp"
-        label-width="130px"
-        :rules="rules"
-        :model="modalForm"
-      >
-        <el-row>
-          <el-col :span="12">
-            <el-form-item label="课程(代码):">
-              <span
-                >{{ instance.courseName }}({{ instance.courseCode }})</span
-              >
-            </el-form-item>
-          </el-col>
-          <el-col :span="12">
-            <!-- <el-form-item label="适用专业(方向):">
-              <span>{{ instance.specialty | defaultFieldFilter }}</span>
-            </el-form-item> -->
-          </el-col>
-        </el-row>
-        <el-row>
-          <el-col :span="12">
-            <el-form-item label="题卡规则:">
-              <span>{{ instance.cardRuleName }}</span>
-            </el-form-item>
-          </el-col>
-          <el-col :span="12">
-            <el-form-item label="命题老师:">
-              <span>{{ instance.userName }}</span>
-            </el-form-item>
-          </el-col>
-        </el-row>
-        <el-row class="mb-2">
-          <el-col :span="12">
-            <el-form-item prop="paperNumber" label="试卷编号:">
-              <el-select
-                v-model="modalForm.paperNumber"
-                placeholder="请选择"
-                filterable
-                @change="paperChange"
-              >
-                <el-option
-                  v-for="item in papers"
-                  :key="item.id"
-                  :value="item.paperNumber"
-                  :label="item.paperNumber"
-                ></el-option>
-              </el-select>
-              <!-- <span>{{ instance.paperNumber }}</span> -->
-            </el-form-item>
-          </el-col>
-          <el-col :span="12">
-            <el-form-item prop="relatePaperType" label="关联类型:">
-              <el-select
-                v-model="modalForm.relatePaperType"
-                placeholder="请选择"
-                multiple
-                :multiple-limit="drawCount"
-              >
-                <el-option
-                  v-for="item in paperTypes"
-                  :key="item"
-                  :value="item"
-                  :label="item"
-                ></el-option>
-              </el-select>
-            </el-form-item>
-          </el-col>
-        </el-row>
-        <el-row>
-          <el-col :span="12">
-            <el-form-item label="已曝光类型:">
-              <span>{{ instance.exposedPaperType | defaultFieldFilter }}</span>
-            </el-form-item>
-          </el-col>
-          <el-col :span="12">
-            <el-form-item label="未曝光类型:">
-              <span>{{
-                instance.unexposedPaperType | defaultFieldFilter
-              }}</span>
-            </el-form-item>
-          </el-col>
-        </el-row>
-      </el-form>
-    </div>
+  <div>
+    <el-dialog
+      class="modify-plan-paper"
+      :visible.sync="modalIsShow"
+      title="关联试卷"
+      top="10px"
+      width="900px"
+      :close-on-click-modal="false"
+      :close-on-press-escape="false"
+      append-to-body
+      @open="visibleChange"
+    >
+      <div class="part-box part-box-pad part-box-border">
+        <el-form
+          class="form-info"
+          ref="modalFormComp"
+          label-width="130px"
+          :rules="rules"
+          :model="modalForm"
+        >
+          <el-row>
+            <el-col :span="12">
+              <el-form-item label="课程(代码):">
+                <span
+                  >{{ instance.courseName }}({{ instance.courseCode }})</span
+                >
+              </el-form-item>
+            </el-col>
+            <el-col :span="12">
+              <!-- <el-form-item label="适用专业(方向):">
+                <span>{{ instance.specialty | defaultFieldFilter }}</span>
+              </el-form-item> -->
+            </el-col>
+          </el-row>
+          <el-row>
+            <el-col :span="12">
+              <el-form-item label="题卡规则:">
+                <span>{{ instance.cardRuleName }}</span>
+              </el-form-item>
+            </el-col>
+            <el-col :span="12">
+              <el-form-item label="命题老师:">
+                <span>{{ instance.userName }}</span>
+              </el-form-item>
+            </el-col>
+          </el-row>
+          <el-row class="mb-2">
+            <el-col :span="12">
+              <el-form-item prop="paperNumber" label="试卷编号:">
+                <el-select
+                  v-model="modalForm.paperNumber"
+                  placeholder="请选择"
+                  filterable
+                  @change="paperChange"
+                >
+                  <el-option
+                    v-for="item in papers"
+                    :key="item.id"
+                    :value="item.paperNumber"
+                    :label="item.paperNumber"
+                  ></el-option>
+                </el-select>
+                <!-- <span>{{ instance.paperNumber }}</span> -->
+              </el-form-item>
+            </el-col>
+            <el-col :span="12">
+              <el-form-item prop="relatePaperType" label="关联类型:">
+                <el-select
+                  v-model="modalForm.relatePaperType"
+                  placeholder="请选择"
+                  multiple
+                  :multiple-limit="drawCount"
+                >
+                  <el-option
+                    v-for="item in paperTypes"
+                    :key="item"
+                    :value="item"
+                    :label="item"
+                  ></el-option>
+                </el-select>
+              </el-form-item>
+            </el-col>
+          </el-row>
+          <el-row>
+            <el-col :span="12">
+              <el-form-item label="已曝光类型:">
+                <span>{{
+                  instance.exposedPaperType | defaultFieldFilter
+                }}</span>
+              </el-form-item>
+            </el-col>
+            <el-col :span="12">
+              <el-form-item label="未曝光类型:">
+                <span>{{
+                  instance.unexposedPaperType | defaultFieldFilter
+                }}</span>
+              </el-form-item>
+            </el-col>
+          </el-row>
+        </el-form>
+      </div>
 
-    <h4 class="part-box-tips">试卷内容:</h4>
-    <p class="tips-info tips-dark mb-2">
-      提示:多卷型试卷由于会绑定一个答题卡模板,因此试卷结构必须相同。多卷型试卷之间客观题要求试题内容相同,可允许大题内的小题题序不同。
-    </p>
-    <table class="table">
-      <tr>
-        <th>卷型</th>
-        <th>试卷</th>
-        <th>答题卡</th>
-      </tr>
-      <tr v-for="(attachment, index) in paperAttachments" :key="index">
-        <td>{{ attachment.name }}卷</td>
-        <td>
-          <el-button
-            type="text"
-            class="btn-primary"
-            @click="downloadPaper(attachment)"
-            title="点击查看试卷"
-          >
-            <i
-              class="icon icon-download mr-1"
-              v-if="attachment.attachmentId"
-            ></i
-            >{{ attachment.filename }}
-          </el-button>
-        </td>
-        <td>
-          <el-button
-            type="text"
-            class="btn-primary"
-            @click="toViewCard(attachment)"
-            >查看答题卡</el-button
-          >
-        </td>
-      </tr>
-    </table>
+      <h4 class="part-box-tips">试卷内容:</h4>
+      <p class="tips-info tips-dark mb-2">
+        提示:多卷型试卷由于会绑定一个答题卡模板,因此试卷结构必须相同。多卷型试卷之间客观题要求试题内容相同,可允许大题内的小题题序不同。
+      </p>
+      <table class="table">
+        <tr>
+          <th>卷型</th>
+          <th>试卷</th>
+          <th>答题卡</th>
+        </tr>
+        <tr v-for="(attachment, index) in paperAttachments" :key="index">
+          <td>{{ attachment.name }}卷</td>
+          <td>
+            <el-button
+              type="text"
+              class="btn-primary"
+              @click="toViewAttachment(attachment)"
+              title="点击查看试卷"
+            >
+              <i
+                class="icon icon-download mr-1"
+                v-if="attachment.attachmentId"
+              ></i
+              >{{ attachment.filename }}
+            </el-button>
+          </td>
+          <td>
+            <el-button
+              type="text"
+              class="btn-primary"
+              @click="toViewCard(attachment)"
+              >查看答题卡</el-button
+            >
+          </td>
+        </tr>
+      </table>
 
-    <div slot="footer">
-      <el-button type="primary" :disabled="isSubmit" @click="submit"
-        >确认</el-button
-      >
-      <el-button @click="cancel">取消</el-button>
-    </div>
-  </el-dialog>
+      <div slot="footer">
+        <el-button type="primary" :disabled="isSubmit" @click="submit"
+          >确认</el-button
+        >
+        <el-button @click="cancel">取消</el-button>
+      </div>
+    </el-dialog>
+
+    <!-- PreviewAttachment -->
+    <preview-attachment
+      ref="PreviewAttachment"
+      :attachment-ids="attachmentIds"
+    ></preview-attachment>
+  </div>
 </template>
 
 <script>
 import { updatePlanLinkPaper, linkPaperNumberList } from "../api";
 import { taskApplyDetail } from "../../exam/api";
-import { attachmentPreview } from "../../login/api";
+import PreviewAttachment from "@/components/PreviewAttachment.vue";
 
 const initModalForm = {
   id: null,
@@ -158,6 +168,7 @@ const initModalForm = {
 
 export default {
   name: "modify-plan-paper",
+  components: { PreviewAttachment },
   props: {
     instance: {
       type: Object,
@@ -202,6 +213,8 @@ export default {
           },
         ],
       },
+      // attachmentId preview
+      attachmentIds: [],
     };
   },
   methods: {
@@ -261,9 +274,14 @@ export default {
       );
       if (paper) this.paperTypes = paper.paperTypes;
     },
-    async downloadPaper(attachment) {
-      const data = await attachmentPreview(attachment.attachmentId);
-      window.open(data.url);
+    toViewAttachment(attachment) {
+      if (!attachment.jpgAttachmentId) {
+        this.$message.error("附件丢失!");
+        return;
+      }
+      const datas = JSON.parse(attachment.jpgAttachmentId);
+      this.attachmentIds = datas.map((item) => item.attachmentId);
+      this.$refs.PreviewAttachment.open();
     },
     toViewCard(attachment) {
       window.open(

+ 1 - 1
src/modules/print/views/PrintTaskManage.vue

@@ -772,7 +772,6 @@ export default {
     actionPdf(item) {
       if (this.actionType === "view") {
         this.viewPdf(item);
-        // TODO:
       } else {
         this.rebuildPdf(item);
       }
@@ -801,6 +800,7 @@ export default {
       this.getList();
     },
     viewPdf(item) {
+      // TODO:
       window.open(item.url);
       // this.padViewDialogVisible = false;
     },