Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
SatelliteDigital
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
nijiawen
SatelliteDigital
Commits
3ac5b246
提交
3ac5b246
authored
4月 03, 2026
作者:
liujiaxing
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
图标曲线时间显示
上级
ab098854
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
24 行增加
和
2 行删除
+24
-2
instantCurve.vue
src/pages/all/components/instant/instantCurve.vue
+23
-2
screenConfigeDialog.vue
src/pages/header/component/screenConfigeDialog.vue
+1
-0
没有找到文件。
src/pages/all/components/instant/instantCurve.vue
浏览文件 @
3ac5b246
...
...
@@ -277,9 +277,21 @@ function initChart() {
interval
:
'auto'
,
// 或直接不写
hideOverlap
:
true
,
// 防重叠(很关键)
formatter
:
function
(
value
)
{
console
.
log
(
value
);
if
(
value
.
toString
().
includes
(
':'
))
{
return
value
const
date
=
new
Date
(
value
);
const
minutes
=
date
.
getMinutes
();
if
(
minutes
===
0
||
minutes
===
30
)
{
console
.
log
(
value
,
'判断分钟'
);
return
value
}
}
else
if
(
!
isNaN
(
Number
(
value
)))
{
const
date
=
new
Date
(
value
);
const
minutes
=
date
.
getMinutes
();
if
(
minutes
===
0
||
minutes
===
30
)
{
console
.
log
(
timestampToHMS
(
value
),
'判断分钟11'
);
return
timestampToHMS
(
value
)
}
}
}
// formatter: function (value) {
...
...
@@ -396,12 +408,21 @@ function initChart() {
window
.
addEventListener
(
'resize'
,
resizeChart
);
// }, 1000);
}
//转换颜色函数
function
hexToRgba
(
hex
,
alpha
)
{
const
r
=
parseInt
(
hex
.
slice
(
1
,
3
),
16
);
const
g
=
parseInt
(
hex
.
slice
(
3
,
5
),
16
);
const
b
=
parseInt
(
hex
.
slice
(
5
,
7
),
16
);
return
`rgba(
${
r
}
,
${
g
}
,
${
b
}
,
${
alpha
}
)`
;
}
//将时间戳转换成时分秒
function
timestampToHMS
(
timestamp
)
{
const
date
=
new
Date
(
timestamp
*
1000
);
// 如果传入的是秒,需要乘以1000转换为毫秒
const
hours
=
date
.
getUTCHours
().
toString
().
padStart
(
2
,
'0'
);
const
minutes
=
date
.
getUTCMinutes
().
toString
().
padStart
(
2
,
'0'
);
const
seconds
=
date
.
getUTCSeconds
().
toString
().
padStart
(
2
,
'0'
);
return
`
${
hours
}
:
${
minutes
}
:
${
seconds
}
`
;
}
var
timesset
=
null
function
resizeChart
()
{
if
(
myChart
)
{
...
...
src/pages/header/component/screenConfigeDialog.vue
浏览文件 @
3ac5b246
...
...
@@ -509,6 +509,7 @@ const handleConfigApplay = async () => {
_titles
:
titles
.
value
}
appStore
.
currentHotMapCountry
=
currentHotMapCountry
emits
(
'handleScreenConfigeClose'
)
//关闭弹窗
// console.log('appStore.chartConfig 传递的时候', appStore.chartConfig)
// Promise.all([
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论