|
@@ -6,7 +6,7 @@
|
|
<router-link
|
|
<router-link
|
|
class="router-left"
|
|
class="router-left"
|
|
:class="title == route.meta.title ? 'router_left2' : 'router_left1'"
|
|
:class="title == route.meta.title ? 'router_left2' : 'router_left1'"
|
|
- v-for="route in router"
|
|
|
|
|
|
+ v-for="route in router.slice(1, 5)"
|
|
:key="route"
|
|
:key="route"
|
|
:to="route.path"
|
|
:to="route.path"
|
|
v-show="route.meta.type === 'index'"
|
|
v-show="route.meta.type === 'index'"
|
|
@@ -38,7 +38,7 @@
|
|
<router-link
|
|
<router-link
|
|
class="router-left"
|
|
class="router-left"
|
|
:class="title == route.meta.title ? 'router_left2' : 'router_left1'"
|
|
:class="title == route.meta.title ? 'router_left2' : 'router_left1'"
|
|
- v-for="route in router.slice(4, 6)"
|
|
|
|
|
|
+ v-for="route in router.slice(5, 7)"
|
|
:key="route"
|
|
:key="route"
|
|
:to="route.path"
|
|
:to="route.path"
|
|
v-show="route.meta.type === 'menu'"
|
|
v-show="route.meta.type === 'menu'"
|
|
@@ -52,7 +52,7 @@
|
|
:class="
|
|
:class="
|
|
title == route.meta.title ? 'router_rigth2' : 'router_rigth1'
|
|
title == route.meta.title ? 'router_rigth2' : 'router_rigth1'
|
|
"
|
|
"
|
|
- v-for="route in router.slice(6, 8)"
|
|
|
|
|
|
+ v-for="route in router.slice(7, 9)"
|
|
:key="route"
|
|
:key="route"
|
|
:to="route.path"
|
|
:to="route.path"
|
|
v-show="route.meta.type === 'menu'"
|
|
v-show="route.meta.type === 'menu'"
|
|
@@ -66,7 +66,7 @@
|
|
<div class="title">{{ name }}</div>
|
|
<div class="title">{{ name }}</div>
|
|
<div class="rigth">
|
|
<div class="rigth">
|
|
<div class="showTime">{{ time }}</div>
|
|
<div class="showTime">{{ time }}</div>
|
|
- <router-link class="home" to="/" v-if="home"></router-link>
|
|
|
|
|
|
+ <router-link class="home" to="/home" v-if="home"></router-link>
|
|
<div class="news">
|
|
<div class="news">
|
|
<div></div>
|
|
<div></div>
|
|
<span><a>9</a></span>
|
|
<span><a>9</a></span>
|
|
@@ -100,7 +100,7 @@ export default {
|
|
this.time =
|
|
this.time =
|
|
time[0] +
|
|
time[0] +
|
|
"-" +
|
|
"-" +
|
|
- (time[1] < 10 ? "0" + (time[1]+1) : (time[1]+1)) +
|
|
|
|
|
|
+ (time[1] < 10 ? "0" + (time[1] + 1) : time[1] + 1) +
|
|
"-" +
|
|
"-" +
|
|
(time[2] < 10 ? "0" + time[2] : time[2]) +
|
|
(time[2] < 10 ? "0" + time[2] : time[2]) +
|
|
" " +
|
|
" " +
|
|
@@ -110,9 +110,8 @@ export default {
|
|
":" +
|
|
":" +
|
|
(time[5] < 10 ? "0" + time[5] : time[5]);
|
|
(time[5] < 10 ? "0" + time[5] : time[5]);
|
|
}, 0);
|
|
}, 0);
|
|
-
|
|
|
|
- this.options_api();
|
|
|
|
this.router = this.$router.options.routes;
|
|
this.router = this.$router.options.routes;
|
|
|
|
+ // console.log(this.router);
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
el_select(val) {
|
|
el_select(val) {
|
|
@@ -146,13 +145,7 @@ export default {
|
|
var name = this.$route.meta.name;
|
|
var name = this.$route.meta.name;
|
|
this.title = title;
|
|
this.title = title;
|
|
this.name = name;
|
|
this.name = name;
|
|
- if (type === "index" || name.indexOf("站点") == 2) {
|
|
|
|
- for (let i in this.options) {
|
|
|
|
- if (this.options[i].label == name) {
|
|
|
|
- this.value = this.options[i].value;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ this.options_api();
|
|
var getlocal = localStorage.getItem("Overview");
|
|
var getlocal = localStorage.getItem("Overview");
|
|
if (
|
|
if (
|
|
getlocal != undefined &&
|
|
getlocal != undefined &&
|