Commit e5fd1ef0 authored by 张牧越's avatar 张牧越

bugfix

parent 08b7903f
File deleted
...@@ -12,6 +12,7 @@ export default { ...@@ -12,6 +12,7 @@ export default {
mounted() { mounted() {
if (this.$route.query.token) { if (this.$route.query.token) {
localStorage.setItem("token", this.$route.query.token); localStorage.setItem("token", this.$route.query.token);
// this.$router.push("/");
} }
}, },
}; };
......
...@@ -2,8 +2,12 @@ ...@@ -2,8 +2,12 @@
<div :style="{ zoom: zoom }"> <div :style="{ zoom: zoom }">
<div class="nav-header"> <div class="nav-header">
<div class="left-nav"> <div class="left-nav">
<span style="font-size: 14px">XXX项目后台管理系统</span> <span style="font-size: 14px" @click="jumpBack"
<router-link to="/">数字工地</router-link> >工程项目后台管理系统</span
>
<router-link :to="{ path: '/', query: { token: token } }" exact
>数字工地</router-link
>
<router-link to="/realname">实名制</router-link> <router-link to="/realname">实名制</router-link>
<router-link to="/supervisory">视频监控</router-link> <router-link to="/supervisory">视频监控</router-link>
<router-link to="/earlywarning">AI预警</router-link> <router-link to="/earlywarning">AI预警</router-link>
...@@ -94,6 +98,14 @@ export default { ...@@ -94,6 +98,14 @@ export default {
charts[i].style.zoom = 1; charts[i].style.zoom = 1;
} }
}, },
jumpBack() {
window.location.href = "http://qjwl.ythplan.io/pweb/m/";
},
},
computed: {
token() {
return localStorage.getItem("token");
},
}, },
mounted() { mounted() {
this.$nextTick(() => { this.$nextTick(() => {
......
...@@ -169,6 +169,9 @@ export default { ...@@ -169,6 +169,9 @@ export default {
}, },
itemGap: 12, itemGap: 12,
}, },
tooltip: {
trigger: "axis",
},
xAxis: { xAxis: {
type: "category", type: "category",
data: xAxisData, data: xAxisData,
......
...@@ -422,6 +422,9 @@ export default { ...@@ -422,6 +422,9 @@ export default {
left: 30, left: 30,
right: 30, right: 30,
}, },
tooltip: {
trigger: "axis",
},
xAxis: { xAxis: {
type: "category", type: "category",
data: ["09:00", "12:00", "13:00", "16:00", "19:00", "22:00", "01:00"], data: ["09:00", "12:00", "13:00", "16:00", "19:00", "22:00", "01:00"],
......
...@@ -328,6 +328,9 @@ export default { ...@@ -328,6 +328,9 @@ export default {
left: 30, left: 30,
right: 30, right: 30,
}, },
tooltip: {
trigger: "axis",
},
xAxis: { xAxis: {
type: "category", type: "category",
data: xAxisData, data: xAxisData,
...@@ -412,6 +415,9 @@ export default { ...@@ -412,6 +415,9 @@ export default {
color: "rgba(225, 239, 255, 0.7)", color: "rgba(225, 239, 255, 0.7)",
}, },
}, },
tooltip: {
trigger: "axis",
},
xAxis: { xAxis: {
type: "category", type: "category",
data: xAxisData, data: xAxisData,
...@@ -476,6 +482,9 @@ export default { ...@@ -476,6 +482,9 @@ export default {
color: "rgba(225, 239, 255, 0.7)", color: "rgba(225, 239, 255, 0.7)",
}, },
}, },
tooltip: {
trigger: "axis",
},
xAxis: { xAxis: {
type: "category", type: "category",
data: xAxisData, data: xAxisData,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment