邓洁 : 完善细节
This commit is contained in:
BIN
src/assets/images/site/zdgl_dbj.png
Normal file
BIN
src/assets/images/site/zdgl_dbj.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.0 MiB |
@@ -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}%",
|
||||
},
|
||||
|
||||
@@ -107,6 +107,7 @@ watch(() => props.list, (now, old) => {
|
||||
padding-left: 5px;
|
||||
|
||||
&:hover {
|
||||
cursor: pointer;
|
||||
width: 280px;
|
||||
//height: 46px;
|
||||
background: #2E5589;
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
@@ -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
15
src/views/site/index.vue
Normal 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>
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user