Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
njgzx
dataease
Commits
ff7495d5
提交
ff7495d5
authored
5月 27, 2022
作者:
wangjiahao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor: 仪表板未发布状态显示优化
上级
d50bbe79
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
35 行增加
和
8 行删除
+35
-8
Preview.vue
frontend/src/components/canvas/components/Editor/Preview.vue
+7
-4
PreviewEject.vue
.../src/components/canvas/components/Editor/PreviewEject.vue
+4
-0
PreviewFullScreen.vue
...components/canvas/components/Editor/PreviewFullScreen.vue
+4
-0
index.vue
frontend/src/views/link/view/index.vue
+6
-3
multiplexing.vue
frontend/src/views/panel/ViewSelect/multiplexing.vue
+13
-1
PanelViewShow.vue
frontend/src/views/panel/list/PanelViewShow.vue
+1
-0
没有找到文件。
frontend/src/components/canvas/components/Editor/Preview.vue
浏览文件 @
ff7495d5
...
@@ -136,6 +136,10 @@ export default {
...
@@ -136,6 +136,10 @@ export default {
type
:
String
,
type
:
String
,
required
:
false
,
required
:
false
,
default
:
'NotProvided'
default
:
'NotProvided'
},
panelInfo
:
{
type
:
Object
,
required
:
true
}
}
},
},
data
()
{
data
()
{
...
@@ -176,15 +180,14 @@ export default {
...
@@ -176,15 +180,14 @@ export default {
},
},
showUnpublishedArea
()
{
showUnpublishedArea
()
{
// return this.panelInfo.status === 'unpublished'
// return this.panelInfo.status === 'unpublished'
if
(
this
.
mainActiveName
===
'PanelMain'
&&
this
.
activeTab
===
'PanelList'
)
{
if
(
this
.
panelInfo
&&
this
.
panelInfo
.
showType
===
'view'
)
{
return
false
}
else
if
((
this
.
mainActiveName
===
'PanelMain'
&&
this
.
activeTab
===
'PanelList'
)
||
this
.
showPosition
.
includes
(
'multiplexing'
))
{
return
this
.
panelInfo
.
status
===
'unpublished'
&&
!
hasDataPermission
(
'manage'
,
this
.
panelInfo
.
privileges
)
return
this
.
panelInfo
.
status
===
'unpublished'
&&
!
hasDataPermission
(
'manage'
,
this
.
panelInfo
.
privileges
)
}
else
{
}
else
{
return
this
.
panelInfo
.
status
===
'unpublished'
return
this
.
panelInfo
.
status
===
'unpublished'
}
}
},
},
panelInfo
()
{
return
this
.
$store
.
state
.
panel
.
panelInfo
},
showExportImgButton
()
{
showExportImgButton
()
{
return
this
.
showChartInfo
.
type
&&
!
this
.
showChartInfo
.
type
.
includes
(
'table'
)
return
this
.
showChartInfo
.
type
&&
!
this
.
showChartInfo
.
type
.
includes
(
'table'
)
},
},
...
...
frontend/src/components/canvas/components/Editor/PreviewEject.vue
浏览文件 @
ff7495d5
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
:component-data=
"componentData"
:component-data=
"componentData"
:canvas-style-data=
"canvasStyleData"
:canvas-style-data=
"canvasStyleData"
:back-screen-shot=
"backScreenShot"
:back-screen-shot=
"backScreenShot"
:panel-info=
"panelInfo"
@
mainHeightChange=
"mainHeightChange"
@
mainHeightChange=
"mainHeightChange"
/>
/>
</div>
</div>
...
@@ -36,6 +37,9 @@ export default {
...
@@ -36,6 +37,9 @@ export default {
return
{
height
:
'100vh!important'
}
return
{
height
:
'100vh!important'
}
}
}
},
},
panelInfo
()
{
return
this
.
$store
.
state
.
panel
.
panelInfo
},
...
mapState
([
...
mapState
([
'canvasStyleData'
,
'canvasStyleData'
,
'componentData'
'componentData'
...
...
frontend/src/components/canvas/components/Editor/PreviewFullScreen.vue
浏览文件 @
ff7495d5
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
v-if=
"fullscreen"
v-if=
"fullscreen"
:component-data=
"componentData"
:component-data=
"componentData"
:canvas-style-data=
"canvasStyleData"
:canvas-style-data=
"canvasStyleData"
:panel-info=
"panelInfo"
:in-screen=
"!fullscreen"
:in-screen=
"!fullscreen"
/>
/>
</fullscreen>
</fullscreen>
...
@@ -20,6 +21,9 @@ import { mapState } from 'vuex'
...
@@ -20,6 +21,9 @@ import { mapState } from 'vuex'
export
default
{
export
default
{
components
:
{
Preview
},
components
:
{
Preview
},
computed
:
{
computed
:
{
panelInfo
()
{
return
this
.
$store
.
state
.
panel
.
panelInfo
},
...
mapState
([
...
mapState
([
'canvasStyleData'
,
'canvasStyleData'
,
'componentData'
'componentData'
...
...
frontend/src/views/link/view/index.vue
浏览文件 @
ff7495d5
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
v-if=
"show"
v-if=
"show"
:component-data=
"componentData"
:component-data=
"componentData"
:canvas-style-data=
"canvasStyleData"
:canvas-style-data=
"canvasStyleData"
:panel-info=
"panelInfo"
/>
/>
</div>
</div>
</
template
>
</
template
>
...
@@ -33,7 +34,8 @@ export default {
...
@@ -33,7 +34,8 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
show
:
false
show
:
false
,
panelInfo
:
{}
}
}
},
},
computed
:
{
computed
:
{
...
@@ -51,12 +53,13 @@ export default {
...
@@ -51,12 +53,13 @@ export default {
loadResource
(
this
.
resourceId
).
then
(
res
=>
{
loadResource
(
this
.
resourceId
).
then
(
res
=>
{
this
.
show
=
false
this
.
show
=
false
let
loadingCount
=
0
let
loadingCount
=
0
this
.
$store
.
dispatch
(
'panel/setPanelInfo'
,
{
this
.
panelInfo
=
{
id
:
res
.
data
.
id
,
id
:
res
.
data
.
id
,
name
:
res
.
data
.
name
,
name
:
res
.
data
.
name
,
privileges
:
res
.
data
.
privileges
,
privileges
:
res
.
data
.
privileges
,
status
:
res
.
data
.
status
status
:
res
.
data
.
status
})
}
this
.
$store
.
dispatch
(
'panel/setPanelInfo'
,
panelInfo
)
panelInit
(
JSON
.
parse
(
res
.
data
.
panelData
),
JSON
.
parse
(
res
.
data
.
panelStyle
))
panelInit
(
JSON
.
parse
(
res
.
data
.
panelData
),
JSON
.
parse
(
res
.
data
.
panelStyle
))
// 设置浏览器title为当前仪表板名称
// 设置浏览器title为当前仪表板名称
...
...
frontend/src/views/panel/ViewSelect/multiplexing.vue
浏览文件 @
ff7495d5
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
v-if=
"selectedPanel"
v-if=
"selectedPanel"
:component-data=
"componentData"
:component-data=
"componentData"
:canvas-style-data=
"canvasStyleData"
:canvas-style-data=
"canvasStyleData"
:panel-info=
"panelInfo"
:show-position=
"showPosition"
:show-position=
"showPosition"
/>
/>
<el-col
v-else
style=
"height: 100%;"
>
<el-col
v-else
style=
"height: 100%;"
>
...
@@ -54,7 +55,8 @@ export default {
...
@@ -54,7 +55,8 @@ export default {
msgPanelIds
:
null
,
msgPanelIds
:
null
,
componentData
:
[],
componentData
:
[],
canvasStyleData
:
{},
canvasStyleData
:
{},
selectedPanel
:
null
selectedPanel
:
null
,
panelInfo
:
{}
}
}
},
},
watch
:
{
watch
:
{
...
@@ -73,6 +75,13 @@ export default {
...
@@ -73,6 +75,13 @@ export default {
_this
.
panelLoading
=
true
_this
.
panelLoading
=
true
findOne
(
params
.
showId
).
then
(
response
=>
{
findOne
(
params
.
showId
).
then
(
response
=>
{
_this
.
panelLoading
=
false
_this
.
panelLoading
=
false
this
.
panelInfo
=
{
id
:
response
.
data
.
id
,
name
:
response
.
data
.
name
,
privileges
:
response
.
data
.
privileges
,
sourcePanelName
:
response
.
data
.
sourcePanelName
,
status
:
response
.
data
.
status
}
panelDataPrepare
(
JSON
.
parse
(
response
.
data
.
panelData
),
JSON
.
parse
(
response
.
data
.
panelStyle
),
function
(
rsp
)
{
panelDataPrepare
(
JSON
.
parse
(
response
.
data
.
panelData
),
JSON
.
parse
(
response
.
data
.
panelStyle
),
function
(
rsp
)
{
_this
.
componentData
=
rsp
.
componentData
_this
.
componentData
=
rsp
.
componentData
_this
.
canvasStyleData
=
rsp
.
componentStyle
_this
.
canvasStyleData
=
rsp
.
componentStyle
...
@@ -94,6 +103,9 @@ export default {
...
@@ -94,6 +103,9 @@ export default {
'viewId'
:
params
.
showId
,
'viewId'
:
params
.
showId
,
'id'
:
componentId
'id'
:
componentId
}
}
this
.
panelInfo
=
{
'showType'
:
'view'
}
_this
.
$nextTick
(()
=>
{
_this
.
$nextTick
(()
=>
{
_this
.
componentData
.
push
(
userView
)
_this
.
componentData
.
push
(
userView
)
_this
.
selectedPanel
=
params
_this
.
selectedPanel
=
params
...
...
frontend/src/views/panel/list/PanelViewShow.vue
浏览文件 @
ff7495d5
...
@@ -97,6 +97,7 @@
...
@@ -97,6 +97,7 @@
:active-tab=
"activeTab"
:active-tab=
"activeTab"
:in-screen=
"!fullscreen"
:in-screen=
"!fullscreen"
:show-type=
"'width'"
:show-type=
"'width'"
:panel-info=
"panelInfo"
:screen-shot=
"dataLoading"
:screen-shot=
"dataLoading"
/>
/>
</fullscreen>
</fullscreen>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论