Browse Source

全馆值班登记-打印

jbb 1 year ago
parent
commit
05a436645b
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/views/oa/MuseumDutyList.vue

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

@@ -111,6 +111,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 @@
       return {
         description: '全馆值班登记管理页面',
         monthShowOne: false,
+        printMouldUrl:'',
         // 表头
         columns: [
           {
@@ -229,6 +232,9 @@
         this.monthShowOne = false;
         this.queryParam.dutyMonth = value;
       },
+      print(record){
+        this.printMouldUrl = 'http://172.18.91.36:8081/jeecg-boot/jmreport/shareView/834337917675851776'+'?id='+record.id
+      },
       loadData(arg) {
         if(!this.url.list){
           this.$message.error("请设置url.list属性!")