提交 41b3384d 编写于 作者: zhentian.jia's avatar zhentian.jia

PDF导出样式的问题

上级 a8cffe97
...@@ -389,15 +389,15 @@ export default { ...@@ -389,15 +389,15 @@ export default {
</script> </script>
<style lang="scss"> <style lang="scss">
.crowd-analysis-wrap { .crowd-analysis-wrap {
// background: #fff; background: #F0F2F5;
overflow: hidden; overflow: hidden;
// padding: 10px; // padding: 10px;
overflow-x: auto; overflow-x: auto;
.change-radio { .change-radio {
position: relative; position: relative;
top: 5px; top: 5px;
left: 50%; left: 100%;
margin-left: -60px; margin-left: -135px;
width:120px; width:120px;
height:34px; height:34px;
background:rgba(68,146,132,1); background:rgba(68,146,132,1);
......
...@@ -856,18 +856,19 @@ export default { ...@@ -856,18 +856,19 @@ export default {
if(element == null) { if(element == null) {
return return
} }
// let opts = { let opts = {
// scale:window.devicePixelRatio, // 添加的scale 参数 // scale:window.devicePixelRatio, // 添加的scale 参数
// logging: true, //日志开关 // logging: true, //日志开关
// width:element.offsetWidth, //dom 原始宽度 // width:element.offsetWidth, //dom 原始宽度
// height:element.offsetHeight, //dom 原始高度 // height:element.offsetHeight, //dom 原始高度
// useCORS: true, // useCORS: true,
// taintTest: true, //是否在渲染前测试图片 // taintTest: true, //是否在渲染前测试图片
// dpi:300 // dpi:300,
// }; background: '#F0F2F5',
};
vm.showRadio = 1; vm.showRadio = 1;
setTimeout(() => { setTimeout(() => {
html2Canvas(element).then(function(canvas) { html2Canvas(element,opts).then(function(canvas) {
let contentWidth = canvas.width; let contentWidth = canvas.width;
let contentHeight = canvas.height; let contentHeight = canvas.height;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册