Merge pull request '邓洁 : 完善细节' (#75) from dj into dev
Reviewed-on: http://git.feashow.cn/clay/tunnel-cloud-web/pulls/75
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,
|
clip: false,
|
||||||
itemStyle: {
|
itemStyle: {
|
||||||
color: `${
|
color: `${
|
||||||
params.gasInfo.value > params.gasInfo.point ? "#F94236" : "#7EDFEC"
|
params.gasInfo.value >= params.gasInfo.point ? "#F94236" : "#7EDFEC"
|
||||||
}`,
|
}`,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -65,7 +65,9 @@ const option = {
|
|||||||
axisLine: {
|
axisLine: {
|
||||||
lineStyle: {
|
lineStyle: {
|
||||||
width: 25,
|
width: 25,
|
||||||
color: [[1, "#0a4265"]],
|
color: [
|
||||||
|
[1, "#0a4265"]
|
||||||
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
detail: {
|
detail: {
|
||||||
@@ -73,7 +75,7 @@ const option = {
|
|||||||
height: 14,
|
height: 14,
|
||||||
fontSize: 26,
|
fontSize: 26,
|
||||||
color: `${
|
color: `${
|
||||||
params.gasInfo.value > params.gasInfo.point ? "#F94236" : "#FFCE23"
|
params.gasInfo.value >= params.gasInfo.point ? "#F94236" : "#FFCE23"
|
||||||
}`,
|
}`,
|
||||||
formatter: "Vo{value}%",
|
formatter: "Vo{value}%",
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -107,6 +107,7 @@ watch(() => props.list, (now, old) => {
|
|||||||
padding-left: 5px;
|
padding-left: 5px;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
|
cursor: pointer;
|
||||||
width: 280px;
|
width: 280px;
|
||||||
//height: 46px;
|
//height: 46px;
|
||||||
background: #2E5589;
|
background: #2E5589;
|
||||||
|
|||||||
@@ -31,6 +31,15 @@ const routes = [
|
|||||||
title: 'debug',
|
title: 'debug',
|
||||||
breadcrumb: true
|
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 m = (date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes());
|
||||||
const s = (date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds());
|
const s = (date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds());
|
||||||
let weekDay = new Date().getDay();
|
let weekDay = new Date().getDay();
|
||||||
console.log('weekDay',weekDay)
|
|
||||||
const week= weekList[weekDay]
|
const week= weekList[weekDay]
|
||||||
// const strDate = `${Y}/${M}/${D} ${h}:${m}:${s}`
|
// const strDate = `${Y}/${M}/${D} ${h}:${m}:${s}`
|
||||||
return `${Y}年${M}月${D}日 星期${week}`;
|
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
|
showFan.value = true
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
const manageSelect = () => {
|
const manageSelect = (index) => {
|
||||||
|
console.log('首页点击-',index)
|
||||||
|
if(index===0){
|
||||||
|
console.log('站点管理=====-----')
|
||||||
|
router.push('/site')
|
||||||
|
}
|
||||||
// getInfo();
|
// getInfo();
|
||||||
};
|
};
|
||||||
const closeLeft = () => {
|
const closeLeft = () => {
|
||||||
@@ -196,7 +201,7 @@ const initWebSocket = () => {
|
|||||||
//连接关闭的回调方法
|
//连接关闭的回调方法
|
||||||
socket.onclose = function () {
|
socket.onclose = function () {
|
||||||
console.log("ws连接关闭");
|
console.log("ws连接关闭");
|
||||||
initWebSocket()
|
// initWebSocket()
|
||||||
}
|
}
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
socket.send(JSON.stringify(send))
|
socket.send(JSON.stringify(send))
|
||||||
|
|||||||
Reference in New Issue
Block a user