From 44711ca96c57f6afa0d35d9dff5625475171682a Mon Sep 17 00:00:00 2001 From: Xia Zekun Date: Fri, 29 Mar 2024 10:05:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E9=A2=98/=E5=85=A8=E6=96=87=E6=A3=80?= =?UTF-8?q?=E7=B4=A2=EF=BC=8C=E4=BC=81=E6=A0=87=E6=95=B0=E6=8D=AE=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=9D=83=E9=99=90=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dashboard/search/GeneralSearch.vue | 24 ++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/src/views/dashboard/search/GeneralSearch.vue b/src/views/dashboard/search/GeneralSearch.vue index a2a24eac..63e913fa 100644 --- a/src/views/dashboard/search/GeneralSearch.vue +++ b/src/views/dashboard/search/GeneralSearch.vue @@ -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) + } } }, /**