Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
SatelliteDigital
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
nijiawen
SatelliteDigital
Commits
c9eab9a8
提交
c9eab9a8
authored
1月 05, 2026
作者:
周文艺
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
更改定时器时间
上级
1fc92cc5
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
48 行增加
和
10 行删除
+48
-10
timers.vue
src/pages/footer/component/timers.vue
+33
-9
app.js
src/store/module/app.js
+15
-1
没有找到文件。
src/pages/footer/component/timers.vue
浏览文件 @
c9eab9a8
...
...
@@ -125,6 +125,7 @@ import Loading from '@/pages/all/components/loadingComponent/index.js'
import
{
ref
,
onMounted
,
onUnmounted
,
computed
,
watch
,
nextTick
}
from
'vue'
;
import
wss
from
'@/utils/requestSocekt.js'
import
useAppStore
from
'@/store/module/app'
import
{
fa
}
from
'element-plus/es/locales.mjs'
;
// import { loading } from 'vxe-pc-ui';
const
useAppStoreInstance
=
useAppStore
();
...
...
@@ -132,7 +133,7 @@ const flagIsPlaying = ref(false)
// 跳转到指定时间点
const
jumpToSpecificTime
=
(
targetTime
)
=>
{
const
jumpToSpecificTime
=
(
targetTime
,
PerformDrag
=
false
)
=>
{
try
{
if
(
!
startDateTime
.
value
||
!
endDateTime
.
value
)
{
console
.
error
(
"时间轴起始时间或结束时间未定义"
);
...
...
@@ -175,7 +176,7 @@ const jumpToSpecificTime = (targetTime) => {
updateSelectedTimes
();
// 标记为手动选择时间点
isDraged
.
value
=
fals
e
;
isDraged
.
value
=
tru
e
;
is_flag_isRealtime
.
value
=
false
;
isConfirmedWithRange
.
value
=
false
;
// 设置为false以显示完整的选中区域
...
...
@@ -198,7 +199,11 @@ const jumpToSpecificTime = (targetTime) => {
// // });
// // }
// });
playForward
();
playForward
();
if
(
PerformDrag
)
{
endDrag
();
}
return
true
;
}
catch
(
error
)
{
console
.
error
(
"跳转到指定时间点出错:"
,
error
);
...
...
@@ -275,6 +280,11 @@ const wssMessageHandle = () => {
// playForward();
console
.
log
(
"再次获取数据"
,
endDateTime
.
value
===
selectedEndTime
.
value
.
toISOString
());
// 只进行时间上的跳转,不执行拖动的逻辑
// jumpToSpecificTime(data.time,false)
if
(
endDateTime
.
value
===
selectedEndTime
.
value
.
toISOString
())
{
stopAutoPlay
();
}
else
{
...
...
@@ -303,10 +313,10 @@ const wssMessageHandle = () => {
// console.log('我是left,type == time获取的wssRespone:', JSONdata.time.toLocaleString(), typeof JSONdata.time.toLocaleString());
}
// 处理服务器返回的数据
// 处理服务器返回的数据
,减去1000毫秒延迟,防止setTimeout和返回数据重叠在一个时间点上
flagToNext
=
setTimeout
(()
=>
{
stopAutoPlay
();
},
(
1000
*
60
)
/
playbackSpeed
.
value
);
},
(
(
1000
*
60
)
/
playbackSpeed
.
value
)
-
1000
);
};
// WwflagToNext = setTimeout(() => {
// stopAutoPlay();
...
...
@@ -465,7 +475,7 @@ const handleDateRangeChange = async (val) => {
updateSelectedTimes
();
});
}
console
.
log
(
"*************"
,
pick_select_date
.
value
[
0
]
,
"---------"
,
formatDateTime
(
pick_select_date
.
value
[
0
]));
console
.
log
(
"*************"
,
pick_select_date
.
value
,
"---------"
,
formatDateTime
(
pick_select_date
.
value
[
0
]));
if
(
window
.
ue5
)
{
wssOpenHandle
({
...
...
@@ -731,10 +741,14 @@ const updateSelectedTimes = () => {
// 更新选中时间
selectedStartTime
.
value
=
startTime
;
selectedEndTime
.
value
=
endTime
;
if
(
!
is_flag_isRealtime
.
value
){
useAppStoreInstance
.
setGlobalTimeLineEndSelectTime
(
formatDateTime
(
startTime
));
}
// console.log("************",useAppStoreInstance.globalTimeLineEndSelectTime);
};
// 已经被拖动过
const
isDraged
=
ref
(
false
);
// false: 播放方向为向前播放,true: 播放方向为向后播放
const
curplaybackDirection
=
ref
(
false
);
...
...
@@ -990,12 +1004,16 @@ const handleDrag = (e) => {
// 结束拖动
const
endDrag
=
()
=>
{
console
.
log
(
"开始执行"
);
isDragging
.
value
=
false
;
currentDragHandle
.
value
=
null
;
// 调用UE5回调函数
if
(
window
.
ue5
)
{
if
(
isDraged
.
value
)
{
if
(
!
isPlaying
.
value
)
{
console
.
log
(
"开始isDraged.value发送1111"
);
// if (!isPlaying.value) {
console
.
log
(
"开始isPlaying.value发送1111"
);
window
.
ue5
(
"callBackTimeFn"
,
String
(
JSON
.
stringify
({
isRealtime
:
false
,
replayTime
:
formatDateTime
(
selectedEndTime
.
value
),
...
...
@@ -1006,7 +1024,7 @@ const endDrag = () => {
replayTime
:
formatDateTime
(
selectedEndTime
.
value
),
taskCode
:
String
(
taskCode_everyChange
.
value
),
})
}
//
}
}
else
{
// window.ue5("callBackTimeFn", String(JSON.stringify({})));
}
...
...
@@ -1033,6 +1051,12 @@ const updateTimeline = () => {
};
onMounted
(()
=>
{
// if (isFromTosub) {
// handleDateRangeChange(useAppStoreInstance.globalSubsystemSelectedStartTime);
// jumpToSpecificTime(new Date(useAppStoreInstance.globalTimeLineEndSelectTime),true)
// endDrag()
// }
updateTimeline
();
// 初始化时,默认实时传输
...
...
src/store/module/app.js
浏览文件 @
c9eab9a8
...
...
@@ -2,7 +2,7 @@
* @Author: Z 1518051043@qq.com
* @Date: 2025-09-12 13:51:43
* @LastEditors: zwy 1518051043@qq.com
* @LastEditTime: 202
5-12-31 17:50:03
* @LastEditTime: 202
6-01-05 09:59:05
* @FilePath: \yuanxinPro\src\store\module\app.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
...
...
@@ -14,6 +14,11 @@ const useAppStore = defineStore(
'app'
,
{
state
:
()
=>
({
// 记录时间轴走的时间
globalTimeLineEndSelectTime
:
"2025-11-02 00:00:00"
,
globalTimeLineStartTime
:
"2025-11-02 00:00:00"
,
globalTimeLineEndTime
:
"2025-11-02 00:00:00"
,
subsystemSocket
:
null
,
subsystemSocketContent
:
''
,
HeartbeatInterval
:
null
,
...
...
@@ -39,6 +44,15 @@ const useAppStore = defineStore(
}),
actions
:
{
setGlobalTimeLineEndSelectTime
(
time
)
{
this
.
globalTimeLineEndSelectTime
=
time
;
},
setGlobalTimeLineStartTime
(
time
)
{
this
.
globalTimeLineStartTime
=
time
;
},
setGlobalTimeLineEndTime
(
time
)
{
this
.
globalTimeLineEndTime
=
time
;
},
setSubsystemSocket
(
socket
)
{
this
.
subsystemSocket
=
socket
;
},
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论