|
@ -116,7 +116,7 @@ const isCurrentRoute = ref(true); |
|
|
const userStore = useUserStore(); |
|
|
const userStore = useUserStore(); |
|
|
const duration = 5000; |
|
|
const duration = 5000; |
|
|
const userNumber = ref(2800); |
|
|
const userNumber = ref(2800); |
|
|
// const notice = ref({}); |
|
|
const notice = ref({}); |
|
|
// const vsitsNumber = transitionNum(720, 5000); |
|
|
// const vsitsNumber = transitionNum(720, 5000); |
|
|
const currentTime = useDateFormat(useNow(), 'YYYY-MM-DD HH:mm:ss'); |
|
|
const currentTime = useDateFormat(useNow(), 'YYYY-MM-DD HH:mm:ss'); |
|
|
const hoursNow = useNow().value.getHours(); |
|
|
const hoursNow = useNow().value.getHours(); |
|
@ -196,32 +196,33 @@ onMounted(() => { |
|
|
getWeatherData(); |
|
|
getWeatherData(); |
|
|
getCardData(); |
|
|
getCardData(); |
|
|
// socket.initialize(wsUrl); |
|
|
// socket.initialize(wsUrl); |
|
|
// const webVersion = sessionStorage.getItem('webVersion'); |
|
|
const webVersion = sessionStorage.getItem('webVersion'); |
|
|
// if (webVersion != '' && webVersion != null) { |
|
|
if (webVersion != '' && webVersion != null) { |
|
|
// const version = JSON.parse(webVersion); |
|
|
const version = JSON.parse(webVersion); |
|
|
// notice.value = ElNotification({ |
|
|
notice.value = ElNotification({ |
|
|
// title: version.noticeTitle, |
|
|
// title: version.noticeTitle, |
|
|
// dangerouslyUseHTMLString: true, |
|
|
title: '更新日志', |
|
|
// customClass: 'notice', |
|
|
dangerouslyUseHTMLString: true, |
|
|
// duration: 0, |
|
|
customClass: 'notice', |
|
|
// message: version.noticeContent.replace(/\n/g, '<br>'), |
|
|
duration: 0, |
|
|
// onClose: () => { |
|
|
message: version.noticeContent.replace(/\n/g, '<br>'), |
|
|
// noticeCloce(version.noticeId); |
|
|
onClose: () => { |
|
|
// } |
|
|
noticeCloce(version.noticeId); |
|
|
// }); |
|
|
} |
|
|
// } |
|
|
|
|
|
}); |
|
|
}); |
|
|
// function noticeCloce(id: any) { |
|
|
} |
|
|
// //更新日志关闭事件 |
|
|
}); |
|
|
// const params = { |
|
|
function noticeCloce(id: any) { |
|
|
// versionId: id |
|
|
//更新日志关闭事件 |
|
|
// }; |
|
|
const params = { |
|
|
// userVersionRelation(params).then((res: any) => { |
|
|
versionId: id |
|
|
// if (res.code === 200) { |
|
|
}; |
|
|
// console.log('更新日志关闭!'); |
|
|
userVersionRelation(params).then((res: any) => { |
|
|
// } |
|
|
if (res.code === 200) { |
|
|
// }); |
|
|
console.log('更新日志关闭!'); |
|
|
// } |
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
function getCardData() { |
|
|
function getCardData() { |
|
|
//卡片数据 |
|
|
//卡片数据 |
|
|
getHeatSupplyAreaApi().then((res: any) => { |
|
|
getHeatSupplyAreaApi().then((res: any) => { |
|
|