修改右下角文字
This commit is contained in:
parent
037d1257ba
commit
4328567adc
@ -67,6 +67,14 @@ export function useDisasterData() {
|
|||||||
const day = String(date.getDate()).padStart(2, '0');
|
const day = String(date.getDate()).padStart(2, '0');
|
||||||
return `${year}-${month}-${day} ${time}`;
|
return `${year}-${month}-${day} ${time}`;
|
||||||
}
|
}
|
||||||
|
// 获取当前日期没有年份
|
||||||
|
function getCurrentDateWithoutYear() {
|
||||||
|
const date = new Date();
|
||||||
|
const year = date.getFullYear();
|
||||||
|
const month = String(date.getMonth() + 1).padStart(2, '0');
|
||||||
|
const day = String(date.getDate()).padStart(2, '0');
|
||||||
|
return `${month}月${day}日`;
|
||||||
|
};
|
||||||
|
|
||||||
// 协同信息
|
// 协同信息
|
||||||
const collaborationInfo = ref([
|
const collaborationInfo = ref([
|
||||||
@ -74,20 +82,20 @@ export function useDisasterData() {
|
|||||||
id: 1,
|
id: 1,
|
||||||
source: '气象预警',
|
source: '气象预警',
|
||||||
content:
|
content:
|
||||||
`巫溪县气象台${getCurrentDate()} 08:30分升级发布"暴雨黄色预警信号",过去6小时,文峰、红池坝、天元、长桂等乡镇累计降雨量已达70毫米以上。`,
|
`忠县气象台${getCurrentDate()} 08:30分升级发布"暴雨黄色预警信号",过去6小时,文峰、红池坝、天元、长桂等乡镇累计降雨量已达70毫米以上。`,
|
||||||
timestamp: getCurrentDateTime('08:30')
|
timestamp: getCurrentDateTime('08:30')
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 2,
|
id: 2,
|
||||||
source: '公安部门',
|
source: '公安部门',
|
||||||
content: '对巴南S204武大线三峭湾进行交通管制。',
|
content: '对忠县S204武大线三峭湾进行交通管制。',
|
||||||
timestamp: '2025-10-17 13:00'
|
timestamp: '2025-10-17 13:00'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 3,
|
id: 3,
|
||||||
source: '融媒体中心',
|
source: '融媒体中心',
|
||||||
content:
|
content:
|
||||||
`发布了阻断信息:巴南S204武大线三湾于6月28日发生山体滑坡,边坡有继续垮塌风险,需断道观察,车辆从桥口坝绕行金田村,预计${getCurrentDate()} 24:00恢复通行。`,
|
`发布了阻断信息:巴南S204武大线三湾于${getCurrentDateWithoutYear()}发生山体滑坡,边坡有继续垮塌风险,需断道观察,车辆从桥口坝绕行金田村,预计${getCurrentDate()} 24:00恢复通行。`,
|
||||||
timestamp: getCurrentDateTime('24:00')
|
timestamp: getCurrentDateTime('24:00')
|
||||||
}
|
}
|
||||||
])
|
])
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user