庞东旭 před 2 roky
rodič
revize
9cf1b41edb
2 změnil soubory, kde provedl 20 přidání a 1 odebrání
  1. +7
    -1
      src/permission.js
  2. +13
    -0
      src/views/sunVillage_info/index_code.vue

+ 7
- 1
src/permission.js Zobrazit soubor

@@ -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) {


+ 13
- 0
src/views/sunVillage_info/index_code.vue Zobrazit soubor

@@ -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: {



Načítá se…
Zrušit
Uložit