Browse Source

优化

wulanhaote
庞东旭 2 years ago
parent
commit
9cf1b41edb
2 changed files with 20 additions and 1 deletions
  1. +7
    -1
      src/permission.js
  2. +13
    -0
      src/views/sunVillage_info/index_code.vue

+ 7
- 1
src/permission.js View File

@@ -114,7 +114,9 @@ const whiteList = [
'/sunVillage_info/fixedAssets', //固定资产 '/sunVillage_info/fixedAssets', //固定资产
'/sunVillage_info/information', //合同信息 '/sunVillage_info/information', //合同信息
'/sunVillage_info/details', //详情页 '/sunVillage_info/details', //详情页
'/sunVillage_info/index_code' //详情页
'/sunVillage_info/index_code', //详情页
'/sunVillage_info/list_finance', //详情页
'/sunVillage_info/list_tourists', //详情页
] ]


router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
@@ -156,6 +158,8 @@ router.beforeEach((to, from, next) => {
next(`/zjdLogin`) next(`/zjdLogin`)
} else if (to.path.indexOf('/yinnong') !== -1) { } else if (to.path.indexOf('/yinnong') !== -1) {
next(`/yinnongLogin`) next(`/yinnongLogin`)
} else if (window.location.href.indexOf('/sunVillage_info/') != -1) {
window.location.href = '/sunVillage_info/login';
} else if (to.path.indexOf('/homesteadSurvey') !== -1) { } else if (to.path.indexOf('/homesteadSurvey') !== -1) {
next(`/homesteadLogin`) next(`/homesteadLogin`)
} else if (to.path.indexOf('/lawEnforcement') !== -1) { } else if (to.path.indexOf('/lawEnforcement') !== -1) {
@@ -196,6 +200,8 @@ router.beforeEach((to, from, next) => {
next(`/onlineHomeLogin`) next(`/onlineHomeLogin`)
} else if (to.path.indexOf('/yinnong') !== -1) { } else if (to.path.indexOf('/yinnong') !== -1) {
next(`/yinnongLogin`) next(`/yinnongLogin`)
} else if (window.location.href.indexOf('/sunVillage_info/') != -1) {
window.location.href = '/sunVillage_info/login';
} else if (to.path.indexOf('/homesteadSurvey') !== -1) { } else if (to.path.indexOf('/homesteadSurvey') !== -1) {
next(`/homesteadLogin`) next(`/homesteadLogin`)
} else if (to.path.indexOf('/lawEnforcement') !== -1) { } else if (to.path.indexOf('/lawEnforcement') !== -1) {


+ 13
- 0
src/views/sunVillage_info/index_code.vue View File

@@ -32,6 +32,7 @@
import { getInfo } from "@/api/login/index"; import { getInfo } from "@/api/login/index";
import {changeDept} from "../../api/onlineHome/done"; import {changeDept} from "../../api/onlineHome/done";
import {bookListByDeptId} from "../../api/homestead"; import {bookListByDeptId} from "../../api/homestead";
import Cookies from "js-cookie";
export default { export default {
name: "certificateList", name: "certificateList",
data() { data() {
@@ -65,6 +66,18 @@
created() { created() {
this.deptName = this.$route.query.deptName; this.deptName = this.$route.query.deptName;
this.bookName = this.$route.query.bookName; 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: { methods: {




Loading…
Cancel
Save