Commit 6983fbe2 by hanxiao

放开页面权限

parent 47a75f70
...@@ -139,7 +139,12 @@ export default { ...@@ -139,7 +139,12 @@ export default {
methods: { methods: {
handleSelect(key) { handleSelect(key) {
//2023.7.31隐藏除产业图谱其他的入口 //2023.7.31隐藏除产业图谱其他的入口
if (key == "atlas") { if (
key === "atlas" ||
key === "radar" ||
key === "map" ||
key === "portrait"
) {
this.activeIndex = key; this.activeIndex = key;
if (this.$route.name !== key) { if (this.$route.name !== key) {
this.$router.push({ name: key }); this.$router.push({ name: key });
...@@ -161,7 +166,7 @@ export default { ...@@ -161,7 +166,7 @@ export default {
this.$router.push({ name: "login" }); this.$router.push({ name: "login" });
}, },
goUserCenter() { goUserCenter() {
//2023.8.2隐藏用户中心 //2023.8.2隐藏用户中心
// if (this.$route.name !== "usercenter") { // if (this.$route.name !== "usercenter") {
// this.activeIndex = "usercenter"; // this.activeIndex = "usercenter";
// this.$router.push({ name: "usercenter" }); // this.$router.push({ name: "usercenter" });
......
...@@ -54,18 +54,18 @@ ...@@ -54,18 +54,18 @@
>创新平台</span >创新平台</span
> >
</div> </div>
<School <!-- <School
v-if="resourcesActiveName == 1" v-if="resourcesActiveName == 1"
:industry_id="industry_id" :industry_id="industry_id"
:industry_level="industry_level" :industry_level="industry_level"
:select_flag="1" :select_flag="1"
/> /> -->
<Platform <!-- <Platform
v-if="resourcesActiveName == 2" v-if="resourcesActiveName == 2"
:industry_id="industry_id" :industry_id="industry_id"
:industry_level="industry_level" :industry_level="industry_level"
:select_flag="3" :select_flag="3"
/> /> -->
</div> </div>
<div v-if="activeRouter == 3" class=" box-more"> <div v-if="activeRouter == 3" class=" box-more">
<div class="top-head-nav"> <div class="top-head-nav">
...@@ -85,24 +85,24 @@ ...@@ -85,24 +85,24 @@
>产业园区</span >产业园区</span
> >
</div> </div>
<District <!-- <District
v-if="carrierActiveName == 1" v-if="carrierActiveName == 1"
:industry_id="industry_id" :industry_id="industry_id"
:industry_level="industry_level" :industry_level="industry_level"
:select_flag="1" :select_flag="1"
/> /> -->
<Kaifaqu <!-- <Kaifaqu
v-if="carrierActiveName == 2" v-if="carrierActiveName == 2"
:industry_id="industry_id" :industry_id="industry_id"
:industry_level="industry_level" :industry_level="industry_level"
:select_flag="7" :select_flag="7"
/> /> -->
<Park <!-- <Park
v-if="carrierActiveName == 3" v-if="carrierActiveName == 3"
:industry_id="industry_id" :industry_id="industry_id"
:industry_level="industry_level" :industry_level="industry_level"
:select_flag="2" :select_flag="2"
/> /> -->
</div> </div>
<Policy <Policy
v-if="activeRouter == 4" v-if="activeRouter == 4"
...@@ -217,12 +217,12 @@ export default { ...@@ -217,12 +217,12 @@ export default {
changeRouter(val) { changeRouter(val) {
console.log(val); console.log(val);
//限制其他几个页面入口 //限制其他几个页面入口
if (val == 1 || val == 0 ||val == 4) { if (val !== 5) {
this.activeRouter = val; this.activeRouter = val;
} }
//源代码 //源代码
//this.activeRouter = val; // this.activeRouter = val;
}, },
getCateid(data) { getCateid(data) {
......
<template> <template>
<div class=" box-more"> <div class=" box-more">
<div class="top-head-nav"> <div class="top-head-nav">
<span :class="[policy_level == 0 ? 'active' : '']" @click="changeLevel(0)" <!-- <span :class="[policy_level == 0 ? 'active' : '']" @click="changeLevel(0)"
>全部</span >全部</span
> > -->
<span :class="[policy_level == 1 ? 'active' : '']" @click="changeLevel(1)" <span :class="[policy_level == 1 ? 'active' : '']" @click="changeLevel(1)"
>国家级</span >国家级</span
> >
......
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