Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
a67a0ae5
提交
a67a0ae5
authored
12月 09, 2021
作者:
taojinlong
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'v1.5' of github.com:dataease/dataease into v1.5
上级
ac7d4fa9
f82782c9
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
11 行增加
和
6 行删除
+11
-6
V5__auth.sql
backend/src/main/resources/db/migration/V5__auth.sql
+5
-4
Preview.vue
frontend/src/components/canvas/components/Editor/Preview.vue
+4
-1
PDFPreExport.vue
frontend/src/views/panel/export/PDFPreExport.vue
+2
-1
没有找到文件。
backend/src/main/resources/db/migration/V5__auth.sql
浏览文件 @
a67a0ae5
...
@@ -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
...
...
frontend/src/components/canvas/components/Editor/Preview.vue
浏览文件 @
a67a0ae5
...
@@ -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
{
...
...
frontend/src/views/panel/export/PDFPreExport.vue
浏览文件 @
a67a0ae5
...
@@ -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
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论