Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
SatelliteDigital
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
nijiawen
SatelliteDigital
Commits
18c3bacb
提交
18c3bacb
authored
4月 03, 2026
作者:
liujiaxing
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
图标曲线配置完成
上级
9484505a
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
41 行增加
和
24 行删除
+41
-24
instantCurve.vue
src/pages/all/components/instant/instantCurve.vue
+10
-15
screenConfigeDialog.vue
src/pages/header/component/screenConfigeDialog.vue
+27
-5
requestSocekt.js
src/utils/requestSocekt.js
+0
-0
requestSocektTime.js
src/utils/requestSocektTime.js
+2
-2
subSystemRequestSocket.js
src/utils/subSystemRequestSocket.js
+2
-2
没有找到文件。
src/pages/all/components/instant/instantCurve.vue
浏览文件 @
18c3bacb
...
@@ -62,13 +62,13 @@ const dataX = computed(() => {
...
@@ -62,13 +62,13 @@ const dataX = computed(() => {
if
(
props
.
lineArray
)
{
//代表x轴有多个
if
(
props
.
lineArray
)
{
//代表x轴有多个
let
arrx
=
[]
let
arrx
=
[]
props
.
data
.
forEach
(
it
=>
{
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
))
:
[
'Mon'
,
'Tue'
,
'Wed'
,
'Thu'
,
'Fri'
,
'Sat'
,
'Sun'
])
})
})
// console.log(arrx, 'x轴信息');
// console.log(arrx, 'x轴信息');
return
arrx
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'];
// return props.data.length > 0 ? props.data.map(item => item.x.split(' ')[1].slice(0, 8)) : ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'];
}
else
{
}
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
))
:
[
'Mon'
,
'Tue'
,
'Wed'
,
'Thu'
,
'Fri'
,
'Sat'
,
'Sun'
];
}
}
})
})
...
@@ -274,22 +274,23 @@ function initChart() {
...
@@ -274,22 +274,23 @@ function initChart() {
fontSize
:
10
,
fontSize
:
10
,
interval
:
'auto'
,
// 或直接不写
interval
:
'auto'
,
// 或直接不写
hideOverlap
:
true
,
// 防重叠(很关键)
hideOverlap
:
true
,
// 防重叠(很关键)
formatter
:
function
(
value
,
index
)
{
formatter
:
function
(
value
)
{
console
.
log
(
value
,
'判断依据'
,
index
);
const
date
=
new
Date
(
value
);
console
.
log
(
value
,
'判断依据'
,
`
${
date
.
getFullYear
()}
-
${
date
.
getMonth
()
+
1
}
-
${
date
.
getDate
()}
${
date
.
getHours
()}
:
${
date
.
getMinutes
()}
:
${
date
.
getSeconds
()}
`
);
if
(
value
.
toString
().
includes
(
':'
))
{
if
(
value
.
toString
().
includes
(
':'
))
{
const
date
=
new
Date
(
value
);
const
date
=
new
Date
(
value
);
const
minutes
=
date
.
getMinutes
();
const
minutes
=
date
.
getMinutes
();
if
(
minutes
===
0
||
minutes
===
30
)
{
if
(
minutes
===
0
||
minutes
===
30
)
{
console
.
log
(
value
,
'判断分钟'
);
//
console.log(value, '判断分钟');
return
value
return
value
}
}
}
else
if
(
!
isNaN
(
Number
(
value
)))
{
}
else
if
(
!
isNaN
(
Number
(
value
)))
{
const
date
=
new
Date
(
value
);
const
date
=
new
Date
(
value
);
const
minutes
=
date
.
getMinutes
();
const
minutes
=
date
.
getMinutes
();
if
(
minutes
===
0
||
minutes
===
30
)
{
if
(
minutes
===
0
||
minutes
===
30
)
{
console
.
log
(
date
,
'判断分钟11'
,
value
);
// console.log(date, '判断分钟11', value);
return
timestampToHMS
(
value
)
return
timestampToHMS
(
value
)
}
}
}
}
...
@@ -378,18 +379,12 @@ function initChart() {
...
@@ -378,18 +379,12 @@ function initChart() {
if
(
props
.
lineArray
)
{
if
(
props
.
lineArray
)
{
delete
option
.
xAxis
.
data
delete
option
.
xAxis
.
data
}
}
// console.log(option, '配置', myChart, '住新冠');
// console.log(JSON.stringify(option), '数据配置');
console
.
log
(
option
,
'数据配置'
);
// console.log(series1Data.value, '对象');
// if (timesset) {
// clearTimeout(timesset)
// }
// timesset = setTimeout(() => {
clearTimeout
(
timesset
)
clearTimeout
(
timesset
)
myChart
.
setOption
(
option
);
myChart
.
setOption
(
option
);
resizeChart
();
resizeChart
();
window
.
addEventListener
(
'resize'
,
resizeChart
);
window
.
addEventListener
(
'resize'
,
resizeChart
);
// }, 1000);
}
}
//转换颜色函数
//转换颜色函数
function
hexToRgba
(
hex
,
alpha
)
{
function
hexToRgba
(
hex
,
alpha
)
{
...
...
src/pages/header/component/screenConfigeDialog.vue
浏览文件 @
18c3bacb
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
<div
class=
"selector-item"
>
<div
class=
"selector-item"
>
<label
class=
"selector-label"
>
{{
keliSelector
.
label
}}
</label>
<label
class=
"selector-label"
>
{{
keliSelector
.
label
}}
</label>
<div
class=
"custom-select"
>
<div
class=
"custom-select"
>
<!-- 粒度 -->
<!--
地面
粒度 -->
<el-select
v-model=
"keliSelector.value"
placeholder=
""
style=
"width: 100%;"
@
change=
"keliOnChange"
>
<el-select
v-model=
"keliSelector.value"
placeholder=
""
style=
"width: 100%;"
@
change=
"keliOnChange"
>
<el-option
v-for=
"item in keliSelector.options"
:key=
"item.value"
:label=
"item.label"
<el-option
v-for=
"item in keliSelector.options"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
/>
:value=
"item.value"
/>
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
<div
class=
"selector-item"
>
<div
class=
"selector-item"
>
<label
class=
"selector-label"
>
模板列表
</label>
<label
class=
"selector-label"
>
模板列表
</label>
<div
class=
"custom-select"
>
<div
class=
"custom-select"
>
<!--
粒度
-->
<!--
模版列表下拉框
-->
<el-select
v-model=
"templateSelector"
placeholder=
"请选择模板列表"
@
change=
"templateOnChange"
<el-select
v-model=
"templateSelector"
placeholder=
"请选择模板列表"
@
change=
"templateOnChange"
style=
"width: 100%;"
>
style=
"width: 100%;"
>
<el-option
v-for=
"item in templateSelectorOptions"
:key=
"item.value"
:label=
"item.label"
<el-option
v-for=
"item in templateSelectorOptions"
:key=
"item.value"
:label=
"item.label"
...
@@ -315,7 +315,16 @@ const handleAdd = () => {
...
@@ -315,7 +315,16 @@ const handleAdd = () => {
onMounted
(
async
()
=>
{
onMounted
(
async
()
=>
{
await
handleConfigData
()
await
handleConfigData
()
await
handleList
();
await
handleList
();
await
getPanelCurveData
()
await
getPanelCurveData
(
{
granularity
:
keliSelector
.
value
.
value
,
//类型
// startTime: '2026-01-03 23:59:59',
// endTime: '2026-01-04 23:59:59',
regionName
:
keliSelector
.
value
.
value
==
'region'
?
childrenSelector
.
value
.
value
:
null
,
//区域名称
signalSiteCode
:
keliSelector
.
value
.
value
==
'station'
?
childrenSelector
.
value
.
value
:
null
,
//信关站编码
gridCodes
:
keliSelector
.
value
.
value
==
'grid'
?
childrenSelector
.
value
.
value
:
null
,
//格网编码
}
)
// await handleConfigData()
// await handleConfigData()
// await getCapacityAndTrafficData()
// await getCapacityAndTrafficData()
...
@@ -398,7 +407,7 @@ const getPanelCurveData = async (data) => {
...
@@ -398,7 +407,7 @@ const getPanelCurveData = async (data) => {
}
}
}
}
// 下拉框选中模版时自动回显对应模版信息接口
// 下拉框选中模版时自动回显对应模版信息接口
const
getPaneldetailApiFn
=
async
()
=>
{
const
getPaneldetailApiFn
=
async
(
data
)
=>
{
const
res
=
await
getPaneldetailApi
(
data
)
const
res
=
await
getPaneldetailApi
(
data
)
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
console
.
log
(
'所有曲线数据'
,
res
.
data
)
console
.
log
(
'所有曲线数据'
,
res
.
data
)
...
@@ -584,14 +593,27 @@ const handleList = async () => {
...
@@ -584,14 +593,27 @@ const handleList = async () => {
}
}
}
}
const
templateOnChange
=
(
val
)
=>
{
const
templateOnChange
=
async
(
val
)
=>
{
const
selectedTemplate
=
templateCaseList
.
value
.
find
(
item
=>
item
.
templateId
===
val
)
const
selectedTemplate
=
templateCaseList
.
value
.
find
(
item
=>
item
.
templateId
===
val
)
currentSettingConfig
.
value
=
selectedTemplate
currentSettingConfig
.
value
=
selectedTemplate
console
.
log
(
'切换模版'
,
templateSelectorOptions
);
resetData
()
// 切换模板时重置数据,避免数据混乱
resetData
()
// 切换模板时重置数据,避免数据混乱
// console.log('selectedTemplate', selectedTemplate)
// console.log('selectedTemplate', selectedTemplate)
// availabilityCurveType
// availabilityCurveType
// capacityCurveType
// capacityCurveType
// latencyCurveType
// latencyCurveType
await
getPaneldetailApiFn
(
{
granularity
:
keliSelector
.
value
.
value
,
//类型
selectedTemplate
:
templateSelector
.
value
,
//模版编码
// startTime: '2026-01-03 23:59:59',
// endTime: '2026-01-04 23:59:59',
regionName
:
keliSelector
.
value
.
value
==
'region'
?
childrenSelector
.
value
.
value
:
null
,
//区域名称
signalSiteCode
:
keliSelector
.
value
.
value
==
'station'
?
childrenSelector
.
value
.
value
:
null
,
//信关站编码
gridCodes
:
keliSelector
.
value
.
value
==
'grid'
?
childrenSelector
.
value
.
value
:
null
,
//格网编码
}
)
calculateConfig
();
calculateConfig
();
}
}
...
...
src/utils/requestSocekt.js
浏览文件 @
18c3bacb
src/utils/requestSocektTime.js
浏览文件 @
18c3bacb
import
useAppStore
from
'@/store/module/app.js'
;
import
useAppStore
from
'@/store/module/app.js'
;
//
const apiUrl = `ws://121.229.107.155:19021/time`; //线上
const
apiUrl
=
`ws://121.229.107.155:19021/time`
;
//线上
const
apiUrl
=
`ws://127.0.0.1:19021/time`
;
//线上
// const apiUrl = `ws://127.0.0.1:19021/time`; //本地
let
Timewss
=
null
;
let
Timewss
=
null
;
let
timer
=
null
;
let
timer
=
null
;
const
appStore
=
useAppStore
();
const
appStore
=
useAppStore
();
...
...
src/utils/subSystemRequestSocket.js
浏览文件 @
18c3bacb
...
@@ -9,8 +9,8 @@
...
@@ -9,8 +9,8 @@
import
ueHeartbeatInterval
from
'@/store/module/app.js'
import
ueHeartbeatInterval
from
'@/store/module/app.js'
import
useAppStore
from
'@/store/module/app.js'
import
useAppStore
from
'@/store/module/app.js'
const
useAppStoreInstance
=
useAppStore
()
const
useAppStoreInstance
=
useAppStore
()
//
const apiUrl = `ws://121.229.107.155:19021/systemData`
const
apiUrl
=
`ws://121.229.107.155:19021/systemData`
const
apiUrl
=
`ws://127.0.0.1:19021/systemData`
//本地地址
//
const apiUrl = `ws://127.0.0.1:19021/systemData`//本地地址
const
SubWss
=
new
WebSocket
(
apiUrl
);
const
SubWss
=
new
WebSocket
(
apiUrl
);
useAppStoreInstance
.
setSubsystemSocket
(
SubWss
)
useAppStoreInstance
.
setSubsystemSocket
(
SubWss
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论