Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
cd41a068
提交
cd41a068
authored
3月 23, 2021
作者:
fit2cloud-chenyw
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 仪表板预览
上级
56ecb456
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
144 行增加
和
4 行删除
+144
-4
index.js
frontend/src/router/index.js
+6
-0
index.vue
frontend/src/views/panel/DrawingBoard/index.vue
+8
-1
index.vue
frontend/src/views/panel/edit/index.vue
+5
-2
index.vue
frontend/src/views/panel/filter/index.vue
+3
-1
index.vue
frontend/src/views/panel/preview/index.vue
+122
-0
没有找到文件。
frontend/src/router/index.js
浏览文件 @
cd41a068
...
@@ -72,6 +72,12 @@ export const constantRoutes = [
...
@@ -72,6 +72,12 @@ export const constantRoutes = [
]
]
},
},
{
path
:
'/preview'
,
component
:
()
=>
import
(
'@/views/panel/preview/index'
),
hidden
:
true
},
{
{
path
:
'/'
,
path
:
'/'
,
component
:
Layout
,
component
:
Layout
,
...
...
frontend/src/views/panel/DrawingBoard/index.vue
浏览文件 @
cd41a068
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
v-for=
"item in panelDetails.panelDesigns"
v-for=
"item in panelDetails.panelDesigns"
v-show=
"item.keepFlag"
v-show=
"item.keepFlag"
:key=
"item.id"
:key=
"item.id"
:disabled=
"status"
:panel-design=
"item"
:panel-design=
"item"
:parent=
"true"
:parent=
"true"
@
newStyle=
"newStyle"
@
newStyle=
"newStyle"
...
@@ -28,6 +29,12 @@ import bus from '@/utils/bus'
...
@@ -28,6 +29,12 @@ import bus from '@/utils/bus'
export
default
{
export
default
{
name
:
'DrawingBoard'
,
name
:
'DrawingBoard'
,
components
:
{
ChartComponent
,
VueDragResizeRotate
},
components
:
{
ChartComponent
,
VueDragResizeRotate
},
props
:
{
status
:
{
type
:
Boolean
,
default
:
false
}
},
data
()
{
data
()
{
return
{
return
{
panelDetails
:
{
panelDetails
:
{
...
@@ -135,7 +142,7 @@ export default {
...
@@ -135,7 +142,7 @@ export default {
return
true
return
true
},
},
preViewShow
()
{
preViewShow
()
{
this
.
$router
.
replace
(
'/preview'
)
},
},
savePanel
()
{
savePanel
()
{
post
(
'panel/group/saveGroupWithDesign'
,
this
.
panelDetails
,
()
=>
{
post
(
'panel/group/saveGroupWithDesign'
,
this
.
panelDetails
,
()
=>
{
...
...
frontend/src/views/panel/edit/index.vue
浏览文件 @
cd41a068
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
</el-tooltip>
</el-tooltip>
<el-tooltip
content=
"预览"
>
<el-tooltip
content=
"预览"
>
<el-button
class=
"el-icon-view"
size=
"mini"
circle
@
click=
"
save
"
/>
<el-button
class=
"el-icon-view"
size=
"mini"
circle
@
click=
"
preViewShow
"
/>
</el-tooltip>
</el-tooltip>
</span>
</span>
...
@@ -134,7 +134,7 @@ export default {
...
@@ -134,7 +134,7 @@ export default {
},
},
beforeDestroy
()
{
beforeDestroy
()
{
const
elx
=
this
.
$refs
.
rightPanel
const
elx
=
this
.
$refs
.
rightPanel
elx
.
remove
()
elx
&&
elx
.
remove
()
},
},
methods
:
{
methods
:
{
save
()
{
save
()
{
...
@@ -168,6 +168,9 @@ export default {
...
@@ -168,6 +168,9 @@ export default {
},
},
saveDrawing
()
{
saveDrawing
()
{
bus
.
$emit
(
'panel-drawing-save'
)
bus
.
$emit
(
'panel-drawing-save'
)
},
preViewShow
()
{
bus
.
$emit
(
'panel-drawing-preview'
)
}
}
}
}
...
...
frontend/src/views/panel/filter/index.vue
浏览文件 @
cd41a068
...
@@ -7,7 +7,9 @@
...
@@ -7,7 +7,9 @@
</div>
</div>
<div
style=
"position: relative;margin-left: 5px;"
>
<div
style=
"position: relative;margin-left: 5px;"
>
<div
v-for=
"o in 4"
:key=
"o"
class=
"item"
>
<div
v-for=
"o in 4"
:key=
"o"
class=
"item"
>
<el-button
style=
"width: 90px;"
size=
"mini"
type=
"primary"
icon=
"el-icon-edit"
plain
>
{{
'条件 '
+
o
}}
</el-button>
<div
draggable
>
<el-button
style=
"width: 90px;"
size=
"mini"
type=
"primary"
icon=
"el-icon-edit"
plain
>
{{
'条件 '
+
o
}}
</el-button>
</div>
</div>
</div>
</div>
</div>
...
...
frontend/src/views/panel/preview/index.vue
0 → 100644
浏览文件 @
cd41a068
<
template
>
<el-container>
<!--
<de-header>
Header
</de-header>
-->
<el-header
class=
"de-header"
>
<el-row
class=
"panel-design-head"
>
<span
style=
"float: left;line-height: 35px; color: gray"
>
<span>
名称:测试仪表板
</span>
</span>
<span
style=
"float: right;line-height: 35px;"
>
<el-tooltip
content=
"返回目录"
>
<el-button
class=
"el-icon-refresh-left"
size=
"mini"
circle
@
click=
"toDir"
/>
</el-tooltip>
</span>
</el-row>
</el-header>
<de-container>
<de-main-container
class=
"ms-main-container"
>
<drawing-board
:disabled=
"true"
/>
</de-main-container>
</de-container>
</el-container>
</
template
>
<
script
>
import
DeMainContainer
from
'@/components/dataease/DeMainContainer'
import
DeContainer
from
'@/components/dataease/DeContainer'
import
DrawingBoard
from
'../DrawingBoard'
export
default
{
components
:
{
DeMainContainer
,
DeContainer
,
DrawingBoard
},
data
()
{
return
{
}
},
methods
:
{
toDir
()
{
this
.
$router
.
replace
(
'/panel/index'
)
}
}
}
</
script
>
<
style
scoped
>
.ms-aside-container
{
height
:
calc
(
100vh
-
91px
);
padding
:
15px
;
min-width
:
60px
;
max-width
:
60px
;
border
:
none
;
}
.ms-main-container
{
height
:
calc
(
100vh
-
91px
);
}
.de-header
{
height
:
35px
!important
;
border-bottom
:
1px
solid
#E6E6E6
;
}
.showLeftPanel
{
overflow
:
hidden
;
position
:
relative
;
width
:
calc
(
100%
-
15px
);
}
</
style
>
<
style
lang=
"scss"
scoped
>
.leftPanel-background
{
position
:
fixed
;
top
:
0
;
left
:
0
;
opacity
:
0
;
transition
:
opacity
.3s
cubic-bezier
(
.7
,
.3
,
.1
,
1
);
background
:
rgba
(
0
,
0
,
0
,
.2
);
z-index
:
-1
;
}
.leftPanel
{
width
:
100%
;
max-width
:
260px
;
height
:
calc
(
100vh
-
91px
);
position
:
fixed
;
top
:
91px
;
left
:
60px
;
box-shadow
:
0px
0px
15px
0px
rgba
(
0
,
0
,
0
,
.05
);
transition
:
all
.25s
cubic-bezier
(
.7
,
.3
,
.1
,
1
);
transform
:
translate
(
100%
);
background
:
#fff
;
z-index
:
40000
;
}
.show
{
transition
:
all
.3s
cubic-bezier
(
.7
,
.3
,
.1
,
1
);
.leftPanel-background
{
z-index
:
20000
;
opacity
:
1
;
width
:
100%
;
height
:
100%
;
}
.leftPanel
{
transform
:
translate
(
0
);
}
}
</
style
>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论