Parcourir la source

员工档案-打印

jbb il y a 1 an
Parent
commit
8d5a8ec7f5
1 fichiers modifiés avec 6 ajouts et 0 suppressions
  1. 6 0
      src/views/system/NewUserList.vue

+ 6 - 0
src/views/system/NewUserList.vue

@@ -116,6 +116,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">
@@ -159,6 +161,7 @@
     data () {
       return {
         description: '入职登记管理页面',
+        printMouldUrl:"",
         // 表头
         columns: [
           {
@@ -264,6 +267,9 @@
     },
     methods: {
       initDictConfig(){
+      },
+      print(record){
+        this.printMouldUrl = 'http://172.18.91.36:8081/jeecg-boot/jmreport/shareView/836112226480115712'+'?id='+record.id
       }
        
     }