diff --git a/src/permission.js b/src/permission.js index a5bb805d..51ea17b1 100644 --- a/src/permission.js +++ b/src/permission.js @@ -114,7 +114,9 @@ const whiteList = [ '/sunVillage_info/fixedAssets', //固定资产 '/sunVillage_info/information', //合同信息 '/sunVillage_info/details', //详情页 - '/sunVillage_info/index_code' //详情页 + '/sunVillage_info/index_code', //详情页 + '/sunVillage_info/list_finance', //详情页 + '/sunVillage_info/list_tourists', //详情页 ] router.beforeEach((to, from, next) => { @@ -156,6 +158,8 @@ router.beforeEach((to, from, next) => { next(`/zjdLogin`) } else if (to.path.indexOf('/yinnong') !== -1) { next(`/yinnongLogin`) + } else if (window.location.href.indexOf('/sunVillage_info/') != -1) { + window.location.href = '/sunVillage_info/login'; } else if (to.path.indexOf('/homesteadSurvey') !== -1) { next(`/homesteadLogin`) } else if (to.path.indexOf('/lawEnforcement') !== -1) { @@ -196,6 +200,8 @@ router.beforeEach((to, from, next) => { next(`/onlineHomeLogin`) } else if (to.path.indexOf('/yinnong') !== -1) { next(`/yinnongLogin`) + } else if (window.location.href.indexOf('/sunVillage_info/') != -1) { + window.location.href = '/sunVillage_info/login'; } else if (to.path.indexOf('/homesteadSurvey') !== -1) { next(`/homesteadLogin`) } else if (to.path.indexOf('/lawEnforcement') !== -1) { diff --git a/src/views/sunVillage_info/index_code.vue b/src/views/sunVillage_info/index_code.vue index 794bc7d1..886d3f3e 100644 --- a/src/views/sunVillage_info/index_code.vue +++ b/src/views/sunVillage_info/index_code.vue @@ -32,6 +32,7 @@ import { getInfo } from "@/api/login/index"; import {changeDept} from "../../api/onlineHome/done"; import {bookListByDeptId} from "../../api/homestead"; + import Cookies from "js-cookie"; export default { name: "certificateList", data() { @@ -65,6 +66,18 @@ created() { this.deptName = this.$route.query.deptName; this.bookName = this.$route.query.bookName; + Cookies.set("bookName", this.$route.query.bookName, { + expires: 30, + }); + Cookies.set("deptName", this.$route.query.deptName, { + expires: 30, + }); + Cookies.set("bookId", this.$route.query.bookId, { + expires: 30, + }); + Cookies.set("deptId", this.$route.query.deptId, { + expires: 30, + }); }, methods: {