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,6 +849,7 @@ ...@@ -849,6 +849,7 @@
computed: { computed: {
haveAuth() { haveAuth() {
return (accessName) => { return (accessName) => {
if(accessName === 'downloadFile') {
const auth = sessionStorage.getItem('access') const auth = sessionStorage.getItem('access')
if(auth === 'master') { return true } if(auth === 'master') { return true }
if(!auth) { if(!auth) {
...@@ -856,6 +857,9 @@ ...@@ -856,6 +857,9 @@
} else { } else {
return auth.split(',').includes(accessName) return auth.split(',').includes(accessName)
} }
} else {
return true
}
} }
}, },
colum () { colum () {
......
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