浏览代码

收文登记-打印

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

+ 6 - 0
src/views/oa/ReceivedMainList.vue

@@ -113,6 +113,8 @@
           <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
                   <a>删除</a>
                 </a-popconfirm>
+          <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">
@@ -150,6 +152,7 @@
     data () {
       return {
         description: '收文登记管理页面',
+        printMouldUrl:'',
         // 表头
         columns: [
           {
@@ -222,6 +225,9 @@
     },
     methods: {
       initDictConfig(){
+      },
+      print(record){
+        this.printMouldUrl = 'http://172.18.91.36:8081/jeecg-boot/jmreport/shareView/834346213321297920'+'?id='+record.id
       }
 
     }