浏览代码

上缴印章登记-打印

jbb 2 年之前
父节点
当前提交
bb589595d4
共有 1 个文件被更改,包括 7 次插入2 次删除
  1. 7 2
      src/views/oa/SealTurnList.vue

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

@@ -120,8 +120,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>
@@ -158,6 +159,7 @@
     data () {
       return {
         description: '上缴印章管理页面',
+        printMouldUrl:'',
         // 表头
         columns: [
           {
@@ -260,6 +262,9 @@
         this.$refs.modalForm.title = "上缴印章登记";
         this.$refs.modalForm.disableSubmit = false;
       },
+      print(record){
+        this.printMouldUrl = 'http://172.18.91.36:8081/jeecg-boot/jmreport/shareView/834346918941642752'+'?id='+record.id
+      }
     }
   }
 </script>