Commit d6f65b16 authored by wangjiankun's avatar wangjiankun

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

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