pull/16/head
parent
d7131321c8
commit
28be7eec0e
Binary file not shown.
|
@ -13,9 +13,9 @@
|
|||
<template slot="title" class="collapse-title">
|
||||
{{ item.name }}
|
||||
</template>
|
||||
<!-- :class="routerNow == item1.router ? 'active' : ''" -->
|
||||
<!-- -->
|
||||
<ul class="table-ul">
|
||||
<li @click="toRouter(item1)" class="table-li" v-for="item1, index1 in item.list" :key="index1">{{
|
||||
<li @click="toRouter(item1)" :class="routerNow == item1.router&&routerIndex==index1+1 ? 'active' : ''" class="table-li" v-for="item1, index1 in item.list" :key="index1">{{
|
||||
item1.name }} <div class="status" :class="item1.status == 0 ? 'outline' : 'online'"
|
||||
v-if="item1.status >= 0">{{ item1.status
|
||||
== 0
|
||||
|
@ -96,7 +96,7 @@ export default {
|
|||
},
|
||||
gerRouter() {
|
||||
this.routerNow = this.$route.name;
|
||||
this.routerIndex = this.$route.query.index ? this.$route.query.index : 1
|
||||
this.routerIndex = this.$route.query.id ? this.$route.query.id : 1
|
||||
},
|
||||
toRouter(item) {
|
||||
if (item.router) {
|
||||
|
|
|
@ -190,7 +190,7 @@ export default {
|
|||
window.location.href = item.http;
|
||||
} else if (item.router == 'formula' && this.$route.query.index != item.index) {
|
||||
this.$store.state.equipmentIndex = item.index
|
||||
this.$router.push({ path: `/${item.router}?index=${item.index ? item.index : 1}` })
|
||||
this.$router.push({ path: `/${item.router}?id=${item.index ? item.index : 1}` })
|
||||
|
||||
}else if (item.router == 'history' && this.$route.query.index != item.index) {
|
||||
this.$router.push({ path: `/history?index=${item.index ? item.index : 1}` })
|
||||
|
|
Loading…
Reference in New Issue