[update 一般检索-查看文本] 查看企标文件去掉权限校验
This commit is contained in:
@@ -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)
|
||||
}
|
||||
},
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user