[update 一般检索-查看文本] 查看企标文件去掉权限校验

This commit is contained in:
danshihao
2024-09-30 16:14:26 +08:00
parent 8693a9bffa
commit 49770fb415
+2 -19
View File
@@ -154,8 +154,7 @@ import {
} from '../../../api/standardRegulationLibraryApi'
import {
getEnterpriseStandardAddForm,
getEnterpriseStandardInfoById,
isCanLookDetail
getEnterpriseStandardInfoById
} from '../../../api/enterpriseStandardLibraryApi'
import Vue from 'vue'
import { previewPdf } from '../../../utils/previewPdf'
@@ -588,23 +587,7 @@ export default {
this.goDetail(record)
} else {
this.adjustFunc(record.resourceType)
if (record.resourceType === '3') { // 企标打开需要权限验证
console.log('record', record)
isCanLookDetail(record).then(res => {
console.log('res', res)
if (res.success) {
if (res.result) {
this.filePreview13(record)
} else {
this.$message.warn('您没有查看该文件的权限')
}
} else {
this.$message.warn(res.message)
}
})
} else {
this.filePreview13(record)
}
this.filePreview13(record)
}
},
/**