Commit 14388ef9 by chengming

修改阅卷

parent 8355b1f3
File deleted
...@@ -55,8 +55,12 @@ export function exfetchR(data, cb, check) { ...@@ -55,8 +55,12 @@ export function exfetchR(data, cb, check) {
const authRole = res?.data?.authRole || []; const authRole = res?.data?.authRole || [];
if (authRole.length > 0) { if (authRole.length > 0) {
userPermissions = JSON.stringify(authRole.map(role => role.code)); userPermissions = JSON.stringify(authRole.map(role => role.code));
console.log('userPermissions222222222222222222', userPermissions)
window.localStorage.setItem("userPermissions", userPermissions);
}else{
window.localStorage.setItem("userPermissions", userPermissions);
} }
window.localStorage.setItem("userPermissions", userPermissions);
//只有社群的话直接滚走去社群 //只有社群的话直接滚走去社群
if (res.data.isOnlyCommunity) { if (res.data.isOnlyCommunity) {
sessionStorage.setItem("mgtk", res.data.Authorization); sessionStorage.setItem("mgtk", res.data.Authorization);
......
...@@ -138,6 +138,7 @@ class ExamCheck extends Component { ...@@ -138,6 +138,7 @@ class ExamCheck extends Component {
<div className="operation" style={{ width: 154 }}> <div className="operation" style={{ width: 154 }}>
<Permission <Permission
permission={[ permission={[
"edu_party_member:one",
"edu_party_member:two", "edu_party_member:two",
"edu_party_member:three", "edu_party_member:three",
"edu_site_admin", "edu_site_admin",
......
...@@ -47,8 +47,6 @@ export default function request(opt) { ...@@ -47,8 +47,6 @@ export default function request(opt) {
}; };
} }
let cloneData = data ? cloneDeep(data) : new Object(); let cloneData = data ? cloneDeep(data) : new Object();
console.log("companyCode", companyCode);
console.log("cloneData.companyCode", companyCode);
try { try {
cloneData.companyCode = companyCode; cloneData.companyCode = companyCode;
......
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