Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
SatelliteDigital
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
nijiawen
SatelliteDigital
Commits
8d5eb8b2
提交
8d5eb8b2
authored
1月 16, 2026
作者:
周文艺
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
2026/1/16
上级
542613e6
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
99 行增加
和
25 行删除
+99
-25
timers.vue
src/pages/footer2/timers.vue
+1
-1
index.vue
src/pages/lefts2/index.vue
+98
-24
没有找到文件。
src/pages/footer2/timers.vue
浏览文件 @
8d5eb8b2
...
...
@@ -1354,7 +1354,7 @@ watch(
);
onUnmounted
(()
=>
{
console
.
log
(
"我走了这里14"
)
stopAutoPlay
();
//
stopAutoPlay();
window
.
removeEventListener
(
'mousemove'
,
handleDrag
);
window
.
removeEventListener
(
'mouseup'
,
endDrag
);
});
...
...
src/pages/lefts2/index.vue
浏览文件 @
8d5eb8b2
...
...
@@ -162,7 +162,7 @@
<
script
setup
>
import
'element-plus/dist/index.css'
import
{
ref
,
onMounted
,
onBeforeMount
,
nextTick
,
watch
,
onUnmounted
}
from
'vue'
;
import
{
ref
,
onMounted
,
onBeforeMount
,
nextTick
,
watch
,
onUnmounted
,
h
}
from
'vue'
;
import
{
ElMessage
}
from
'element-plus'
import
curve
from
'./component/cruve.vue'
;
import
useAppStore
from
'@/store/module/app.js'
;
...
...
@@ -172,14 +172,16 @@ import { useRouter } from 'vue-router';
import
{
getSubSystemOpitionListApi
,
getSubSystemCurveListApi
}
from
'../../api/Zodiac'
import
SubWss
from
'@/utils/subSystemRequestSocket.js'
import
{
set
}
from
'nprogress'
;
import
{
tr
}
from
'element-plus/es/locales.mjs'
;
const
router
=
useRouter
();
const
useAppStoreInstance
=
useAppStore
();
const
activeIndex
=
ref
(
0
);
const
arcHistoryActiveIndex
=
ref
(
0
);
const
arcHistoryActiveIndex
=
ref
(
null
);
const
currentTelemetryData
=
ref
([]);
const
arcHistoryData
=
ref
(
true
);
const
arcHistorytabs
=
[
"姿轨控分系统"
,
...
...
@@ -195,15 +197,80 @@ const handleSatelliteGranularityChange = (value) => {
}
const
formatToMidnight
=
(
isoString
)
=>
{
const
date
=
new
Date
(
isoString
);
// 使用 UTC 年月日构造新的 Date,避免时区偏移影响
const
year
=
date
.
getUTCFullYear
();
const
month
=
String
(
date
.
getUTCMonth
()
+
1
).
padStart
(
2
,
'0'
);
const
day
=
String
(
date
.
getUTCDate
()).
padStart
(
2
,
'0'
);
return
`
${
year
}
-
${
month
}
-
${
day
}
00:00:00`
;
};
const
defaultGetSubSystemCurveList
=
()
=>
{
console
.
log
(
"historyTimeDateRange.value"
,
historyTimeDateRange
.
value
,
satelliteOptions
.
value
[
0
]);
getSubSystemCurveListApi
({
endTime
:
(
historyTimeDateRange
.
value
[
1
]),
satelliteId
:
useAppStoreInstance
.
globalSatelliteSearchID
===
'0'
?
"4097"
:
(
useAppStoreInstance
.
globalSatelliteSearchID
),
startTime
:
(
historyTimeDateRange
.
value
[
0
]),
subSystemType
:
arcHistorySubSystemOptions
[
arcHistoryActiveIndex
.
value
],
code
:
satelliteOptions
.
value
[
0
]?.
value
||
11
,
}).
then
(
res
=>
{
left2BottomOpitionX
.
value
=
[]
left2BottomOpitionY
.
value
=
[]
res
.
data
.
map
(
item
=>
(
left2BottomOpitionX
.
value
.
push
(
item
.
x
),
left2BottomOpitionY
.
value
.
push
(
item
.
y
)
))
left2BottomOpition
.
value
=
{
// falgStartSearch:isFalgStartSearch.value,
maxY
:
ceilForMaxValue
(
Math
.
max
(...
left2BottomOpitionY
.
value
))
,
minY
:
floorForMinValue
(
Math
.
min
(...
left2BottomOpitionY
.
value
))
,
isFirstSearch
:
true
,
dataX
:
left2BottomOpitionX
.
value
,
dataY
:
left2BottomOpitionY
.
value
,
type
:
'line'
,
chartName
:
satelliteOptions
.
value
.
filter
((
item
)
=>
(
String
(
satelliteOptions
.
value
[
0
].
value
)
===
String
(
item
.
value
)))[
0
].
label
}
})
console
.
log
(
"defaultGetSubSystemCurveList结束了"
);
arcHistoryData
.
value
=
true
;
}
const
arcHistorySubSystemOptions
=
[
'CONTROL'
,
'POWER'
,
'THERMAL'
];
const
handleArcHistoryTabClick
=
(
index
)
=>
{
if
(
!
arcHistoryData
.
value
)
{
ElMessage
.
warning
(
'请勿连续操作!'
);
return
;
}
arcHistoryActiveIndex
.
value
=
index
;
isFlagOfSeletctType
.
value
=
false
;
isFalgStartSearch
.
value
=
false
;
subSystemOptionsFn
(
arcHistorySubSystemOptions
[
index
]);
// cureSearchHandleFn()
arcHistoryData
.
value
=
false
;
// cureSearchHandleFn(satelliteOptions.value[0].code)
}
watch
(()
=>
arcHistoryActiveIndex
.
value
,
()
=>
{
nextTick
(()
=>
{
setTimeout
(()
=>
{
console
.
log
(
"arcHistoryActiveIndex.value发生改变"
,
satelliteOptions
.
value
[
0
]);
defaultGetSubSystemCurveList
();
},
500
);
})
// defaultGetSubSystemCurveList();
})
// 系统标签
const
tabs
=
[
"姿轨控分系统"
,
...
...
@@ -661,7 +728,9 @@ const subSystemOptionsFn = (subSystemTypeValue)=>{
value
:
item
.
code
}));
// console.log("************",satelliteGranularity.value,satelliteGranularity.value[0]);
satelliteGranularity
.
value
=
""
satelliteGranularity
.
value
=
satelliteOptions
.
value
[
0
].
value
// satelliteGranularity.value = ""
// historyCode.value = satelliteGranularity.value[0].code;
})
}
...
...
@@ -681,13 +750,14 @@ const left2BottomOpition = ref({
const
cureSearchHandleFn
=
()
=>
{
console
.
log
(
"11111111111111-------1111:"
,
isFlagOfSeletctType
.
value
);
if
(
!
isFlagOfSeletctType
.
value
)
{
ElMessage
({
type
:
'error'
,
message
:
`请选择卫星粒度`
,
})
//
if (!isFlagOfSeletctType.value) {
//
ElMessage({
//
type: 'error',
//
message: `请选择卫星粒度`,
//
})
}
else
{
// }else
{
// console.log('查询参数:', {
...
...
@@ -706,18 +776,18 @@ isFalgStartSearch.value = true;
console
.
log
(
"propsDate-min--3333333333--------"
,{
endTime
:
historyTimeDateRange
.
value
[
1
],
satelliteId
:
useAppStoreInstance
.
globalSatelliteSearchID
===
'0'
?
"4097"
:
(
useAppStoreInstance
.
globalSatelliteSearchID
),
startTime
:
historyTimeDateRange
.
value
[
0
],
subSystemType
:
arcHistorySubSystemOptions
[
arcHistoryActiveIndex
.
value
],
code
:
historyCode
.
value
,
});
//
console.log("propsDate-min--3333333333--------",{
//
endTime: historyTimeDateRange.value[1],
//
satelliteId: useAppStoreInstance.globalSatelliteSearchID==='0'? "4097": (useAppStoreInstance.globalSatelliteSearchID),
//
startTime: historyTimeDateRange.value[0],
//
subSystemType: arcHistorySubSystemOptions[arcHistoryActiveIndex.value],
//
code: historyCode.value ,
//
});
getSubSystemCurveListApi
({
endTime
:
historyTimeDateRange
.
value
[
1
]
,
endTime
:
(
historyTimeDateRange
.
value
[
1
])
,
satelliteId
:
useAppStoreInstance
.
globalSatelliteSearchID
===
'0'
?
"4097"
:
(
useAppStoreInstance
.
globalSatelliteSearchID
),
startTime
:
historyTimeDateRange
.
value
[
0
]
,
startTime
:
(
historyTimeDateRange
.
value
[
0
])
,
subSystemType
:
arcHistorySubSystemOptions
[
arcHistoryActiveIndex
.
value
],
code
:
historyCode
.
value
,
}).
then
(
res
=>
{
...
...
@@ -739,7 +809,7 @@ isFalgStartSearch.value = true;
chartName
:
satelliteOptions
.
value
.
filter
((
item
)
=>
(
String
(
historyCode
.
value
)
===
String
(
item
.
value
)))[
0
].
label
}
})
arcHistoryData
.
value
=
true
;
}
};
...
...
@@ -903,6 +973,7 @@ const handleTabClick = (index) => {
onBeforeMount
(()
=>
{
subSystemOptionsFn
(
"CONTROL"
);
// console.log("12222222222222222222222222",satelliteOptions.value[0].code);
...
...
@@ -945,9 +1016,9 @@ const mountformatDateTime = (date) => {
return
`
${
year
}
-
${
month
}
-
${
day
}
${
hours
}
:
${
minutes
}
:
${
seconds
}
`
;
};
onMounted
(()
=>
{
nextTick
(()
=>
{
console
.
log
(
"我走了globalSubsystemSelectedTimeRange---left2"
,
mountformatDateTime
(
useAppStoreInstance
.
globalSubsystemSelectedTimeRange
[
0
]),
mountformatDateTime
(
useAppStoreInstance
.
globalSubsystemSelectedTimeRange
[
1
]));
if
(
useAppStoreInstance
.
footerTimeHasedSelectTimeToSub
)
{
...
...
@@ -971,6 +1042,7 @@ onMounted(() => {
left2BottomOpition
.
value
=
{
isFirstSearch
:
false
,
}
nextTick
(()
=>
{
watch
(()
=>
useAppStoreInstance
.
subsystemSocketContent
,
(
newVal
,
oldValue
)
=>
{
// const newValue = useAppStoreInstance.subsystemSocketContent
...
...
@@ -1043,9 +1115,11 @@ watch(() => useAppStoreInstance.subsystemSocketContent, (newVal, oldValue) => {
},{
deep
:
true
,
immediate
:
true
});
})
})
arcHistoryActiveIndex
.
value
=
0
});
onUnmounted
(()
=>
{
// useAppStoreInstance.setGlobalSubsystemSelectedTimeRange([]);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论