Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
skywalking-rocketbot-ui
提交
5ce77769
S
skywalking-rocketbot-ui
项目概览
apache
/
skywalking-rocketbot-ui
通知
17
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
skywalking-rocketbot-ui
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
5ce77769
编写于
6月 03, 2020
作者:
Q
Qiuxia Fan
提交者:
GitHub
6月 03, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: limit edit dashboard (#304)
上级
d917a428
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
10 addition
and
4 deletion
+10
-4
src/views/components/dashboard/dashboard-item.vue
src/views/components/dashboard/dashboard-item.vue
+4
-3
src/views/containers/dashboard.vue
src/views/containers/dashboard.vue
+6
-1
未找到文件。
src/views/components/dashboard/dashboard-item.vue
浏览文件 @
5ce77769
...
@@ -21,7 +21,7 @@ limitations under the License. -->
...
@@ -21,7 +21,7 @@ limitations under the License. -->
<span>
{{
title
}}
</span>
<span>
{{
title
}}
</span>
<span
v-show=
"unit"
>
(
{{
unit
}}
)
</span>
<span
v-show=
"unit"
>
(
{{
unit
}}
)
</span>
<span
v-show=
"status === 'UNKNOWN'"
class=
"item-status"
>
(
{{
$t
(
'
unknownMetrics
'
)
}}
)
</span>
<span
v-show=
"status === 'UNKNOWN'"
class=
"item-status"
>
(
{{
$t
(
'
unknownMetrics
'
)
}}
)
</span>
<span
v-show=
"!rocketGlobal.edit"
@
click=
"editComponentConfig"
>
<span
v-show=
"!rocketGlobal.edit
&& !pageTypes.includes(type)
"
@
click=
"editComponentConfig"
>
<svg
class=
"icon cp r"
>
<svg
class=
"icon cp r"
>
<use
xlink:href=
"#lock"
></use>
<use
xlink:href=
"#lock"
></use>
</svg>
</svg>
...
@@ -85,6 +85,7 @@ limitations under the License. -->
...
@@ -85,6 +85,7 @@ limitations under the License. -->
@
Prop
()
private
index
!
:
number
;
@
Prop
()
private
index
!
:
number
;
@
Prop
()
private
type
!
:
string
;
@
Prop
()
private
type
!
:
string
;
private
pageTypes
=
[
'
TOPOLOGY_ENDPOINT
'
,
'
TOPOLOGY_INSTANCE
'
];
private
dialogConfigVisible
=
false
;
private
dialogConfigVisible
=
false
;
private
status
=
'
UNKNOWN
'
;
private
status
=
'
UNKNOWN
'
;
private
title
=
'
Title
'
;
private
title
=
'
Title
'
;
...
@@ -101,8 +102,8 @@ limitations under the License. -->
...
@@ -101,8 +102,8 @@ limitations under the License. -->
this
.
height
=
this
.
item
.
height
;
this
.
height
=
this
.
item
.
height
;
this
.
unit
=
this
.
item
.
unit
;
this
.
unit
=
this
.
item
.
unit
;
this
.
itemConfig
=
this
.
item
;
this
.
itemConfig
=
this
.
item
;
const
pageTypes
=
[
'
TOPOLOGY_ENDPOINT
'
,
'
TOPOLOGY_INSTANCE
'
];
if
(
pageTypes
.
includes
(
this
.
type
))
{
if
(
this
.
pageTypes
.
includes
(
this
.
type
))
{
return
;
return
;
}
}
this
.
chartRender
();
this
.
chartRender
();
...
...
src/views/containers/dashboard.vue
浏览文件 @
5ce77769
...
@@ -24,7 +24,8 @@ limitations under the License. -->
...
@@ -24,7 +24,8 @@ limitations under the License. -->
<ToolNav
:rocketGlobal=
"rocketGlobal"
:rocketComps=
"rocketComps"
/>
<ToolNav
:rocketGlobal=
"rocketGlobal"
:rocketComps=
"rocketComps"
/>
<div
class=
"dashboard-container clear"
>
<div
class=
"dashboard-container clear"
>
<DashboardItem
<DashboardItem
v-for=
"(i, index) in rocketComps.tree[this.rocketComps.group].children[this.rocketComps.current].children"
v-for=
"(i, index) in rocketComps.tree[rocketComps.group].children[rocketComps.current] &&
rocketComps.tree[rocketComps.group].children[rocketComps.current].children"
:key=
"index + i.title + i.width"
:key=
"index + i.title + i.width"
:index=
"index"
:index=
"index"
:rocketGlobal=
"rocketGlobal"
:rocketGlobal=
"rocketGlobal"
...
@@ -66,6 +67,7 @@ limitations under the License. -->
...
@@ -66,6 +67,7 @@ limitations under the License. -->
@
Mutation
(
'
SET_CURRENT_COMPS
'
)
private
SET_CURRENT_COMPS
:
any
;
@
Mutation
(
'
SET_CURRENT_COMPS
'
)
private
SET_CURRENT_COMPS
:
any
;
@
Mutation
(
'
ADD_COMP
'
)
private
ADD_COMP
:
any
;
@
Mutation
(
'
ADD_COMP
'
)
private
ADD_COMP
:
any
;
@
Mutation
(
'
SET_ALL_TEMPLATES
'
)
private
SET_ALL_TEMPLATES
:
any
;
@
Mutation
(
'
SET_ALL_TEMPLATES
'
)
private
SET_ALL_TEMPLATES
:
any
;
@
Mutation
(
'
SET_EDIT
'
)
private
SET_EDIT
:
any
;
private
isRouterAlive
:
boolean
=
true
;
private
isRouterAlive
:
boolean
=
true
;
public
reload
():
void
{
public
reload
():
void
{
...
@@ -118,6 +120,9 @@ limitations under the License. -->
...
@@ -118,6 +120,9 @@ limitations under the License. -->
);
);
this
.
handleOption
();
this
.
handleOption
();
}
}
private
beforeDestroy
()
{
this
.
SET_EDIT
(
false
);
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录