Commit 344bb3ed authored by liwenhong's avatar liwenhong

fix:认证审核btn失效

parent 1cf4da6f
......@@ -333,6 +333,8 @@
import Layout from "@/layouts";
import { getRecordInfo, getLog, postAudit } from "@/service/enterprise";
import EnterpriseForm from "../components/enterpriseForm.vue";
import { getCookie } from "@/utils/util";
export default {
name: "Audit",
components: { Layout, EnterpriseForm },
......@@ -421,8 +423,8 @@ export default {
async auditResult (status) {
const params = {
audit_status: status,
audit_user_name: this.$store.state.userInfo.name,
audit_user_id: this.$store.state.userInfo.userid,
audit_user_name: (this.$store.state.userInfo && this.$store.state.userInfo.name) || getCookie('nickname'),
audit_user_id: (this.$store.state.userInfo && this.$store.state.userInfo.userid) || getCookie('userid'),
enterprise_auth_record_id: this.auditId,
audit_opinion: this.opinionArea
};
......
......@@ -40,7 +40,7 @@ export function setCookie(name, value) {
var hour = 8;
var exp = new Date();
exp.setTime(exp.getTime() + hour*60*60*1000);
document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString()+";path=/";
document.cookie = name + "="+ value + ";expires=" + exp.toGMTString()+";path=/";
}
//获取cookie
......@@ -51,7 +51,7 @@ export function getCookie(NameOfCookie) {
begin += NameOfCookie.length + 1;
let end = document.cookie.indexOf(";", begin);
if (end === -1) end = document.cookie.length;
return unescape(document.cookie.substring(begin, end));
return document.cookie.substring(begin, end);
}
}
return null;
......
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