Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
njgzx
dataease
Commits
3bc094dd
Unverified
提交
3bc094dd
authored
3月 29, 2022
作者:
王嘉豪
提交者:
GitHub
3月 29, 2022
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1995 from dataease/pr@dev@fix_panel-style
fix: tab组件视图编辑框弹出错误问题
上级
7e54842e
1a65d587
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
16 行增加
和
1 行删除
+16
-1
DeTabs.vue
frontend/src/components/widget/DeWidget/DeTabs.vue
+3
-0
index.vue
frontend/src/views/panel/edit/index.vue
+13
-1
没有找到文件。
frontend/src/components/widget/DeWidget/DeTabs.vue
浏览文件 @
3bc094dd
...
@@ -277,6 +277,7 @@ export default {
...
@@ -277,6 +277,7 @@ export default {
this
.
curItem
.
name
=
newComponentId
this
.
curItem
.
name
=
newComponentId
this
.
viewDialogVisible
=
false
this
.
viewDialogVisible
=
false
this
.
activeTabName
=
newComponentId
this
.
activeTabName
=
newComponentId
this
.
$store
.
dispatch
(
'chart/setViewId'
,
component
.
propValue
.
viewId
)
this
.
styleChange
()
this
.
styleChange
()
})
})
// this.setComponentInfo()
// this.setComponentInfo()
...
@@ -308,6 +309,7 @@ export default {
...
@@ -308,6 +309,7 @@ export default {
this
.
activeTabName
=
this
.
element
.
options
.
tabList
[
activIndex
].
name
this
.
activeTabName
=
this
.
element
.
options
.
tabList
[
activIndex
].
name
}
}
}
}
this
.
$store
.
dispatch
(
'chart/setViewId'
,
null
)
this
.
styleChange
()
this
.
styleChange
()
},
},
...
@@ -334,6 +336,7 @@ export default {
...
@@ -334,6 +336,7 @@ export default {
this
.
element
.
options
.
tabList
.
forEach
(
item
=>
{
this
.
element
.
options
.
tabList
.
forEach
(
item
=>
{
if
(
item
&&
item
.
name
===
name
&&
item
.
content
&&
item
.
content
.
propValue
&&
item
.
content
.
propValue
.
viewId
)
{
if
(
item
&&
item
.
name
===
name
&&
item
.
content
&&
item
.
content
.
propValue
&&
item
.
content
.
propValue
.
viewId
)
{
this
.
filterMap
[
item
.
content
.
propValue
.
viewId
]
=
item
.
content
.
filters
this
.
filterMap
[
item
.
content
.
propValue
.
viewId
]
=
item
.
content
.
filters
this
.
$store
.
dispatch
(
'chart/setViewId'
,
item
.
content
.
propValue
.
viewId
)
}
}
})
})
// console.log(tab)
// console.log(tab)
...
...
frontend/src/views/panel/edit/index.vue
浏览文件 @
3bc094dd
...
@@ -455,6 +455,15 @@ export default {
...
@@ -455,6 +455,15 @@ export default {
computed
:
{
computed
:
{
// 侧边显示控制
// 侧边显示控制
chartEditParam
()
{
chartEditParam
()
{
if
(
this
.
curComponent
)
{
if
(
this
.
curComponent
.
type
===
'view'
)
{
return
{
'id'
:
this
.
curComponent
.
propValue
.
viewId
,
'optType'
:
'edit'
}
}
else
if
(
this
.
curComponent
.
type
===
'de-tabs'
&&
this
.
$store
.
state
.
chart
.
viewId
)
{
return
{
'id'
:
this
.
$store
.
state
.
chart
.
viewId
,
'optType'
:
'edit'
}
}
else
{
return
{}
}
}
return
this
.
curComponent
?
{
'id'
:
this
.
curComponent
.
propValue
.
viewId
,
'optType'
:
'edit'
}
:
{}
return
this
.
curComponent
?
{
'id'
:
this
.
curComponent
.
propValue
.
viewId
,
'optType'
:
'edit'
}
:
{}
},
},
// 侧边显示控制
// 侧边显示控制
...
@@ -463,7 +472,7 @@ export default {
...
@@ -463,7 +472,7 @@ export default {
},
},
// 显示视图工具栏
// 显示视图工具栏
showViewToolsAside
()
{
showViewToolsAside
()
{
return
this
.
curComponent
&&
this
.
curComponent
.
type
===
'view'
return
this
.
curComponent
&&
(
this
.
curComponent
.
type
===
'view'
||
this
.
curComponent
.
type
===
'de-tabs'
)
},
},
showViewToolAsideType
()
{
showViewToolAsideType
()
{
if
(
this
.
curComponent
)
{
if
(
this
.
curComponent
)
{
...
@@ -624,6 +633,9 @@ export default {
...
@@ -624,6 +633,9 @@ export default {
this
.
outerParamsSetVisible
=
false
this
.
outerParamsSetVisible
=
false
},
},
changeRightDrawOpen
(
param
)
{
changeRightDrawOpen
(
param
)
{
if
(
!
param
)
{
this
.
$store
.
dispatch
(
'chart/setViewId'
,
null
)
}
this
.
rightDrawOpen
=
param
this
.
rightDrawOpen
=
param
if
(
this
.
rightDrawOpen
)
{
if
(
this
.
rightDrawOpen
)
{
setTimeout
(()
=>
{
setTimeout
(()
=>
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论