panxiandiao_i 5 سال پیش
والد
کامیت
f24e965cde
1فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 4 4
      src/views/Platform/presentation/testPresenyL.vue

+ 4 - 4
src/views/Platform/presentation/testPresenyL.vue

@@ -1,7 +1,7 @@
 <template>
   <!-- 日报预览 -->
   <div id="resumeId" class="eleStyle" style="position: relative;z-index: 0;">
-    <div style="height:100%;width:94%; background:#ffffff; margin: 3% 3% 8% 3%; border-radius: 8px; overflow: hidden;">
+    <div style="height:100%;width:1000px; background:#ffffff; margin: 3% 3% 8% 3%; border-radius: 8px;">
       <el-form :inline="true" :model="fromCreat" style="margin:2% 9%">
         <div>
           <div style="display: flex; font-size: 19px;  white-space: nowrap; font-weight: bold;">
@@ -149,9 +149,9 @@ export default {
       // setTimeout(() => {
       var that = this
       that.btn = false
-      await html2canvas(document.getElementById('contentttt'), { useCORS: true, width: document.getElementById('contentttt').offsetWidth, height: document.getElementById('contentttt').scrollHeight }).then(function(canvas) {
-        console.log(document.getElementById('contentttt').offsetWidth)
-        console.log(document.getElementById('contentttt').offsetWidth)
+      await html2canvas(document.getElementById('resumeId'), { useCORS: true, width: document.getElementById('resumeId').offsetWidth, height: document.getElementById('resumeId').scrollHeight }).then(function(canvas) {
+        console.log(document.getElementById('resumeId').offsetWidth)
+        console.log(document.getElementById('resumeId').offsetWidth)
         var url = canvas.toDataURL('image/png', 1.0)
         url = url.toString().substring(url.indexOf(',') + 1)
         that.postData = { 'reportId': ele.id, 'imgStr': url, 'url': window.location.href, 'emailUser': e }