Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
5e871361
提交
5e871361
authored
10月 13, 2021
作者:
taojinlong
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'v1.3' of github.com:dataease/dataease into v1.3
上级
6f8e7560
3f8088d9
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
40 行增加
和
4 行删除
+40
-4
README.md
README.md
+11
-0
shadow.vue
frontend/src/components/DeDrag/shadow.vue
+8
-0
index.vue
frontend/src/components/canvas/components/Editor/index.vue
+19
-2
TimeDateRangeServiceImpl.js
...components/widget/serviceImpl/TimeDateRangeServiceImpl.js
+2
-2
没有找到文件。
README.md
浏览文件 @
5e871361
...
@@ -24,6 +24,17 @@ DataEase 是开源的数据可视化分析工具,帮助用户快速分析数
...
@@ -24,6 +24,17 @@ DataEase 是开源的数据可视化分析工具,帮助用户快速分析数
-
秒级响应:集成 Apache Doris,超大数据量下秒级查询返回延时;
-
秒级响应:集成 Apache Doris,超大数据量下秒级查询返回延时;
-
安全分享:支持多种数据分享方式,确保数据安全。
-
安全分享:支持多种数据分享方式,确保数据安全。
### DataEase 已支持的数据源:
-
MySQL
-
Oracle
-
SQL Server
-
PostgreSQL
-
Elasticsearch
-
MariaDB
-
Doris
-
ClickHouse
## UI 展示
## UI 展示


...
...
frontend/src/components/DeDrag/shadow.vue
浏览文件 @
5e871361
...
@@ -18,6 +18,7 @@ export default {
...
@@ -18,6 +18,7 @@ export default {
let
top
=
0
let
top
=
0
let
width
=
0
let
width
=
0
let
height
=
0
let
height
=
0
let
transition
=
0
// if (this.dragComponentInfo && !this.dragComponentInfo.auxiliaryMatrix) {
// if (this.dragComponentInfo && !this.dragComponentInfo.auxiliaryMatrix) {
if
(
this
.
dragComponentInfo
)
{
if
(
this
.
dragComponentInfo
)
{
// console.log('shadowDrag=')
// console.log('shadowDrag=')
...
@@ -28,6 +29,7 @@ export default {
...
@@ -28,6 +29,7 @@ export default {
width
=
this
.
dragComponentInfo
.
sizex
*
this
.
curCanvasScale
.
matrixStyleWidth
width
=
this
.
dragComponentInfo
.
sizex
*
this
.
curCanvasScale
.
matrixStyleWidth
height
=
this
.
dragComponentInfo
.
sizey
*
this
.
curCanvasScale
.
matrixStyleHeight
height
=
this
.
dragComponentInfo
.
sizey
*
this
.
curCanvasScale
.
matrixStyleHeight
transition
=
0.1
}
else
{
}
else
{
left
=
this
.
dragComponentInfo
.
shadowStyle
.
x
left
=
this
.
dragComponentInfo
.
shadowStyle
.
x
top
=
this
.
dragComponentInfo
.
shadowStyle
.
y
top
=
this
.
dragComponentInfo
.
shadowStyle
.
y
...
@@ -45,6 +47,9 @@ export default {
...
@@ -45,6 +47,9 @@ export default {
width
=
this
.
curComponent
.
style
.
width
*
this
.
curCanvasScale
.
scalePointWidth
width
=
this
.
curComponent
.
style
.
width
*
this
.
curCanvasScale
.
scalePointWidth
height
=
this
.
curComponent
.
style
.
height
*
this
.
curCanvasScale
.
scalePointHeight
height
=
this
.
curComponent
.
style
.
height
*
this
.
curCanvasScale
.
scalePointHeight
if
(
this
.
curComponent
.
optStatus
.
dragging
)
{
transition
=
0.1
}
// console.log('curComponent left:' + left + 'top:' + top + 'width:' + width + 'height:' + height)
// console.log('curComponent left:' + left + 'top:' + top + 'width:' + width + 'height:' + height)
}
}
...
@@ -59,6 +64,9 @@ export default {
...
@@ -59,6 +64,9 @@ export default {
width
:
width
+
'px'
,
width
:
width
+
'px'
,
height
:
height
+
'px'
height
:
height
+
'px'
}
}
if
(
transition
>
0
)
{
style
.
transition
=
transition
+
's'
}
// console.log('style=>' + JSON.stringify(style))
// console.log('style=>' + JSON.stringify(style))
// 记录外部拖拽进入仪表板时阴影区域宽高
// 记录外部拖拽进入仪表板时阴影区域宽高
if
(
this
.
dragComponentInfo
)
{
if
(
this
.
dragComponentInfo
)
{
...
...
frontend/src/components/canvas/components/Editor/index.vue
浏览文件 @
5e871361
...
@@ -1480,14 +1480,31 @@ export default {
...
@@ -1480,14 +1480,31 @@ export default {
nowX
=
nowX
>
0
?
nowX
:
1
nowX
=
nowX
>
0
?
nowX
:
1
nowY
=
nowY
>
0
?
nowY
:
1
nowY
=
nowY
>
0
?
nowY
:
1
debounce
((
function
(
addSizex
,
addSizey
)
{
const
oldX
=
infoBox
.
oldX
const
oldY
=
infoBox
.
oldY
let
newX
=
Math
.
round
((
item
.
style
.
left
*
this
.
scalePointWidth
)
/
this
.
matrixStyle
.
width
)
+
1
let
newY
=
Math
.
round
((
item
.
style
.
top
*
this
.
scalePointHeight
)
/
this
.
matrixStyle
.
height
)
+
1
newX
=
newX
>
0
?
newX
:
1
newY
=
newY
>
0
?
newY
:
1
debounce
((
function
(
newX
,
oldX
,
newY
,
oldY
,
addSizex
,
addSizey
)
{
return
function
()
{
return
function
()
{
// console.log('move1')
if
(
newX
!==
oldX
||
oldY
!==
newY
)
{
// console.log('move2')
movePlayer
.
call
(
vm
,
resizeItem
,
{
x
:
newX
,
y
:
newY
})
infoBox
.
oldX
=
newX
infoBox
.
oldY
=
newY
}
resizePlayer
.
call
(
vm
,
resizeItem
,
{
resizePlayer
.
call
(
vm
,
resizeItem
,
{
sizex
:
nowX
,
sizex
:
nowX
,
sizey
:
nowY
sizey
:
nowY
})
})
}
}
})(
addSizex
,
addSizey
),
10
)
})(
newX
,
oldX
,
newY
,
oldY
,
addSizex
,
addSizey
),
10
)
},
},
onDragging
(
e
,
item
)
{
onDragging
(
e
,
item
)
{
const
infoBox
=
this
.
infoBox
const
infoBox
=
this
.
infoBox
...
...
frontend/src/components/widget/serviceImpl/TimeDateRangeServiceImpl.js
浏览文件 @
5e871361
...
@@ -11,8 +11,8 @@ const dialogPanel = {
...
@@ -11,8 +11,8 @@ const dialogPanel = {
attrs
:
{
attrs
:
{
type
:
'daterange'
,
type
:
'daterange'
,
rangeSeparator
:
'dedaterange.split_placeholder'
,
rangeSeparator
:
'dedaterange.split_placeholder'
,
startPlaceholder
:
'dedaterange.
to
_placeholder'
,
startPlaceholder
:
'dedaterange.
from
_placeholder'
,
endPlaceholder
:
'dedaterange.
from
_placeholder'
,
endPlaceholder
:
'dedaterange.
to
_placeholder'
,
viewIds
:
[]
viewIds
:
[]
},
},
value
:
''
value
:
''
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论