瀏覽代碼

预算批复管理-打印

jbb 1 年之前
父節點
當前提交
2198f396d8
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      src/views/oa/BudgetReplyList.vue

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

@@ -112,6 +112,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">
@@ -201,6 +203,7 @@
             scopedSlots: { customRender: 'action' },
           }
         ],
+        printMouldUrl:'',
         url: {
           list: "/oa/budgetReply/list",
           delete: "/oa/budgetReply/delete",
@@ -230,6 +233,9 @@
         this.yearShowOne = false;
         this.queryParam.budgetYear = value;
       },
+      print(record){
+        this.printMouldUrl = 'http://172.18.91.36:8081/jeecg-boot/jmreport/shareView/834332600510533632'+'?id='+record.id
+      },
       loadData(arg) {
         if(!this.url.list){
           this.$message.error("请设置url.list属性!")