[update] 修改bug87487

This commit is contained in:
lideqin
2024-08-02 16:50:14 +08:00
parent cd03df20ea
commit 569ef8bc7b
2 changed files with 4 additions and 12 deletions
+2 -6
View File
@@ -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