邓洁 : 完善细节

This commit is contained in:
dengj
2023-12-11 17:32:37 +08:00
parent 407898dcc4
commit 2f8cb49ac4
7 changed files with 37 additions and 6 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

View File

@@ -37,7 +37,7 @@ const option = {
clip: false,
itemStyle: {
color: `${
params.gasInfo.value > params.gasInfo.point ? "#F94236" : "#7EDFEC"
params.gasInfo.value >= params.gasInfo.point ? "#F94236" : "#7EDFEC"
}`,
},
},
@@ -65,7 +65,9 @@ const option = {
axisLine: {
lineStyle: {
width: 25,
color: [[1, "#0a4265"]],
color: [
[1, "#0a4265"]
],
},
},
detail: {
@@ -73,7 +75,7 @@ const option = {
height: 14,
fontSize: 26,
color: `${
params.gasInfo.value > params.gasInfo.point ? "#F94236" : "#FFCE23"
params.gasInfo.value >= params.gasInfo.point ? "#F94236" : "#FFCE23"
}`,
formatter: "Vo{value}%",
},

View File

@@ -107,6 +107,7 @@ watch(() => props.list, (now, old) => {
padding-left: 5px;
&:hover {
cursor: pointer;
width: 280px;
//height: 46px;
background: #2E5589;

View File

@@ -31,6 +31,15 @@ const routes = [
title: 'debug',
breadcrumb: true
}
},
{
path: '/site',
name: 'site',
component: () => import('@/views/site/index.vue'),
meta: {
title: 'site',
breadcrumb: true
}
}
];

View File

@@ -9,7 +9,6 @@ export const dateFormat = (time = new Date().getTime()) => { //YYYY年MM月DD日
const m = (date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes());
const s = (date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds());
let weekDay = new Date().getDay();
console.log('weekDay',weekDay)
const week= weekList[weekDay]
// const strDate = `${Y}/${M}/${D} ${h}:${m}:${s}`
return `${Y}${M}${D}日 星期${week}`;

15
src/views/site/index.vue Normal file
View File

@@ -0,0 +1,15 @@
<template>
<div class="site-bgc">
</div>
</template>
<script setup>
</script>
<style scoped lang="scss">
.site-bgc{
width: 100%;
height:100%;
background-image: url('@/assets/images/site/zdgl_dbj.png');
}
</style>

View File

@@ -131,7 +131,12 @@ onMounted(() => {
showFan.value = true
})
})
const manageSelect = () => {
const manageSelect = (index) => {
console.log('首页点击-',index)
if(index===0){
console.log('站点管理=====-----')
router.push('/site')
}
// getInfo();
};
const closeLeft = () => {
@@ -196,7 +201,7 @@ const initWebSocket = () => {
//连接关闭的回调方法
socket.onclose = function () {
console.log("ws连接关闭");
initWebSocket()
// initWebSocket()
}
setInterval(() => {
socket.send(JSON.stringify(send))