[update] 修改bug87487
This commit is contained in:
@@ -380,12 +380,8 @@ export default {
|
|||||||
},
|
},
|
||||||
fileIsDownload () { // 文件是否可下载
|
fileIsDownload () { // 文件是否可下载
|
||||||
if (Object.keys(this.filePerm).includes(this.uploadName)) {
|
if (Object.keys(this.filePerm).includes(this.uploadName)) {
|
||||||
// 系统管理员可下载
|
// 需要特殊判断的字段不可下载
|
||||||
if (this.isSystemAdmin) {
|
return false
|
||||||
return true
|
|
||||||
} else {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
// 不是需要特殊判断的字段正常可下载
|
// 不是需要特殊判断的字段正常可下载
|
||||||
return true
|
return true
|
||||||
|
|||||||
@@ -218,12 +218,8 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
fileIsDownload (fieldName) { // 文件是否可下载
|
fileIsDownload (fieldName) { // 文件是否可下载
|
||||||
if (Object.keys(this.filePerm).includes(fieldName)) {
|
if (Object.keys(this.filePerm).includes(fieldName)) {
|
||||||
// 系统管理员可下载
|
// 需要特殊判断的字段不可下载
|
||||||
if (this.isSystemAdmin) {
|
return false
|
||||||
return true
|
|
||||||
} else {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
// 不是需要特殊判断的字段正常可下载
|
// 不是需要特殊判断的字段正常可下载
|
||||||
return true
|
return true
|
||||||
|
|||||||
Reference in New Issue
Block a user