|
|
@@ -99,7 +99,7 @@ |
|
|
|
created() { |
|
|
|
this.height = document.body.clientHeight |
|
|
|
this.getCookie(); |
|
|
|
this.formData.deptId = Cookies.get('deptId'); |
|
|
|
//this.formData.deptId = Cookies.get('deptId'); // 要关掉这个 |
|
|
|
this.allowIdentityVerified(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
@@ -147,6 +147,11 @@ |
|
|
|
const farmerCode = res.rows[0].farmerCode; |
|
|
|
Cookies.set("farmerCode",farmerCode, { expires: 30 }); |
|
|
|
Cookies.set("user", response.data, { expires: expires }); |
|
|
|
|
|
|
|
// 可能不是从无权限公开页面跳入本页面的,可能直接封装的本页面作为入口,故重置以下 |
|
|
|
Cookies.set("bookId", res.rows[0].bookId, {expires: 30,}); |
|
|
|
Cookies.set("deptId", res.rows[0].deptId, {expires: 30,}); |
|
|
|
|
|
|
|
if (this.formData.identityCheck){ |
|
|
|
this.$router.push({ |
|
|
|
path: '/sunVillage_info/identity_check', |
|
|
|