Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
334638ad
提交
334638ad
authored
4月 01, 2021
作者:
wangjiahao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat:画布增加视图编辑功能
上级
67a1179b
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
96 行增加
和
0 行删除
+96
-0
ContextMenu.vue
...d/src/components/canvas/components/Editor/ContextMenu.vue
+7
-0
ChartEdit.vue
frontend/src/views/chart/view/ChartEdit.vue
+4
-0
index-back.vue
frontend/src/views/panel/index-back.vue
+85
-0
没有找到文件。
frontend/src/components/canvas/components/Editor/ContextMenu.vue
浏览文件 @
334638ad
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
<
script
>
<
script
>
import
{
mapState
}
from
'vuex'
import
{
mapState
}
from
'vuex'
import
bus
from
'@/utils/bus'
export
default
{
export
default
{
data
()
{
data
()
{
...
@@ -38,6 +39,12 @@ export default {
...
@@ -38,6 +39,12 @@ export default {
]),
]),
methods
:
{
methods
:
{
edit
()
{
edit
()
{
debugger
if
(
this
.
curComponent
.
component
===
'user-view'
)
{
this
.
$store
.
dispatch
(
'chart/setViewId'
,
null
)
this
.
$store
.
dispatch
(
'chart/setViewId'
,
this
.
curComponent
.
propValue
.
viewId
)
bus
.
$emit
(
'PanelSwitchComponent'
,
{
name
:
'ChartEdit'
})
}
// 编辑组件
// 编辑组件
},
},
lock
()
{
lock
()
{
...
...
frontend/src/views/chart/view/ChartEdit.vue
浏览文件 @
334638ad
...
@@ -211,6 +211,8 @@ import DimensionItem from '../components/drag-item/DimensionItem'
...
@@ -211,6 +211,8 @@ import DimensionItem from '../components/drag-item/DimensionItem'
import
QuotaItem
from
'../components/drag-item/QuotaItem'
import
QuotaItem
from
'../components/drag-item/QuotaItem'
import
FilterItem
from
'../components/drag-item/FilterItem'
import
FilterItem
from
'../components/drag-item/FilterItem'
import
ChartComponent
from
'../components/ChartComponent'
import
ChartComponent
from
'../components/ChartComponent'
import
bus
from
'@/utils/bus'
// shape attr,component style
// shape attr,component style
import
{
import
{
DEFAULT_COLOR_CASE
,
DEFAULT_COLOR_CASE
,
...
@@ -355,6 +357,8 @@ export default {
...
@@ -355,6 +357,8 @@ export default {
})
})
},
},
closeEdit
()
{
closeEdit
()
{
// 从仪表盘入口关闭
bus
.
$emit
(
'PanelSwitchComponent'
,
{
name
:
'PanelEdit'
})
this
.
$emit
(
'switchComponent'
,
{
name
:
''
})
this
.
$emit
(
'switchComponent'
,
{
name
:
''
})
},
},
getData
(
id
)
{
getData
(
id
)
{
...
...
frontend/src/views/panel/index-back.vue
0 → 100644
浏览文件 @
334638ad
<
template
>
<de-container>
<de-aside-container>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
>
<el-tab-pane
name=
"PanelList"
>
<span
slot=
"label"
><i
class=
"el-icon-document"
/>
列表
</span>
<panel-list
/>
</el-tab-pane>
<el-tab-pane
name=
"panels_star"
>
<span
slot=
"label"
><i
class=
"el-icon-star-off"
/>
收藏
</span>
开发中...
</el-tab-pane>
<el-tab-pane
name=
"panels_share"
:lazy=
"true"
>
<span
slot=
"label"
><i
class=
"el-icon-share"
/>
分享
</span>
<share-tree
v-if=
"showShare"
/>
</el-tab-pane>
</el-tabs>
</de-aside-container>
<de-main-container>
<component
:is=
"component"
:param=
"param"
/>
</de-main-container>
</de-container>
</
template
>
<
script
>
import
DeMainContainer
from
'@/components/dataease/DeMainContainer'
import
DeContainer
from
'@/components/dataease/DeContainer'
import
DeAsideContainer
from
'@/components/dataease/DeAsideContainer'
// import Group from './group/Group'
import
PanelList
from
'./list/PanelList'
import
PanelViewShow
from
'./list/PanelViewShow'
import
ShareTree
from
'./GrantAuth/shareTree'
export
default
{
name
:
'Panel'
,
components
:
{
DeMainContainer
,
DeContainer
,
DeAsideContainer
,
PanelList
,
PanelViewShow
,
ShareTree
},
data
()
{
return
{
component
:
PanelViewShow
,
param
:
{},
activeName
:
'PanelList'
,
showShare
:
false
}
},
methods
:
{
handleClick
(
tab
,
event
)
{
// 点击分析面板需要刷新分享内容
if
(
tab
.
name
===
'panels_share'
)
{
this
.
refreshShare
()
}
},
// switchComponent(c) {
// console.log(c)
// this.param = c.param
// switch (c.name) {
// case 'PanelViewShow':
// this.component = PanelViewShow
// break
// }
// },
refreshShare
()
{
this
.
showShare
=
false
this
.
$nextTick
(()
=>
(
this
.
showShare
=
true
))
}
}
}
</
script
>
<
style
scoped
>
.ms-aside-container
{
height
:
calc
(
100vh
-
56px
);
padding
:
15px
;
min-width
:
260px
;
max-width
:
460px
;
}
.ms-main-container
{
height
:
calc
(
100vh
-
56px
);
}
</
style
>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论