luojun 1 vuosi sitten
vanhempi
commit
49f3534c91
1 muutettua tiedostoa jossa 10 lisäystä ja 0 poistoa
  1. 10 0
      src/views/check/task/index.vue

+ 10 - 0
src/views/check/task/index.vue

@@ -340,6 +340,13 @@
                   "
                   >删除</el-button
                 >
+                <el-button
+                  icon="el-icon-document-copy"
+                  type="text"
+                  v-if="r.row.pdfUrl"
+                  @click="onDown(r.row.pdfUrl)"
+                  >登记簿
+                </el-button>
               </template>
             </el-table-column>
           </el-table>
@@ -443,6 +450,9 @@ export default {
     ...mapGetters(["orgName", "userId", "roleList", "orgId"]),
   },
   methods: {
+    async onDown(pdfUrl) {
+      window.open(pdfUrl);
+    },
     dayjs,
     updatePlanStartTime(value) {
       // console.log(this.queryParams.planStartTime,"前");