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