Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
SatelliteDigital
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
nijiawen
SatelliteDigital
Commits
67d36951
提交
67d36951
authored
4月 08, 2026
作者:
liujiaxing
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
图表模版数据回显问题
上级
d0b139b8
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
20 行增加
和
12 行删除
+20
-12
index.vue
src/pages/all/components/instant/index.vue
+8
-3
instantCurve.vue
src/pages/all/components/instant/instantCurve.vue
+8
-4
screenConfigeDialog.vue
src/pages/header/component/screenConfigeDialog.vue
+4
-5
没有找到文件。
src/pages/all/components/instant/index.vue
浏览文件 @
67d36951
...
...
@@ -55,18 +55,19 @@
<!-- 核心数据指标 判断一个图表中是否有多个曲线-->
<div
class=
"container"
v-if=
"!props.lineArray"
>
<div
class=
"flex-box flex-left"
>
<!--
<div>
{{
props
.
data
[
0
]
}}
-----
</div>
-->
<instantCurve
:idName=
"`instant-left-$
{props.allIdName}`" :data="props.data[0]"
:legendName="props.legendName[0]" :propsDate="componentProps">
</instantCurve>
:legendName="props.legendName[0]" :propsDate="componentProps"
:istemplate="props.istemplate"
>
</instantCurve>
</div>
<div
class=
"flex-box flex-right"
>
<instantCurve
:idName=
"`instant-right-$
{props.allIdName}`" :data="props.data[1]" color="#6ffcba"
:legendName="props.legendName[1]" :isShowDetail="true">
</instantCurve>
:legendName="props.legendName[1]" :isShowDetail="true"
:istemplate="props.istemplate"
>
</instantCurve>
</div>
</div>
<div
class=
"container"
v-if=
"props.lineArray"
>
<div
class=
"flex-box"
>
<instantCurve
:lineArray=
"props.lineArray"
:data=
"props.data"
:legendName=
"props.legendName"
:propsDate=
"componentProps"
:color=
"colorList"
></instantCurve>
:propsDate=
"componentProps"
:color=
"colorList"
:istemplate=
"props.istemplate"
></instantCurve>
</div>
</div>
<el-dialog
v-model=
"bigStatus"
:modal=
'true'
:show-close=
"true"
modal-class=
"dialogModel"
:modal-penetrable=
'true'
...
...
@@ -150,6 +151,10 @@ const props = defineProps({
type
:
Boolean
,
default
:
false
},
istemplate
:
{
//判断是不是配置曲线还是右边显示曲线
type
:
Boolean
,
default
:
false
}
});
const
colorList
=
[
"#6ffcba"
,
"#5470c6"
]
//同一个图标中不同曲线的颜色设置
...
...
src/pages/all/components/instant/instantCurve.vue
浏览文件 @
67d36951
...
...
@@ -52,6 +52,10 @@ const props = defineProps({
lineArray
:
{
type
:
Boolean
,
default
:
false
},
istemplate
:
{
//判断是配置模版还是右侧正常显示
type
:
Boolean
,
default
:
false
}
})
watch
(()
=>
props
.
data
,
(
newVal
)
=>
{
...
...
@@ -62,13 +66,13 @@ const dataX = computed(() => {
if
(
props
.
lineArray
)
{
//代表x轴有多个
let
arrx
=
[]
props
.
data
.
forEach
(
it
=>
{
arrx
.
push
(
it
.
length
>
0
?
it
.
map
(
item
=>
item
.
x
.
split
(
' '
)[
1
]?.
slice
(
0
,
8
))
:
[
'Mon'
,
'Tue'
,
'Wed'
,
'Thu'
,
'Fri'
,
'Sat'
,
'Sun'
])
arrx
.
push
(
it
.
length
>
0
?
it
.
map
(
item
=>
item
.
x
.
split
(
' '
)[
1
]?.
slice
(
0
,
8
))
:
props
.
istemplate
?
[
'Mon'
,
'Tue'
,
'Wed'
,
'Thu'
,
'Fri'
,
'Sat'
,
'Sun'
]
:
[
])
})
// console.log(arrx, 'x轴信息');
return
arrx
// return props.data.length > 0 ? props.data.map(item => item.x.split(' ')[1].slice(0, 8)) : ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'];
}
else
{
return
props
.
data
.
length
>
0
?
props
.
data
.
map
(
item
=>
item
.
x
.
split
(
' '
)[
1
]?.
slice
(
0
,
8
))
:
[
'Mon'
,
'Tue'
,
'Wed'
,
'Thu'
,
'Fri'
,
'Sat'
,
'Sun'
];
return
props
.
data
.
length
>
0
?
props
.
data
.
map
(
item
=>
item
.
x
.
split
(
' '
)[
1
]?.
slice
(
0
,
8
))
:
props
.
istemplate
?
[
'Mon'
,
'Tue'
,
'Wed'
,
'Thu'
,
'Fri'
,
'Sat'
,
'Sun'
]
:
[
];
}
})
...
...
@@ -82,7 +86,7 @@ const dataY = computed(() => {
item
.
y
=
item
.
y
.
dropRate
})
}
arry
.
push
(
it
.
length
>
0
?
it
.
map
(
item
=>
item
.
y
)
:
[
12
,
13
,
5
,
103
,
19
,
3
,
18
])
arry
.
push
(
it
.
length
>
0
?
it
.
map
(
item
=>
item
.
y
)
:
props
.
istemplate
?
[
12
,
13
,
5
,
103
,
19
,
3
,
18
]
:
[
])
})
return
arry
}
else
{
...
...
@@ -91,7 +95,7 @@ const dataY = computed(() => {
item
.
y
=
item
.
y
.
dropRate
})
}
return
props
.
data
.
length
>
0
?
props
.
data
.
map
(
item
=>
item
.
y
)
:
[
12
,
13
,
5
,
103
,
19
,
3
,
18
]
return
props
.
data
.
length
>
0
?
props
.
data
.
map
(
item
=>
item
.
y
)
:
props
.
istemplate
?
[
12
,
13
,
5
,
103
,
19
,
3
,
18
]
:
[
]
}
})
...
...
src/pages/header/component/screenConfigeDialog.vue
浏览文件 @
67d36951
...
...
@@ -84,20 +84,20 @@
<!--
<KeepAlive>
-->
<component
:is=
"currentComponent1"
:data=
"[capacityData, trafficData]"
:title=
"titles[0]"
slogan=
"容量/流量"
:legendName=
"['链路层容量', '用户实际流量']"
:lineArray=
"true"
>
:legendName=
"['链路层容量', '用户实际流量']"
:lineArray=
"true"
:istemplate=
"true"
>
</component>
<!--
</KeepAlive>
-->
<!--
<KeepAlive>
-->
<component
:is=
"currentComponent2"
:data=
"[availabilityData, actualAvailabilityData]"
:title=
"titles[1]"
slogan=
"可用性"
:legendName=
"['规划可用性', '实际可用性']"
:lineArray=
"true"
>
slogan=
"可用性"
:legendName=
"['规划可用性', '实际可用性']"
:lineArray=
"true"
:istemplate=
"true"
>
</component>
<!--
</KeepAlive>
-->
<!--
<KeepAlive>
-->
<component
:is=
"currentComponent3"
:data=
"[delayData, lossRateData]"
:title=
"titles[2]"
slogan=
"网络时延/丢包"
:legendName=
"['搜星时延', '丢包率']"
:lineArray=
"false"
>
:legendName=
"['搜星时延', '丢包率']"
:lineArray=
"false"
:istemplate=
"true"
>
</component>
<!--
</KeepAlive>
-->
...
...
@@ -160,9 +160,8 @@ import {
}
from
'@/api/Zodiac'
;
import
useAppStore
from
'@/store/module/app'
import
{
ElMessage
,
ElMessageBox
}
from
'element-plus'
import
{
component
}
from
'vxe-pc-ui'
;
// istemplate---弹框配置模版时要有模版数据,正常右边显示时没数据时不显示模版数据
let
currentComponent1
=
ref
(
markRaw
(
hotMapComponent
))
//容量流量 热力图
let
currentComponent2
=
ref
(
markRaw
(
cdf
))
//可用性 CDF曲线
let
currentComponent3
=
ref
(
markRaw
(
instant
))
//let 瞬时值曲线组件 //前面那个人写的好乱更屎一样,我服了,在这里偷偷吐槽一下嘿嘿
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论