Browse Source

销毁印章登记-打印

jbb 1 year ago
parent
commit
45a606e0c3
1 changed files with 7 additions and 2 deletions
  1. 7 2
      src/views/oa/SealDestroyList.vue

+ 7 - 2
src/views/oa/SealDestroyList.vue

@@ -110,8 +110,9 @@
         <span slot="action" slot-scope="text, record">
           <a @click="handleEdit(record)">编辑</a>
 
-          <!-- <a-divider type="vertical" />
-          <a-dropdown>
+          <a-divider type="vertical" />
+          <a @click="print(record)" :href="printMouldUrl"  target="_blank">打印</a>
+          <!-- <a-dropdown>
             <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
             <a-menu slot="overlay">
               <a-menu-item>
@@ -148,6 +149,7 @@
     data () {
       return {
         description: '销毁印章登记管理页面',
+        printMouldUrl:'',
         // 表头
         columns: [
           {
@@ -223,6 +225,9 @@
         this.$refs.modalForm.title = "销毁印章登记";
         this.$refs.modalForm.disableSubmit = false;
       },
+      print(record){
+        this.printMouldUrl = 'http://172.18.91.36:8081/jeecg-boot/jmreport/shareView/834347959238086656'+'?id='+record.id
+      }
     }
   }
 </script>