提交 a67a0ae5 authored 作者: taojinlong's avatar taojinlong

Merge branch 'v1.5' of github.com:dataease/dataease into v1.5

...@@ -333,7 +333,7 @@ DECLARE oTempChild VARCHAR(8000); ...@@ -333,7 +333,7 @@ DECLARE oTempChild VARCHAR(8000);
SET oTemp = ''; SET oTemp = '';
SET oTempChild = CAST(parentId AS CHAR); SET oTempChild = CAST(parentId AS CHAR CHARACTER set utf8mb4) COLLATE utf8mb4_general_ci;
WHILE oTempChild IS NOT NULL WHILE oTempChild IS NOT NULL
...@@ -366,7 +366,8 @@ DECLARE oTempChild VARCHAR(8000); ...@@ -366,7 +366,8 @@ DECLARE oTempChild VARCHAR(8000);
SET oTemp = ''; SET oTemp = '';
SET oTempChild = CAST(parentId AS CHAR); SET oTempChild = CAST(parentId AS CHAR CHARACTER set utf8mb4) COLLATE utf8mb4_general_ci;
WHILE oTempChild IS NOT NULL WHILE oTempChild IS NOT NULL
...@@ -420,7 +421,7 @@ DECLARE oTempChild longtext; ...@@ -420,7 +421,7 @@ DECLARE oTempChild longtext;
SET oTemp = ''; SET oTemp = '';
SET oTempChild = CAST(parentId AS CHAR); SET oTempChild = CAST(parentId AS CHAR CHARACTER set utf8mb4) COLLATE utf8mb4_general_ci;
WHILE oTempChild IS NOT NULL WHILE oTempChild IS NOT NULL
...@@ -453,7 +454,7 @@ DECLARE oTempParent longtext; ...@@ -453,7 +454,7 @@ DECLARE oTempParent longtext;
SET oTemp = ''; SET oTemp = '';
SET oTempParent = CAST(childrenId AS CHAR); SET oTempParent = CAST(childrenId AS CHAR CHARACTER set utf8mb4) COLLATE utf8mb4_general_ci;
WHILE oTempParent IS NOT NULL WHILE oTempParent IS NOT NULL
......
...@@ -108,7 +108,9 @@ export default { ...@@ -108,7 +108,9 @@ export default {
}, },
computed: { computed: {
customStyle() { customStyle() {
let style = {} let style = {
width: '100%'
}
if (this.canvasStyleData.openCommonStyle) { if (this.canvasStyleData.openCommonStyle) {
if (this.canvasStyleData.panel.backgroundType === 'image' && this.canvasStyleData.panel.imageUrl) { if (this.canvasStyleData.panel.backgroundType === 'image' && this.canvasStyleData.panel.imageUrl) {
style = { style = {
...@@ -266,6 +268,7 @@ export default { ...@@ -266,6 +268,7 @@ export default {
.main-class { .main-class {
width: 100%; width: 100%;
height: 100%; height: 100%;
background-size: 100% 100% !important;
} }
.custom-position { .custom-position {
......
...@@ -97,7 +97,8 @@ export default { ...@@ -97,7 +97,8 @@ export default {
const contentWidth = canvas.width const contentWidth = canvas.width
const contentHeight = canvas.height const contentHeight = canvas.height
const pageData = canvas.toDataURL('image/jpeg', 1.0) const pageData = canvas.toDataURL('image/jpeg', 1.0)
const PDF = new JsPDF('p', 'pt', [contentWidth, contentHeight]) const lp = contentWidth > contentHeight ? 'l' : 'p'
const PDF = new JsPDF(lp, 'pt', [contentWidth, contentHeight])
PDF.addImage(pageData, 'JPEG', 0, 0, contentWidth, contentHeight) PDF.addImage(pageData, 'JPEG', 0, 0, contentWidth, contentHeight)
PDF.save(_this.panelName + '.pdf') PDF.save(_this.panelName + '.pdf')
_this.$emit('closePreExport') _this.$emit('closePreExport')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论