|
@@ -7,17 +7,17 @@
|
|
|
<div style="display: flex; font-size: 19px; white-space: nowrap; font-weight: bold;">
|
|
|
<span style="flex:1;">{{ fromCreat.reportName }}</span>
|
|
|
<span style="flex:1;">by : {{ fromCreat.ownner }}
|
|
|
- <el-button v-show="btn" type="primary" size="mini" style="margin:0 2% 0 30%;" @click="promptEmail(fromCreat)">发送报告</el-button>
|
|
|
+ <el-button v-show="btn" type="primary" size="mini" style="margin:0 2% 0 15%;" @click="promptEmail(fromCreat)">发送报告</el-button>
|
|
|
<el-button v-show="btn" size="mini" @click="download()">下载测试报告</el-button>
|
|
|
</span>
|
|
|
</div>
|
|
|
- <div class="titleStyle">一. 进度和风险</div>
|
|
|
+ <!-- <div class="titleStyle">一. 进度和风险</div> -->
|
|
|
|
|
|
<div style="font-size:15px;color:#606266;" class="rich" v-html="projectProgress" />
|
|
|
|
|
|
- <div class="titleStyle">二. 测试情况</div>
|
|
|
+ <!-- <div class="titleStyle">二. 测试情况</div> -->
|
|
|
|
|
|
- <div style="font-size:15px;color:#606266;" class="rich" v-html="TestProgress" />
|
|
|
+ <!-- <div style="font-size:15px;color:#606266;" class="rich" v-html="TestProgress" /> -->
|
|
|
|
|
|
<div class="titleStyle">三. bug情况</div>
|
|
|
|
|
@@ -158,10 +158,10 @@ export default {
|
|
|
|
|
|
html2canvas(shareContent, opts).then(function(canvas) {
|
|
|
// 从 canvas 提取图片数据
|
|
|
- var imgData = canvas.toDataURL('image/png')
|
|
|
- console.log(imgData)
|
|
|
- var sendImgData = imgData.substring(imgData.indexOf(',') + 1)
|
|
|
- var postData = { 'reportId': ele.id, 'imgStr': sendImgData, 'url': window.location.href, 'emailUser': e }
|
|
|
+ var imgBlob = canvas.toDataURL('image/jpeg', 1.0) // 将图片转为base64, 0-1 表示清晰度
|
|
|
+ imgBlob = imgBlob.toString().substring(imgBlob.indexOf(',') + 1)// 截取base64以便上传
|
|
|
+
|
|
|
+ var postData = { 'reportId': ele.id, 'imgStr': imgBlob, 'url': window.location.href, 'emailUser': e }
|
|
|
dailyReportSendmail(postData).then(res => {
|
|
|
res.code === 200 ? this.$message.success('发送测试报告成功') : this.$message.error('发送测试报告失败,请联系管理员!')
|
|
|
})
|
|
@@ -181,7 +181,7 @@ export default {
|
|
|
}
|
|
|
.titleStyle {
|
|
|
color: #333B4A;
|
|
|
- margin: 1% 0;
|
|
|
+ margin: 3% 0 1% 0;
|
|
|
font-size: 19px;
|
|
|
font-weight: bold;
|
|
|
}
|