标题/全文检索,企标数据添加权限检查
This commit is contained in:
@@ -141,7 +141,11 @@ import {
|
||||
getOverseasStandardForm,
|
||||
getOverseasStandardDocumentInfo
|
||||
} from '../../../api/standardRegulationLibraryApi'
|
||||
import { getEnterpriseStandardAddForm, getEnterpriseStandardInfoById } from '../../../api/enterpriseStandardLibraryApi'
|
||||
import {
|
||||
getEnterpriseStandardAddForm,
|
||||
getEnterpriseStandardInfoById,
|
||||
isCanLookDetail
|
||||
} from '../../../api/enterpriseStandardLibraryApi'
|
||||
import Vue from 'vue'
|
||||
import { previewPdf } from '../../../utils/previewPdf'
|
||||
import { kkFilePreview } from '../../../utils/kkFilePreview'
|
||||
@@ -508,7 +512,23 @@ export default {
|
||||
if (record.resourceType === '4') {
|
||||
this.goDetail(record)
|
||||
} else {
|
||||
this.filePreview13(record)
|
||||
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)
|
||||
}
|
||||
}
|
||||
},
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user