Commit d6f65b16 authored by wangjiankun's avatar wangjiankun

fix:权限 容积率、成交总价 权限

parent 0702252d
......@@ -629,7 +629,7 @@
computed: {
haveAuth() {
return (accessName) => {
if(accessName) { return false }
if(accessName) { return true }
const auth = sessionStorage.getItem('access')
if (auth === 'master') {
return true
......
......@@ -288,7 +288,7 @@
computed: {
haveAuth() {
return (accessName) => {
if(accessName) { return false }
if(accessName) { return true }
const auth = sessionStorage.getItem('access')
if (auth === 'master') {
return true
......
......@@ -849,12 +849,16 @@
computed: {
haveAuth() {
return (accessName) => {
const auth = sessionStorage.getItem('access')
if(auth === 'master') { return true }
if(!auth) {
return false
if(accessName === 'downloadFile') {
const auth = sessionStorage.getItem('access')
if(auth === 'master') { return true }
if(!auth) {
return false
} else {
return auth.split(',').includes(accessName)
}
} else {
return auth.split(',').includes(accessName)
return true
}
}
},
......
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