|
@@ -77,6 +77,96 @@
|
|
|
</ul>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <!-- E 客户端 -->
|
|
|
+ <!-- S 客户端 -->
|
|
|
+ <div class="content-2">
|
|
|
+ <div class="content-2-title"><span>WebApp</span></div>
|
|
|
+ <div class="content-2-con">
|
|
|
+ <div class="analysis-content">这是分析内容,这是分析内容,这是分析内容,这是分析内容,这是分析内容,这是分析内容…</div>
|
|
|
+ <ul>
|
|
|
+ <li>发布&回滚 - 发布次数<span class="font-size font-w600">224</span>次;全量回滚次数<span
|
|
|
+ class="font-w600 font-size font-red">1</span>次,小流量回滚次数<span
|
|
|
+ class="font-size font-w600">4</span>次,全量回滚率<span class="font-size font-w600">0.45%</span>;裸奔上线次
|
|
|
+ 数<span class="font-w600 font-size">17</span>次,裸奔上线率 <span class="font-size font-w600 font-red">7.6%</span>。
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- E 客户端 -->
|
|
|
+ <!-- S 客户端 -->
|
|
|
+ <div class="content-2">
|
|
|
+ <div class="content-2-title"><span>WebApp</span></div>
|
|
|
+ <div class="content-2-con">
|
|
|
+ <div class="analysis-content">这是分析内容,这是分析内容,这是分析内容,这是分析内容,这是分析内容,这是分析内容…</div>
|
|
|
+ <ul>
|
|
|
+ <li>发布&回滚 - 发布次数<span class="font-size font-w600">224</span>次;全量回滚次数<span
|
|
|
+ class="font-w600 font-size font-red">1</span>次,小流量回滚次数<span
|
|
|
+ class="font-size font-w600">4</span>次,全量回滚率<span class="font-size font-w600">0.45%</span>;裸奔上线次
|
|
|
+ 数<span class="font-w600 font-size">17</span>次,裸奔上线率 <span class="font-size font-w600 font-red">7.6%</span>。
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- E 客户端 -->
|
|
|
+ <!-- S 客户端 -->
|
|
|
+ <div class="content-2">
|
|
|
+ <div class="content-2-title"><span>WebApp</span></div>
|
|
|
+ <div class="content-2-con">
|
|
|
+ <div class="analysis-content">这是分析内容,这是分析内容,这是分析内容,这是分析内容,这是分析内容,这是分析内容…</div>
|
|
|
+ <ul>
|
|
|
+ <li>发布&回滚 - 发布次数<span class="font-size font-w600">224</span>次;全量回滚次数<span
|
|
|
+ class="font-w600 font-size font-red">1</span>次,小流量回滚次数<span
|
|
|
+ class="font-size font-w600">4</span>次,全量回滚率<span class="font-size font-w600">0.45%</span>;裸奔上线次
|
|
|
+ 数<span class="font-w600 font-size">17</span>次,裸奔上线率 <span class="font-size font-w600 font-red">7.6%</span>。
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- E 客户端 -->
|
|
|
+ <!-- S 客户端 -->
|
|
|
+ <div class="content-2">
|
|
|
+ <div class="content-2-title"><span>WebApp</span></div>
|
|
|
+ <div class="content-2-con">
|
|
|
+ <div class="analysis-content">这是分析内容,这是分析内容,这是分析内容,这是分析内容,这是分析内容,这是分析内容…</div>
|
|
|
+ <ul>
|
|
|
+ <li>发布&回滚 - 发布次数<span class="font-size font-w600">224</span>次;全量回滚次数<span
|
|
|
+ class="font-w600 font-size font-red">1</span>次,小流量回滚次数<span
|
|
|
+ class="font-size font-w600">4</span>次,全量回滚率<span class="font-size font-w600">0.45%</span>;裸奔上线次
|
|
|
+ 数<span class="font-w600 font-size">17</span>次,裸奔上线率 <span class="font-size font-w600 font-red">7.6%</span>。
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- E 客户端 -->
|
|
|
+ <!-- S 客户端 -->
|
|
|
+ <div class="content-2">
|
|
|
+ <div class="content-2-title"><span>WebApp</span></div>
|
|
|
+ <div class="content-2-con">
|
|
|
+ <div class="analysis-content">这是分析内容,这是分析内容,这是分析内容,这是分析内容,这是分析内容,这是分析内容…</div>
|
|
|
+ <ul>
|
|
|
+ <li>发布&回滚 - 发布次数<span class="font-size font-w600">224</span>次;全量回滚次数<span
|
|
|
+ class="font-w600 font-size font-red">1</span>次,小流量回滚次数<span
|
|
|
+ class="font-size font-w600">4</span>次,全量回滚率<span class="font-size font-w600">0.45%</span>;裸奔上线次
|
|
|
+ 数<span class="font-w600 font-size">17</span>次,裸奔上线率 <span class="font-size font-w600 font-red">7.6%</span>。
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- E 客户端 -->
|
|
|
+ <!-- S 客户端 -->
|
|
|
+ <div class="content-2">
|
|
|
+ <div class="content-2-title"><span>WebApp</span></div>
|
|
|
+ <div class="content-2-con">
|
|
|
+ <div class="analysis-content">这是分析内容,这是分析内容,这是分析内容,这是分析内容,这是分析内容,这是分析内容…</div>
|
|
|
+ <ul>
|
|
|
+ <li>发布&回滚 - 发布次数<span class="font-size font-w600">224</span>次;全量回滚次数<span
|
|
|
+ class="font-w600 font-size font-red">1</span>次,小流量回滚次数<span
|
|
|
+ class="font-size font-w600">4</span>次,全量回滚率<span class="font-size font-w600">0.45%</span>;裸奔上线次
|
|
|
+ 数<span class="font-w600 font-size">17</span>次,裸奔上线率 <span class="font-size font-w600 font-red">7.6%</span>。
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<!-- E 客户端 -->
|
|
|
</div>
|
|
|
<!-- E 质量流程&研发效率-->
|
|
@@ -97,14 +187,16 @@ export default {
|
|
|
html2Canvas(document.querySelector('#domHtml'), {
|
|
|
allowTaint: true
|
|
|
}).then(function(canvas) {
|
|
|
+ console.log(canvas)
|
|
|
const contentWidth = canvas.width
|
|
|
const contentHeight = canvas.height
|
|
|
- const pageHeight = contentWidth / 592.28 * 841.89
|
|
|
+ const pageHeight = contentHeight
|
|
|
let leftHeight = contentHeight
|
|
|
let position = 0
|
|
|
const imgWidth = 595.28
|
|
|
- const imgHeight = 592.28 / contentWidth * contentHeight
|
|
|
- const pageData = canvas.toDataURL('image/jpeg', 500.0)
|
|
|
+ // const imgHeight = 592.28 / contentWidth * contentHeight
|
|
|
+ const imgHeight = contentHeight
|
|
|
+ const pageData = canvas.toDataURL('image/jpeg', 1500.0)
|
|
|
const PDF = new JsPDF('', 'pt', 'a4')
|
|
|
if (leftHeight < pageHeight) {
|
|
|
PDF.addImage(pageData, 'JPEG', 0, 0, imgWidth, imgHeight)
|