Sfoglia il codice sorgente

Merge branch 'http_mock' of git.xiaojukeji.com:jacklijiajia/thoth-frontend into http_mock

qinzhipeng_v 5 anni fa
parent
commit
ce1510a40f

+ 5 - 6
src/views/Platform/presentation/Templates/DailyReport.vue

@@ -171,19 +171,18 @@ export default {
         this.send = true
         var ele = this.preview
         setTimeout(() => {
-          var targetDom = document.getElementById('Gambol')
-          // var copyDom = targetDom.cloneNode(true)
-          // document.querySelector('body').appendChild(copyDom)
-          html2canvas(targetDom, { useCORS: true }).then(canvas => {
+          const targetDom = document.getElementById('Gambol')
+          var copyDom = targetDom.cloneNode(true)
+          document.querySelector('body').appendChild(copyDom)
+          html2canvas(document.getElementsByClassName('reportContent')[1], { useCORS: true }).then(canvas => {
             var url = canvas.toDataURL('image/png', 1)
             url = url.toString().substring(url.indexOf(',') + 1)
             var postData = { 'reportId': ele.id, 'imgStr': url, 'url': window.location.href, 'emailUser': e.name, 'copyTo': e.names }
             dailyReportSendmail(postData).then(res => {
-            // document.querySelector('body').removeChild(copyDom)
-            // copyDom = null
               res.code === 200 ? this.$message({ type: 'success', message: '发送测试报告成功' }) : this.$message({ type: 'error', message: '发送测试报告失败,请联系管理员!' })
               this.send = false
               this.handleClose()
+              document.querySelector('body').removeChild(copyDom)
             })
           })
         }, 500)

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

@@ -1,6 +1,6 @@
 <template>
   <!-- 日报预览 -->
-  <div>
+  <div class="reportContent">
     <el-form :model="fromCreat" class="from-creat">
       <div style="display: flex; white-space: nowrap; font-family:SimSuncss">
         <span style="flex:1;font-weight: bold;font-size: 24px;color: #3a8ee6">{{ fromCreat.reportName }}</span>

+ 2 - 1
src/views/projectManage/bugList/css/index.css

@@ -45,7 +45,8 @@
   font-size: 14px;
   color: #00A0FF;
   cursor: pointer;
-  width: 62px;
+  width: 71px;
+  padding-right: 11px;
 }
 
 .DetailedScreening {