|
@@ -4,7 +4,7 @@
|
|
|
<div class="titIcon" />
|
|
|
<span style="margin-left: 1%; width: 100px;">测试报告</span>
|
|
|
</div>
|
|
|
- <div style="margin: 2% 0%; font-size: 16pt; color: #333B4A;">
|
|
|
+ <div style="margin: 2% 1%; font-size: 16pt; color: #333B4A;">
|
|
|
<el-steps :active="active" align-center finish-status="success">
|
|
|
<el-step title="选择模版" />
|
|
|
<el-step title="填写报告" />
|
|
@@ -34,8 +34,8 @@
|
|
|
邮件列表
|
|
|
</div>
|
|
|
<div class="Layout" style="margin: 1% 12% 3%;">
|
|
|
- <div class="Layout"><div class="div1">收件人</div><el-input v-model="form.name" size="small" clearable filterable placeholder="请输入" /></div>
|
|
|
- <div class="Layout"><div class="div1">抄送</div><el-input v-model="form.names" size="small" clearable filterable placeholder="请输入" /></div>
|
|
|
+ <div class="Layout"><div class="div1">收件人</div><el-input v-model="form.name" size="small" clearable filterable placeholder="多人请 , 分隔" /></div>
|
|
|
+ <div class="Layout"><div class="div1">抄送</div><el-input v-model="form.names" size="small" clearable filterable placeholder="多人请 , 分隔" /></div>
|
|
|
</div>
|
|
|
<div style="margin: 0 12%; font-size:18px; font-family:PingFangSC-Medium,PingFang SC; font-weight:500; color:rgba(51,59,74,1); line-height:29px;">
|
|
|
报告预览
|
|
@@ -167,15 +167,15 @@ export default {
|
|
|
var ele = this.preview
|
|
|
setTimeout(() => {
|
|
|
var targetDom = document.getElementById('Gambol')
|
|
|
- var copyDom = targetDom.cloneNode(true)
|
|
|
- document.querySelector('body').appendChild(copyDom)
|
|
|
- html2canvas(copyDom, { useCORS: true }).then(canvas => {
|
|
|
+ // var copyDom = targetDom.cloneNode(true)
|
|
|
+ // document.querySelector('body').appendChild(copyDom)
|
|
|
+ html2canvas(targetDom, { 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
|
|
|
+ // document.querySelector('body').removeChild(copyDom)
|
|
|
+ // copyDom = null
|
|
|
res.code === 200 ? this.$message({ type: 'success', message: '发送测试报告成功' }) : this.$message({ type: 'error', message: '发送测试报告失败,请联系管理员!' })
|
|
|
this.handleClose()
|
|
|
})
|