From 86b6ecee0111eeccf11ab5e440b0bac161fa65c4 Mon Sep 17 00:00:00 2001
From: linwenling <3256558519@qq.com>
Date: 星期二, 12 九月 2023 19:48:08 +0800
Subject: [PATCH] 家庭模块的打印

---
 ruoyi-ui/src/views/pet/petInfo.vue |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/ruoyi-ui/src/views/pet/petInfo.vue b/ruoyi-ui/src/views/pet/petInfo.vue
index bca6fee..8d1b52c 100644
--- a/ruoyi-ui/src/views/pet/petInfo.vue
+++ b/ruoyi-ui/src/views/pet/petInfo.vue
@@ -1,5 +1,5 @@
 <template>
-  <div class="app-container">
+  <div class="app-container"  id="printable-content">
     <div class="form-header mt">
       <!-- <h4 class="dt h4">鍩烘湰淇℃伅 </h4>
       <el-button type="primary"  @click="Petnote(pid)" :disabled="btn">榄呭疇澶囧繕褰�</el-button> -->
@@ -10,6 +10,11 @@
             <div class="form" ><el-icon  style="padding-right:110px;"></el-icon>
               <span class="text" style="width: 69px;height: 26px;font-size: 16px;
             font-family: Microsoft YaHei-Regular, Microsoft YaHei; color: #EBA4AA;">榄呭疇澶囧繕褰�</span></div>
+          </el-button>
+          <el-button size="mini" type="text"  v-print="'#printable-content'" v-hasPermi="['person:information:memo']">
+            <div class="form" ><el-icon  style="padding-right:110px;"></el-icon>
+              <span class="text" style="width: 69px;height: 26px;font-size: 16px;
+            font-family: Microsoft YaHei-Regular, Microsoft YaHei; color: #EBA4AA;">鎵撳嵃</span></div>
           </el-button>
         </div>
       </h1>
@@ -370,8 +375,6 @@
         happenEndTime:undefined
       },
       pid:undefined,
-      dsb:true,
-      btn:false,
       title: '榄呭疇澶囧繕褰�',
       openDataScope: false,
       PetNoteList:{
@@ -446,6 +449,7 @@
     else{
       document.title = "鏌ョ湅榄呭疇璇︾粏淇℃伅";
       this.$route.meta.title = "鏌ョ湅榄呭疇璇︾粏淇℃伅";//鍒楄〃鐨勫悕绉�
+      this.btn = false;
     }
 
     let _this = this
@@ -664,6 +668,9 @@
   display: block;
 
 }
+.hide .el-upload--picture-card {
+  display: none;
+}
 .form{
   background:center/11% no-repeat url('../../assets/icons/form.png') ;
 }

--
Gitblit v1.9.1