Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
b1245f1d
提交
b1245f1d
authored
12月 01, 2021
作者:
taojinlong
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'v1.5' of github.com:dataease/dataease into v1.5
上级
b38d54e6
e7185a3a
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
28 行增加
和
17 行删除
+28
-17
view.js
frontend/src/api/panel/view.js
+3
-0
Preview.vue
frontend/src/components/canvas/components/Editor/Preview.vue
+15
-1
index.vue
frontend/src/components/canvas/components/Editor/index.vue
+5
-2
TextAttr.vue
frontend/src/components/canvas/components/TextAttr.vue
+0
-8
BackgroundSelector.vue
...ws/panel/SubjectSetting/PanelStyle/BackgroundSelector.vue
+1
-0
index.vue
frontend/src/views/panel/edit/index.vue
+2
-4
PDFPreExport.vue
frontend/src/views/panel/export/PDFPreExport.vue
+1
-1
PanelViewShow.vue
frontend/src/views/panel/list/PanelViewShow.vue
+1
-1
没有找到文件。
frontend/src/api/panel/view.js
浏览文件 @
b1245f1d
...
...
@@ -4,6 +4,7 @@ export function tree(data) {
return
request
({
url
:
'/api/panelView/tree'
,
method
:
'post'
,
timeout
:
30000
,
data
})
}
...
...
@@ -12,6 +13,7 @@ export function viewsWithIds(data) {
return
request
({
url
:
'/api/panelView/viewsWithIds'
,
method
:
'post'
,
timeout
:
30000
,
loading
:
true
,
data
})
...
...
@@ -21,6 +23,7 @@ export function findOne(id) {
return
request
({
url
:
'/api/panelView/findOne/'
+
id
,
method
:
'get'
,
timeout
:
30000
,
loading
:
true
})
}
...
...
frontend/src/components/canvas/components/Editor/Preview.vue
浏览文件 @
b1245f1d
...
...
@@ -4,6 +4,7 @@
<div
id=
"canvasInfoTemp"
ref=
"canvasInfoTemp"
:style=
"[
{height:mainHeight},screenShotStyle]"
class="main-class"
@mouseup="deselectCurComponent"
@mousedown="handleMouseDown"
...
...
@@ -59,6 +60,10 @@ export default {
event
:
'change'
},
props
:
{
screenShot
:
{
type
:
Boolean
,
default
:
false
},
show
:
{
type
:
Boolean
,
default
:
false
...
...
@@ -119,6 +124,9 @@ export default {
}
return
style
},
screenShotStyle
()
{
return
this
.
screenShot
?
this
.
customStyle
:
{}
},
// 此处单独计算componentData的值 不放入全局mapState中
componentDataInfo
()
{
return
this
.
componentDataShow
...
...
@@ -153,8 +161,14 @@ export default {
erd
.
listenTo
(
mainDom
,
element
=>
{
_this
.
$nextTick
(()
=>
{
_this
.
restore
()
})
})
// 监听div变动事件
const
tempCanvas
=
document
.
getElementById
(
'canvasInfoTemp'
)
erd
.
listenTo
(
tempCanvas
,
element
=>
{
_this
.
$nextTick
(()
=>
{
// 将mainHeight 修改为px 临时解决html2canvas 截图不全的问题
_this
.
mainHeight
=
mainDom
.
scrollHeight
+
'px!important'
_this
.
mainHeight
=
tempCanvas
.
scrollHeight
+
'px!important'
})
})
eventBus
.
$on
(
'openChartDetailsDialog'
,
this
.
openChartDetailsDialog
)
...
...
frontend/src/components/canvas/components/Editor/index.vue
浏览文件 @
b1245f1d
...
...
@@ -813,6 +813,10 @@ export default {
y
:
18
}
}
},
scrollTop
:
{
type
:
Number
,
default
:
0
}
},
data
()
{
...
...
@@ -1251,9 +1255,8 @@ export default {
}
},
handleDragOver
(
e
)
{
// console.log('handleDragOver-Editor')
this
.
dragComponentInfo
.
shadowStyle
.
x
=
e
.
pageX
-
220
this
.
dragComponentInfo
.
shadowStyle
.
y
=
e
.
pageY
-
90
this
.
dragComponentInfo
.
shadowStyle
.
y
=
e
.
pageY
-
90
+
this
.
scrollTop
this
.
dragComponentInfo
.
style
.
left
=
this
.
dragComponentInfo
.
shadowStyle
.
x
/
this
.
scalePointWidth
this
.
dragComponentInfo
.
style
.
top
=
this
.
dragComponentInfo
.
shadowStyle
.
y
/
this
.
scalePointHeight
if
(
this
.
dragComponentInfo
.
auxiliaryMatrix
)
{
...
...
frontend/src/components/canvas/components/TextAttr.vue
浏览文件 @
b1245f1d
...
...
@@ -78,14 +78,6 @@
<el-input
v-model=
"styleInfo.margin"
type=
"number"
size=
"mini"
min=
"0"
max=
"99"
@
change=
"styleChange"
/>
</div>
<el-tooltip
v-if=
"attrShow('padding')"
:content=
"$t('panel.margin')"
>
<i
style=
"float: left;margin-top: 3px;margin-left: 2px;"
class=
"icon iconfont icon-margin"
/>
</el-tooltip>
<div
v-if=
"attrShow('padding')"
style=
"width: 70px;float: left;margin-top: 2px;margin-left: 2px;"
>
<el-input
v-model=
"styleInfo.padding"
type=
"number"
size=
"mini"
min=
"0"
max=
"99"
@
change=
"styleChange"
/>
</div>
<el-tooltip
v-if=
"attrShow('opacity')"
:content=
"$t('panel.opacity')"
>
<i
style=
"float: left;margin-top: 3px;margin-left: 2px;"
class=
"icon iconfont icon-touming"
/>
</el-tooltip>
...
...
frontend/src/views/panel/SubjectSetting/PanelStyle/BackgroundSelector.vue
浏览文件 @
b1245f1d
...
...
@@ -106,6 +106,7 @@ export default {
_this
.
panel
.
imageUrl
=
reader
.
result
this
.
commitStyle
()
}
this
.
$store
.
state
.
styleChangeTimes
++
reader
.
readAsDataURL
(
file
.
raw
)
},
upload
(
file
)
{
...
...
frontend/src/views/panel/edit/index.vue
浏览文件 @
b1245f1d
...
...
@@ -106,7 +106,7 @@
@
mouseup=
"deselectCurComponent"
@
scroll=
"canvasScroll"
>
<Editor
ref=
"canvasEditor"
:matrix-count=
"pcMatrixCount"
:out-style=
"outStyle"
/>
<Editor
ref=
"canvasEditor"
:matrix-count=
"pcMatrixCount"
:out-style=
"outStyle"
:scroll-top=
"scrollTop"
/>
</div>
<!--移动端画布区域 保持宽高比2.5-->
<el-row
v-if=
"mobileLayoutStatus"
class=
"mobile_canvas_main"
>
...
...
@@ -126,7 +126,7 @@
id=
"canvasInfoMobile"
class=
"this_mobile_canvas_main"
>
<Editor
ref=
"editorMobile"
:matrix-count=
"mobileMatrixCount"
:out-style=
"outStyle"
/>
<Editor
ref=
"editorMobile"
:matrix-count=
"mobileMatrixCount"
:out-style=
"outStyle"
:scroll-top=
"scrollTop"
/>
</el-row>
<el-row
class=
"this_mobile_canvas_bottom"
/>
</div>
...
...
@@ -661,8 +661,6 @@ export default {
},
sureFilter
()
{
this
.
currentFilterCom
.
options
.
value
=
[]
const
component
=
deepCopy
(
this
.
currentFilterCom
)
this
.
$store
.
commit
(
'setComponentWithId'
,
component
)
this
.
$store
.
commit
(
'recordSnapshot'
,
'sureFilter'
)
this
.
closeFilter
()
},
...
...
frontend/src/views/panel/export/PDFPreExport.vue
浏览文件 @
b1245f1d
...
...
@@ -96,7 +96,7 @@ export default {
const
contentWidth
=
canvas
.
width
const
contentHeight
=
canvas
.
height
const
pageData
=
canvas
.
toDataURL
(
'image/jpeg'
,
1.0
)
const
PDF
=
new
JsPDF
(
'
l'
,
'px
'
,
[
contentWidth
,
contentHeight
])
const
PDF
=
new
JsPDF
(
'
p'
,
'pt
'
,
[
contentWidth
,
contentHeight
])
PDF
.
addImage
(
pageData
,
'JPEG'
,
0
,
0
,
contentWidth
,
contentHeight
)
PDF
.
save
(
_this
.
panelName
+
'.pdf'
)
_this
.
$emit
(
'closePreExport'
)
...
...
frontend/src/views/panel/list/PanelViewShow.vue
浏览文件 @
b1245f1d
...
...
@@ -75,7 +75,7 @@
<el-row
class=
"panel-design-preview"
>
<div
id=
"imageWrapper"
ref=
"imageWrapper"
style=
"width: 100%;height: 100%"
>
<fullscreen
style=
"height: 100%;background: #f7f8fa;overflow-y: auto"
:fullscreen
.
sync=
"fullscreen"
>
<Preview
v-if=
"showMain"
:in-screen=
"!fullscreen"
:show-type=
"'width'"
/>
<Preview
v-if=
"showMain"
:in-screen=
"!fullscreen"
:show-type=
"'width'"
:screen-shot=
"dataLoading"
/>
</fullscreen>
</div>
</el-row>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论