Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
njgzx
dataease
Commits
81dc5fb7
提交
81dc5fb7
authored
3月 29, 2022
作者:
wangjiahao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: tab组件视图编辑框弹出错误问题
上级
68ac2a0d
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
5 行增加
和
26 行删除
+5
-26
ContextMenu.vue
...d/src/components/canvas/components/Editor/ContextMenu.vue
+1
-1
EditBarView.vue
...d/src/components/canvas/components/Editor/EditBarView.vue
+2
-5
SettingMenuTest.vue
...c/components/canvas/components/Editor/SettingMenuTest.vue
+0
-3
UserView.vue
frontend/src/components/canvas/custom-component/UserView.vue
+1
-1
index.vue
frontend/src/views/panel/edit/index.vue
+1
-13
PanelList.vue
frontend/src/views/panel/list/PanelList.vue
+0
-3
没有找到文件。
frontend/src/components/canvas/components/Editor/ContextMenu.vue
浏览文件 @
81dc5fb7
...
@@ -50,7 +50,7 @@ export default {
...
@@ -50,7 +50,7 @@ export default {
if
(
this
.
curComponent
.
type
===
'view'
)
{
if
(
this
.
curComponent
.
type
===
'view'
)
{
this
.
$store
.
dispatch
(
'chart/setViewId'
,
null
)
this
.
$store
.
dispatch
(
'chart/setViewId'
,
null
)
this
.
$store
.
dispatch
(
'chart/setViewId'
,
this
.
curComponent
.
propValue
.
viewId
)
this
.
$store
.
dispatch
(
'chart/setViewId'
,
this
.
curComponent
.
propValue
.
viewId
)
bus
.
$emit
(
'
PanelSwitchComponent'
,
{
name
:
'ChartEdit'
,
param
:
{
'id'
:
this
.
curComponent
.
propValue
.
viewId
,
'optType'
:
'edit'
}}
)
bus
.
$emit
(
'
change_panel_right_draw'
,
true
)
}
}
if
(
this
.
curComponent
.
type
===
'custom'
)
{
if
(
this
.
curComponent
.
type
===
'custom'
)
{
bus
.
$emit
(
'component-dialog-edit'
)
bus
.
$emit
(
'component-dialog-edit'
)
...
...
frontend/src/components/canvas/components/Editor/EditBarView.vue
浏览文件 @
81dc5fb7
<
template
>
<
template
>
<div
class=
"bar-main"
>
<div
class=
"bar-main"
>
<div
v-if=
"!linkageSettingStatus"
>
<div>
<span
v-if=
"isEdit"
:title=
"$t('panel.edit')"
>
<span
v-if=
"isEdit"
:title=
"$t('panel.edit')"
>
<i
class=
"icon iconfont icon-edit"
@
click
.
stop=
"edit"
/>
<i
class=
"icon iconfont icon-edit"
@
click
.
stop=
"edit"
/>
</span>
</span>
...
@@ -51,12 +51,9 @@ export default {
...
@@ -51,12 +51,9 @@ export default {
},
},
methods
:
{
methods
:
{
edit
()
{
edit
()
{
// 编辑时临时保存 当前修改的画布
this
.
$store
.
dispatch
(
'panel/setComponentDataTemp'
,
JSON
.
stringify
(
this
.
componentData
))
this
.
$store
.
dispatch
(
'panel/setCanvasStyleDataTemp'
,
JSON
.
stringify
(
this
.
canvasStyleData
))
this
.
$store
.
dispatch
(
'chart/setViewId'
,
null
)
this
.
$store
.
dispatch
(
'chart/setViewId'
,
null
)
this
.
$store
.
dispatch
(
'chart/setViewId'
,
this
.
viewId
)
this
.
$store
.
dispatch
(
'chart/setViewId'
,
this
.
viewId
)
bus
.
$emit
(
'
PanelSwitchComponent'
,
{
name
:
'ChartEdit'
,
param
:
{
'id'
:
this
.
viewId
,
'optType'
:
'edit'
}}
)
bus
.
$emit
(
'
change_panel_right_draw'
,
true
)
},
},
linkageEdit
()
{
linkageEdit
()
{
...
...
frontend/src/components/canvas/components/Editor/SettingMenuTest.vue
浏览文件 @
81dc5fb7
...
@@ -46,9 +46,6 @@ export default {
...
@@ -46,9 +46,6 @@ export default {
this
.
$refs
.
trackButton
.
$el
.
click
()
this
.
$refs
.
trackButton
.
$el
.
click
()
},
},
edit
()
{
edit
()
{
// 编辑时临时保存 当前修改的画布
this
.
$store
.
dispatch
(
'panel/setComponentDataTemp'
,
JSON
.
stringify
(
this
.
componentData
))
this
.
$store
.
dispatch
(
'panel/setCanvasStyleDataTemp'
,
JSON
.
stringify
(
this
.
canvasStyleData
))
if
(
this
.
curComponent
.
type
===
'view'
)
{
if
(
this
.
curComponent
.
type
===
'view'
)
{
this
.
$store
.
dispatch
(
'chart/setViewId'
,
null
)
this
.
$store
.
dispatch
(
'chart/setViewId'
,
null
)
this
.
$store
.
dispatch
(
'chart/setViewId'
,
this
.
curComponent
.
propValue
.
viewId
)
this
.
$store
.
dispatch
(
'chart/setViewId'
,
this
.
curComponent
.
propValue
.
viewId
)
...
...
frontend/src/components/canvas/custom-component/UserView.vue
浏览文件 @
81dc5fb7
...
@@ -372,7 +372,7 @@ export default {
...
@@ -372,7 +372,7 @@ export default {
this
.
destroyTimeMachine
()
this
.
destroyTimeMachine
()
this
.
changeIndex
++
this
.
changeIndex
++
this
.
chartResize
(
this
.
changeIndex
)
this
.
chartResize
(
this
.
changeIndex
)
}
else
{
}
else
if
(
this
.
$refs
[
this
.
element
.
propValue
.
id
])
{
this
.
chart
.
isPlugin
this
.
chart
.
isPlugin
?
this
.
$refs
[
this
.
element
.
propValue
.
id
].
callPluginInner
({
methodName
:
'chartResize'
})
?
this
.
$refs
[
this
.
element
.
propValue
.
id
].
callPluginInner
({
methodName
:
'chartResize'
})
:
this
.
$refs
[
this
.
element
.
propValue
.
id
].
chartResize
()
:
this
.
$refs
[
this
.
element
.
propValue
.
id
].
chartResize
()
...
...
frontend/src/views/panel/edit/index.vue
浏览文件 @
81dc5fb7
...
@@ -634,15 +634,7 @@ export default {
...
@@ -634,15 +634,7 @@ export default {
init
(
panelId
)
{
init
(
panelId
)
{
const
_this
=
this
const
_this
=
this
_this
.
initHasStar
()
_this
.
initHasStar
()
// 如果临时画布有数据 则使用临时画布数据(视图编辑的时候 会保存临时画布数据)
if
(
panelId
)
{
const
componentDataTemp
=
this
.
$store
.
state
.
panel
.
componentDataTemp
const
canvasStyleDataTemp
=
this
.
$store
.
state
.
panel
.
canvasStyleDataTemp
if
(
componentDataTemp
&&
canvasStyleDataTemp
)
{
panelInit
(
JSON
.
parse
(
componentDataTemp
),
JSON
.
parse
(
canvasStyleDataTemp
))
// 清空临时画布数据
_this
.
$store
.
dispatch
(
'panel/setComponentDataTemp'
,
null
)
_this
.
$store
.
dispatch
(
'panel/setCanvasStyleDataTemp'
,
null
)
}
else
if
(
panelId
)
{
initPanelData
(
panelId
,
function
()
{
initPanelData
(
panelId
,
function
()
{
// 初始化视图缓存
// 初始化视图缓存
initViewCache
(
panelId
)
initViewCache
(
panelId
)
...
@@ -650,10 +642,6 @@ export default {
...
@@ -650,10 +642,6 @@ export default {
setTimeout
(()
=>
{
setTimeout
(()
=>
{
_this
.
$store
.
commit
(
'refreshSaveStatus'
)
_this
.
$store
.
commit
(
'refreshSaveStatus'
)
},
500
)
},
500
)
// initPanelComponentsData(panelId, function(rsp) {
// _this.$store.commit('initPanelComponents', rsp)// 初始化仪表板组件视图数据
// _this.$store.commit('recordSnapshot', 'init')// 记录快照
// })
})
})
}
}
},
},
...
...
frontend/src/views/panel/list/PanelList.vue
浏览文件 @
81dc5fb7
...
@@ -690,9 +690,6 @@ export default {
...
@@ -690,9 +690,6 @@ export default {
this
.
$store
.
commit
(
'refreshSnapshot'
)
this
.
$store
.
commit
(
'refreshSnapshot'
)
this
.
$store
.
commit
(
'setComponentData'
,
[])
this
.
$store
.
commit
(
'setComponentData'
,
[])
this
.
$store
.
commit
(
'setCanvasStyle'
,
DEFAULT_COMMON_CANVAS_STYLE_STRING
)
this
.
$store
.
commit
(
'setCanvasStyle'
,
DEFAULT_COMMON_CANVAS_STYLE_STRING
)
// 清空临时画布数据
this
.
$store
.
dispatch
(
'panel/setComponentDataTemp'
,
null
)
this
.
$store
.
dispatch
(
'panel/setCanvasStyleDataTemp'
,
null
)
this
.
$store
.
dispatch
(
'panel/setPanelInfo'
,
data
)
this
.
$store
.
dispatch
(
'panel/setPanelInfo'
,
data
)
bus
.
$emit
(
'PanelSwitchComponent'
,
{
name
:
'PanelEdit'
})
bus
.
$emit
(
'PanelSwitchComponent'
,
{
name
:
'PanelEdit'
})
},
},
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论