linwenling
2023-09-12 3e7541914cce9120aba1288eac7b56127d94300c
ruoyi-ui/src/views/healthy/healthyInfo.vue
@@ -1,8 +1,15 @@
<template>
  <div class="app-container">
  <div class="app-container" id="printable-content">
    <div class="form-header mt">
      <h4 class="dt h4">健康详细信息 </h4>
      <h1 style="font-size:21px;padding-top:30px;display: flex;justify-content: space-between;align-items: center;" >
        <span>健康记录详细信息</span>
        <div style="display: flex; align-items: center;">
          <el-button size="mini" type="text"  v-print="'#printable-content'" v-hasPermi="['person:information:memo']">
            <div class="form" ><el-icon  style="padding-right:100px;"></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>
    </div>
    <el-form ref="elForm" :model="formData" :rules="rules" size="medium" label-width="120px">
@@ -38,6 +45,8 @@
        multiple
        :http-request="requestUpload"
        :file-list="fileList"
        :disabled="!btn"
        :class="{ hide: !btn }"
      >
        <div v-if="uploading" class="upload-status">正在上传...</div>
        <i v-if="!uploading" slot="default" class="el-icon-plus"></i>
@@ -89,6 +98,8 @@
        :on-remove="handleRemoveFile"
        :http-request="requestUpload"
        :show-file-list="true"
        :disabled="!btn"
        :class="{ hide: !btn }"
      >
        <div v-if="uploading" class="upload-status">正在上传...</div>
        <i v-if="!uploading" slot="default" class="el-icon-plus"></i>
@@ -169,7 +180,6 @@
        type: undefined,
        happenTime: undefined,
        accNo:undefined,
        validityDate:undefined,
        password:undefined,
        validityDate:undefined,
        isFinger:undefined,
@@ -255,6 +265,7 @@
      document.title = "查看健康详细信息";
      this.$route.meta.title = "查看健康详细信息";//列表的名称
      this.isShow=false
      this.btn = false;
    }
    let _this = this
@@ -379,7 +390,7 @@
      download(formData).then(async (response) => {
        const isLogin = await blobValidate(response);
        let nt = new Date().getTime()
        let filename = 'familyevent_'+nt+'.'+suffix
        let filename = 'healthyInfo'+nt+'.'+suffix
        const blob = new Blob([response])
        saveAs(blob, filename)
      })
@@ -417,9 +428,9 @@
    /** 导出按钮操作 */
    handleExport() {
      this.download('/zfEconomy/export', {
      this.download('/zYearInfo/export', {
        ...this.queryParams
      }, `zfEconomy_${new Date().getTime()}.xlsx`)
      }, `zYearInfo${new Date().getTime()}.xlsx`)
    }
  }
@@ -441,4 +452,10 @@
  display: block;
  position: absolute;
}
.hide .el-upload--picture-card {
  display: none;
}
.form{
  background:center/11% no-repeat url('../../assets/icons/form.png') ;
}
</style>