Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
SatelliteDigital
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
nijiawen
SatelliteDigital
Commits
8b667ecf
提交
8b667ecf
authored
3月 06, 2026
作者:
zhuyongshuai
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix:点击时间段搜索没用的问题
上级
aeaa3e15
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
40 行增加
和
38 行删除
+40
-38
index.vue
src/pages/lefts/index.vue
+40
-38
没有找到文件。
src/pages/lefts/index.vue
浏览文件 @
8b667ecf
...
@@ -146,7 +146,8 @@
...
@@ -146,7 +146,8 @@
<div
v-if=
"scope.row.station.length !== 0"
>
<div
v-if=
"scope.row.station.length !== 0"
>
<div
v-for=
"(items, index) in scope.row.station"
:key=
"index"
>
<div
v-for=
"(items, index) in scope.row.station"
:key=
"index"
>
<div
v-if=
"isTimeInRange(useAppStoreInstance.globalTimeLineEndSelectTime, items.startTime, items.endTime)"
>
<div
v-if=
"isTimeInRange(useAppStoreInstance.globalTimeLineEndSelectTime, items.startTime, items.endTime)"
>
{{
items
.
siteName
}}
{{
items
.
siteName
}}
</div>
</div>
<div
v-else
>
-
</div>
<div
v-else
>
-
</div>
...
@@ -269,16 +270,8 @@
...
@@ -269,16 +270,8 @@
</div>
</div>
<el-dialog
v-model=
"errorDialogVisible"
<el-dialog
v-model=
"errorDialogVisible"
:show-close=
"false"
:modal=
"false"
width=
"300"
hight=
"50"
:show-close=
"false"
:destroy-on-close=
"true"
:close-on-click-modal=
"true"
style=
"background: rgba(0, 0, 0, 0);padding: 0;margin: 0;"
>
:modal=
"false"
width=
"300"
hight=
"50"
:destroy-on-close=
"true"
:close-on-click-modal=
"true"
style=
"background: rgba(0, 0, 0, 0);padding: 0;margin: 0;"
>
<errorDialog
:errorDeviceList=
"errorDeviceList"
:satlTitle=
"satlTitle"
:baseDeviceList=
"baseDeviceList"
<errorDialog
:errorDeviceList=
"errorDeviceList"
:satlTitle=
"satlTitle"
:baseDeviceList=
"baseDeviceList"
@
errorDialoghandleClose=
"errorDialoghandleClose"
></errorDialog>
@
errorDialoghandleClose=
"errorDialoghandleClose"
></errorDialog>
...
@@ -297,6 +290,7 @@ import wss from '@/utils/requestSocekt.js'
...
@@ -297,6 +290,7 @@ import wss from '@/utils/requestSocekt.js'
import
useAppStore
from
'@/store/module/app'
import
useAppStore
from
'@/store/module/app'
import
local
from
'@/utils/local.js'
import
local
from
'@/utils/local.js'
import
{
ElMessage
}
from
'element-plus'
;
import
{
ElMessage
}
from
'element-plus'
;
import
{
da
}
from
'element-plus/es/locales.mjs'
;
const
useAppStoreInstance
=
useAppStore
();
const
useAppStoreInstance
=
useAppStore
();
// 激活的标签页
// 激活的标签页
...
@@ -321,6 +315,9 @@ const globalIntervalTime = ref('')
...
@@ -321,6 +315,9 @@ const globalIntervalTime = ref('')
const
globalIntervalTimeTemp
=
ref
(
''
)
const
globalIntervalTimeTemp
=
ref
(
''
)
const
globaleAutoPlay
=
ref
(
true
)
const
globaleAutoPlay
=
ref
(
true
)
const
carouselKey
=
ref
(
0
)
const
carouselKey
=
ref
(
0
)
watch
(
globalIntervalTime
,
(
newValue
,
oldValue
)
=>
{
watch
(
globalIntervalTime
,
(
newValue
,
oldValue
)
=>
{
// //console.log("globalIntervalTime发生变化了");
// //console.log("globalIntervalTime发生变化了");
...
@@ -414,7 +411,7 @@ const satelliteData = ref();
...
@@ -414,7 +411,7 @@ const satelliteData = ref();
const
searchSateValue
=
ref
(
''
)
const
searchSateValue
=
ref
(
''
)
function
searchSatelliteList
()
{
function
searchSatelliteList
()
{
//console.log("cao cao2
", primitiveSatelliteData.value);
console
.
log
(
"拿到的数据
"
,
primitiveSatelliteData
.
value
);
const
filteredData
=
primitiveSatelliteData
.
value
.
filter
(
item
=>
const
filteredData
=
primitiveSatelliteData
.
value
.
filter
(
item
=>
item
.
name
.
toLowerCase
().
includes
(
searchSateValue
.
value
.
toLowerCase
())
||
item
.
name
.
toLowerCase
().
includes
(
searchSateValue
.
value
.
toLowerCase
())
||
...
@@ -422,7 +419,7 @@ function searchSatelliteList() {
...
@@ -422,7 +419,7 @@ function searchSatelliteList() {
item
.
manufacturer
.
toLowerCase
().
includes
(
searchSateValue
.
value
.
toLowerCase
())
||
item
.
manufacturer
.
toLowerCase
().
includes
(
searchSateValue
.
value
.
toLowerCase
())
||
item
.
status
.
toLowerCase
().
includes
(
searchSateValue
.
value
.
toLowerCase
())
item
.
status
.
toLowerCase
().
includes
(
searchSateValue
.
value
.
toLowerCase
())
);
);
// //
console.log(filteredData);
console
.
log
(
filteredData
);
satelliteData
.
value
=
filteredData
satelliteData
.
value
=
filteredData
}
}
...
@@ -491,8 +488,8 @@ function tableHandleRowClickFn(row, column, event) {
...
@@ -491,8 +488,8 @@ function tableHandleRowClickFn(row, column, event) {
// })))
// })))
if
(
window
.
ue5
)
{
if
(
window
.
ue5
)
{
window
.
ue5
(
"callBackAllDialogFn"
,
String
(
JSON
.
stringify
({
window
.
ue5
(
"callBackAllDialogFn"
,
String
(
JSON
.
stringify
({
type
:
"DeviceFaultDialog"
,
type
:
"DeviceFaultDialog"
,
status
:
"open"
status
:
"open"
})));
})));
}
}
}
}
...
@@ -503,8 +500,8 @@ function errorDialoghandleClose() {
...
@@ -503,8 +500,8 @@ function errorDialoghandleClose() {
errorDialogVisible
.
value
=
false
errorDialogVisible
.
value
=
false
if
(
window
.
ue5
)
{
if
(
window
.
ue5
)
{
window
.
ue5
(
"callBackAllDialogFn"
,
String
(
JSON
.
stringify
({
window
.
ue5
(
"callBackAllDialogFn"
,
String
(
JSON
.
stringify
({
type
:
"DeviceFaultDialog"
,
type
:
"DeviceFaultDialog"
,
status
:
"close"
status
:
"close"
})));
})));
}
}
}
}
...
@@ -562,11 +559,12 @@ const transformSatelliteData = (data) => {
...
@@ -562,11 +559,12 @@ const transformSatelliteData = (data) => {
const
wssTransformSatelliteData
=
(
data
)
=>
{
const
wssTransformSatelliteData
=
(
data
)
=>
{
// console.log("wssTransformSatelliteData:", data)
// 检查 data 是否为对象且不为 null
// 检查 data 是否为对象且不为 null
if
(
typeof
data
===
'object'
&&
data
!==
null
&&
!
Array
.
isArray
(
data
))
{
if
(
typeof
data
===
'object'
&&
data
!==
null
&&
!
Array
.
isArray
(
data
))
{
return
[{
return
[{
name
:
data
?.
satelliteName
||
''
,
name
:
data
?.
satelliteName
||
''
,
station
:
data
?.
siteName
===
null
?
'-'
:
data
?.
siteName
,
station
:
(
data
?.
siteName
===
null
||
data
?.
siteName
.
length
===
0
)
?
'-'
:
data
?.
siteName
,
manufacturer
:
data
?.
manufacturer
||
''
,
manufacturer
:
data
?.
manufacturer
||
''
,
status
:
data
?.
satelliteStatus
||
'正常'
,
status
:
data
?.
satelliteStatus
||
'正常'
,
statusClass
:
satelliteStatusMap
[
data
?.
satelliteStatus
||
'正常'
]
||
'normal'
,
statusClass
:
satelliteStatusMap
[
data
?.
satelliteStatus
||
'正常'
]
||
'normal'
,
...
@@ -576,7 +574,7 @@ const wssTransformSatelliteData = (data) => {
...
@@ -576,7 +574,7 @@ const wssTransformSatelliteData = (data) => {
// 如果意外传入了数组,仍然处理数组
// 如果意外传入了数组,仍然处理数组
return
data
.
map
(
item
=>
({
return
data
.
map
(
item
=>
({
name
:
item
?.
satelliteName
||
''
,
name
:
item
?.
satelliteName
||
''
,
station
:
item
?.
siteName
===
null
?
'-'
:
item
?.
siteName
,
station
:
(
item
?.
siteName
===
null
||
item
?.
siteName
.
length
===
0
)
?
'-'
:
item
?.
siteName
,
manufacturer
:
item
?.
manufacturer
||
''
,
manufacturer
:
item
?.
manufacturer
||
''
,
status
:
item
?.
satelliteStatus
||
'正常'
,
status
:
item
?.
satelliteStatus
||
'正常'
,
statusClass
:
satelliteStatusMap
[
item
?.
satelliteStatus
||
'正常'
]
||
'normal'
,
statusClass
:
satelliteStatusMap
[
item
?.
satelliteStatus
||
'正常'
]
||
'normal'
,
...
@@ -730,14 +728,14 @@ const transformGroundSatelliteData = (data) => {
...
@@ -730,14 +728,14 @@ const transformGroundSatelliteData = (data) => {
return
[
return
[
{
label
:
'地面站数'
,
value
:
data
?.
groundStationNum
===
null
?
0
:
data
?.
groundStationNum
,
CurrentURL
:
new
URL
(
'../../assets/images/leftGroundIcon/NumberOfGroundStations.png'
,
import
.
meta
.
url
).
href
},
{
label
:
'地面站数'
,
value
:
data
?.
groundStationNum
===
null
?
0
:
data
?.
groundStationNum
,
CurrentURL
:
new
URL
(
'../../assets/images/leftGroundIcon/NumberOfGroundStations.png'
,
import
.
meta
.
url
).
href
},
{
label
:
'开通格网数'
,
value
:
data
?.
openGridNum
===
null
?
0
:
data
?.
openGridNum
,
CurrentURL
:
new
URL
(
'../../assets/images/leftGroundIcon/ActivateGridNumber.png'
,
import
.
meta
.
url
).
href
},
{
label
:
'开通格网数'
,
value
:
data
?.
openGridNum
===
null
?
0
:
data
?.
openGridNum
,
CurrentURL
:
new
URL
(
'../../assets/images/leftGroundIcon/ActivateGridNumber.png'
,
import
.
meta
.
url
).
href
},
{
label
:
'弧段数量'
,
value
:
data
?.
arcNum
===
null
?
0
:
data
?.
arcNum
,
CurrentURL
:
new
URL
(
'../../assets/images/leftGroundIcon/NumberOfArcSegments.png'
,
import
.
meta
.
url
).
href
},
{
label
:
'弧段数量'
,
value
:
data
?.
arcNum
===
null
?
0
:
data
?.
arcNum
,
CurrentURL
:
new
URL
(
'../../assets/images/leftGroundIcon/NumberOfArcSegments.png'
,
import
.
meta
.
url
).
href
},
{
label
:
'执行情况-弧段'
,
value
:
data
?.
arcExecuteNum
===
null
?
0
:
data
?.
arcExecuteNum
,
CurrentURL
:
new
URL
(
'../../assets/images/leftGroundIcon/ExecutionStatusArcSegment.png'
,
import
.
meta
.
url
).
href
},
{
label
:
'执行情况-弧段'
,
value
:
data
?.
arcExecuteNum
===
null
?
0
:
data
?.
arcExecuteNum
,
CurrentURL
:
new
URL
(
'../../assets/images/leftGroundIcon/ExecutionStatusArcSegment.png'
,
import
.
meta
.
url
).
href
},
{
label
:
'上注完成情况(星)'
,
value
:
data
?.
arcCompleteNum
===
null
||
data
?.
arcCompleteNum
===
undefined
?
0
:
data
?.
arcCompleteNum
,
CurrentURL
:
new
URL
(
'../../assets/images/leftGroundIcon/CompletionStatusOfTheAboveNote.png'
,
import
.
meta
.
url
).
href
},
{
label
:
'上注完成情况(星)'
,
value
:
data
?.
arcCompleteNum
===
null
||
data
?.
arcCompleteNum
===
undefined
?
0
:
data
?.
arcCompleteNum
,
CurrentURL
:
new
URL
(
'../../assets/images/leftGroundIcon/CompletionStatusOfTheAboveNote.png'
,
import
.
meta
.
url
).
href
},
{
label
:
'上注失败星数(星)'
,
value
:
data
?.
arcFaultNum
===
null
||
data
?.
arcFaultNum
===
undefined
?
0
:
data
?.
arcFaultNum
,
CurrentURL
:
new
URL
(
'../../assets/images/leftGroundIcon/NumberOfStarsFailedToBet.png'
,
import
.
meta
.
url
).
href
},
{
label
:
'上注失败星数(星)'
,
value
:
data
?.
arcFaultNum
===
null
||
data
?.
arcFaultNum
===
undefined
?
0
:
data
?.
arcFaultNum
,
CurrentURL
:
new
URL
(
'../../assets/images/leftGroundIcon/NumberOfStarsFailedToBet.png'
,
import
.
meta
.
url
).
href
},
{
label
:
'设备故障'
,
value
:
data
?.
faultDeviceNum
===
null
?
0
:
data
?.
faultDeviceNum
,
CurrentURL
:
new
URL
(
'../../assets/images/leftGroundIcon/NumberOfFaultyDevices.png'
,
import
.
meta
.
url
).
href
},
{
label
:
'设备故障'
,
value
:
data
?.
faultDeviceNum
===
null
?
0
:
data
?.
faultDeviceNum
,
CurrentURL
:
new
URL
(
'../../assets/images/leftGroundIcon/NumberOfFaultyDevices.png'
,
import
.
meta
.
url
).
href
},
]
]
};
};
...
@@ -747,14 +745,14 @@ const wssTransformGroundSatelliteData = (data) => {
...
@@ -747,14 +745,14 @@ const wssTransformGroundSatelliteData = (data) => {
// 检查 data 是否为对象且不为 null
// 检查 data 是否为对象且不为 null
if
(
typeof
data
===
'object'
&&
data
!==
null
&&
!
Array
.
isArray
(
data
))
{
if
(
typeof
data
===
'object'
&&
data
!==
null
&&
!
Array
.
isArray
(
data
))
{
return
[
return
[
{
label
:
'地面站数'
,
value
:
data
?.
groundStationNum
===
null
?
0
:
data
?.
groundStationNum
,
CurrentURL
:
new
URL
(
'../../assets/images/leftGroundIcon/NumberOfGroundStations.png'
,
import
.
meta
.
url
).
href
},
{
label
:
'地面站数'
,
value
:
data
?.
groundStationNum
===
null
?
0
:
data
?.
groundStationNum
,
CurrentURL
:
new
URL
(
'../../assets/images/leftGroundIcon/NumberOfGroundStations.png'
,
import
.
meta
.
url
).
href
},
{
label
:
'开通格网数'
,
value
:
data
?.
openGridNum
===
null
?
0
:
data
?.
openGridNum
,
CurrentURL
:
new
URL
(
'../../assets/images/leftGroundIcon/ActivateGridNumber.png'
,
import
.
meta
.
url
).
href
},
{
label
:
'开通格网数'
,
value
:
data
?.
openGridNum
===
null
?
0
:
data
?.
openGridNum
,
CurrentURL
:
new
URL
(
'../../assets/images/leftGroundIcon/ActivateGridNumber.png'
,
import
.
meta
.
url
).
href
},
{
label
:
'弧段数量'
,
value
:
data
?.
arcNum
===
null
?
0
:
data
?.
arcNum
,
CurrentURL
:
new
URL
(
'../../assets/images/leftGroundIcon/NumberOfArcSegments.png'
,
import
.
meta
.
url
).
href
},
{
label
:
'弧段数量'
,
value
:
data
?.
arcNum
===
null
?
0
:
data
?.
arcNum
,
CurrentURL
:
new
URL
(
'../../assets/images/leftGroundIcon/NumberOfArcSegments.png'
,
import
.
meta
.
url
).
href
},
{
label
:
'执行情况-弧段'
,
value
:
data
?.
arcExecuteNum
===
null
?
0
:
data
?.
arcExecuteNum
,
CurrentURL
:
new
URL
(
'../../assets/images/leftGroundIcon/ExecutionStatusArcSegment.png'
,
import
.
meta
.
url
).
href
},
{
label
:
'执行情况-弧段'
,
value
:
data
?.
arcExecuteNum
===
null
?
0
:
data
?.
arcExecuteNum
,
CurrentURL
:
new
URL
(
'../../assets/images/leftGroundIcon/ExecutionStatusArcSegment.png'
,
import
.
meta
.
url
).
href
},
{
label
:
'上注完成情况(星)'
,
value
:
data
?.
arcCompleteNum
===
null
||
data
?.
arcCompleteNum
===
undefined
?
0
:
data
?.
arcCompleteNum
,
CurrentURL
:
new
URL
(
'../../assets/images/leftGroundIcon/CompletionStatusOfTheAboveNote.png'
,
import
.
meta
.
url
).
href
},
{
label
:
'上注完成情况(星)'
,
value
:
data
?.
arcCompleteNum
===
null
||
data
?.
arcCompleteNum
===
undefined
?
0
:
data
?.
arcCompleteNum
,
CurrentURL
:
new
URL
(
'../../assets/images/leftGroundIcon/CompletionStatusOfTheAboveNote.png'
,
import
.
meta
.
url
).
href
},
{
label
:
'上注失败星数(星)'
,
value
:
data
?.
arcFaultNum
===
null
||
data
?.
arcFaultNum
===
undefined
?
0
:
data
?.
arcFaultNum
,
CurrentURL
:
new
URL
(
'../../assets/images/leftGroundIcon/NumberOfStarsFailedToBet.png'
,
import
.
meta
.
url
).
href
},
{
label
:
'上注失败星数(星)'
,
value
:
data
?.
arcFaultNum
===
null
||
data
?.
arcFaultNum
===
undefined
?
0
:
data
?.
arcFaultNum
,
CurrentURL
:
new
URL
(
'../../assets/images/leftGroundIcon/NumberOfStarsFailedToBet.png'
,
import
.
meta
.
url
).
href
},
{
label
:
'设备故障'
,
value
:
data
?.
faultDeviceNum
===
null
?
0
:
data
?.
faultDeviceNum
,
CurrentURL
:
new
URL
(
'../../assets/images/leftGroundIcon/NumberOfFaultyDevices.png'
,
import
.
meta
.
url
).
href
},
{
label
:
'设备故障'
,
value
:
data
?.
faultDeviceNum
===
null
?
0
:
data
?.
faultDeviceNum
,
CurrentURL
:
new
URL
(
'../../assets/images/leftGroundIcon/NumberOfFaultyDevices.png'
,
import
.
meta
.
url
).
href
},
];
];
}
}
...
@@ -768,7 +766,7 @@ const leftGetAllListInfo = () => {
...
@@ -768,7 +766,7 @@ const leftGetAllListInfo = () => {
coreMetrics
.
value
=
orbitMetrics
.
value
[
0
].
headerTitle
coreMetrics
.
value
=
orbitMetrics
.
value
[
0
].
headerTitle
})
})
stellateListInfoApi
().
then
(
res
=>
{
stellateListInfoApi
().
then
(
res
=>
{
//
console.log(res.data, "sas---------asasa"
);
//
console.log("sas---------asasa", res.data
);
primitiveSatelliteData
.
value
=
transformSatelliteData
(
res
.
data
)
primitiveSatelliteData
.
value
=
transformSatelliteData
(
res
.
data
)
// 按 satelliteName 排序,专门处理 "SS GEN1-15" 格式
// 按 satelliteName 排序,专门处理 "SS GEN1-15" 格式
primitiveSatelliteData
.
value
.
sort
((
a
,
b
)
=>
{
primitiveSatelliteData
.
value
.
sort
((
a
,
b
)
=>
{
...
@@ -806,6 +804,7 @@ onBeforeMount(() => {
...
@@ -806,6 +804,7 @@ onBeforeMount(() => {
// 监听 webSocket 结束变化,再根据api查一次数据库
// 监听 webSocket 结束变化,再根据api查一次数据库
watch
(()
=>
useAppStoreInstance
.
globalStartWss
,
(
newValue
,
oldValue
)
=>
{
watch
(()
=>
useAppStoreInstance
.
globalStartWss
,
(
newValue
,
oldValue
)
=>
{
if
(
!
newValue
)
{
if
(
!
newValue
)
{
setTimeout
(()
=>
{
setTimeout
(()
=>
{
leftGetAllListInfo
();
leftGetAllListInfo
();
...
@@ -860,10 +859,10 @@ const errorDeviceListDetailsDialog = ref([])
...
@@ -860,10 +859,10 @@ const errorDeviceListDetailsDialog = ref([])
const
tempCount
=
ref
(
0
)
const
tempCount
=
ref
(
0
)
watch
(()
=>
useAppStoreInstance
.
globalLeftWssCONTINE
,
val
=>
{
watch
(()
=>
useAppStoreInstance
.
globalLeftWssCONTINE
,
val
=>
{
const
JSONdata
=
val
const
JSONdata
=
val
// console.log("useAppStoreInstance.globalLeftWssCONTINE", JSONdata,(JSONdata.type === 'history' && !(JSONdata?.isLagrangeInterpolation === true) ),JSONdata.type === 'realtime');
// console.log("useAppStoreInstance.globalLeftWssCONTINE", JSONdata,(JSONdata.type === 'history' && !(JSONdata?.isLagrangeInterpolation === true) ),JSONdata.type === 'realtime');
if
(
JSONdata
.
type
===
'history'
)
{
if
(
JSONdata
.
type
===
'history'
)
{
const
satelliteList
=
[]
const
satelliteList
=
[]
JSONdata
.
CurrData
.
forEach
(
items
=>
{
JSONdata
.
CurrData
.
forEach
(
items
=>
{
...
@@ -2028,14 +2027,17 @@ onUnmounted(() => {
...
@@ -2028,14 +2027,17 @@ onUnmounted(() => {
border-color
:
#434a54
;
border-color
:
#434a54
;
}
}
:deep
(
.setting-input
.el-input__wrapper
)
{
:deep
(
.setting-input
.el-input__wrapper
)
{
box-shadow
:
none
;
box-shadow
:
none
;
border
:
none
;
border
:
none
;
}
}
:deep
(
.setting-input
.el-input__wrapper
.el-input__inner
)
{
:deep
(
.setting-input
.el-input__wrapper
.el-input__inner
)
{
box-shadow
:
none
;
box-shadow
:
none
;
border
:
none
;
border
:
none
;
}
}
.setting-checkbox
{
.setting-checkbox
{
margin-left
:
10px
;
margin-left
:
10px
;
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论