master
wangchenguang 2 years ago
parent 485d7407f4
commit 70d38b12b4
  1. 2
      src/components/menuTree/index.vue
  2. 9
      src/mixins/estate/index.js
  3. 2
      src/pages/estate/event/index.vue
  4. 2
      src/pages/estate/location/index.vue
  5. 2
      src/pages/estate/orgSetup/index.vue
  6. 2
      src/pages/estate/survey/index.vue

@ -8,7 +8,7 @@
<menuTree :menuList="item.children"></menuTree>
</el-submenu>
<el-menu-item :key="item.id" :id="item.id" :index="String(item.id)" :class="{active: $route.query.id == item.id}" v-else>
<span slot="title" :id="item.id">{{item.columnName}}</span>
<span v-if="item.menuVisible!==1" slot="title" :id="item.id">{{item.columnName}}</span>
</el-menu-item>
</template>
</div>

@ -29,5 +29,14 @@ export default {
if (i == 3) path = '/overviewLocation?id=216'
this.$router.push(path + '&siteId=3')
},
tabChangeNewPage(i) {
this.active = i
// 跳转到固定的长页,这里的id不能变
let path = '/estate/survey?id=258'
if (i == 1) path = '/estate/event?id=259'
if (i == 2) path = '/estate/orgSetup?id=270'
if (i == 3) path = '/estate/location?id=261'
this.$router.push(path + '&siteId=3')
}
}
};

@ -10,7 +10,7 @@
<ul class="tabs wow fadeInLeft">
<template v-for="(item, i) in tabs">
<li :class="{active: i == active}" :key="i" @click="tabChange(i)">{{ item }}</li>
<li :class="{active: i == active}" :key="i" @click="tabChangeNewPage(i)">{{ item }}</li>
</template>
</ul>

@ -10,7 +10,7 @@
<ul class="tabs wow fadeInLeft">
<template v-for="(item, i) in tabs">
<li :class="{active: i == active}" :key="i" @click="tabChange(i)">{{ item }}</li>
<li :class="{active: i == active}" :key="i" @click="tabChangeNewPage(i)">{{ item }}</li>
</template>
</ul>

@ -10,7 +10,7 @@
<ul class="tabs wow fadeInLeft">
<template v-for="(item, i) in tabs">
<li :class="{active: i == active}" :key="i" @click="tabChange(i)">{{ item }}</li>
<li :class="{active: i == active}" :key="i" @click="tabChangeNewPage(i)">{{ item }}</li>
</template>
</ul>

@ -10,7 +10,7 @@
<ul class="tabs wow fadeInLeft">
<template v-for="(item, i) in tabs">
<li :class="{active: i == active}" :key="i" @click="tabChange(i)">{{ item }}</li>
<li :class="{active: i == active}" :key="i" @click="tabChangeNewPage(i)">{{ item }}</li>
</template>
</ul>

Loading…
Cancel
Save