From b2d51e12eba752d1bcf61272aa0b41252a03e0e7 Mon Sep 17 00:00:00 2001 From: gaoyuanwei <2826352639@qq.com> Date: Wed, 20 Jul 2022 16:18:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=80=E6=9C=AF=E6=96=87=E6=A1=A3=E6=8F=90?= =?UTF-8?q?=E7=A4=BA---=E9=AB=98=E7=BA=A7=E6=90=9C=E7=B4=A2=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=E7=BC=96=E8=BE=91---=E5=9F=BA=E7=A1=80=E8=AE=BE?= =?UTF-8?q?=E6=96=BDdec=E4=B8=8D=E8=A6=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Algorithm/AlgorithmUsageMode.vue | 2 +- .../components/Business/BusinessUsageMode.vue | 2 +- ...operOwningDepartmentAndServiceProvider.vue | 45 ++++++++++++++----- .../home/components/searchResultList.vue | 6 ++- .../views/newHome/components/Navigation.vue | 4 +- 5 files changed, 42 insertions(+), 17 deletions(-) diff --git a/front/src/views/detailsAll/components/Algorithm/AlgorithmUsageMode.vue b/front/src/views/detailsAll/components/Algorithm/AlgorithmUsageMode.vue index 82fb965c..8d9672ce 100644 --- a/front/src/views/detailsAll/components/Algorithm/AlgorithmUsageMode.vue +++ b/front/src/views/detailsAll/components/Algorithm/AlgorithmUsageMode.vue @@ -280,7 +280,7 @@ message.config({ top: '100px', // 距离顶部的位置 }) - message.error('暂未上传技术文档') + message.error('暂未开放技术文档.png') } } function technicalNew() { diff --git a/front/src/views/detailsAll/components/Business/BusinessUsageMode.vue b/front/src/views/detailsAll/components/Business/BusinessUsageMode.vue index c5b810ef..264b5d6e 100644 --- a/front/src/views/detailsAll/components/Business/BusinessUsageMode.vue +++ b/front/src/views/detailsAll/components/Business/BusinessUsageMode.vue @@ -214,7 +214,7 @@ message.config({ top: '100px', // 距离顶部的位置 }) - message.error('暂未上传技术文档') + message.error('暂未开放技术文档.png') } } function technicalNew() { diff --git a/front/src/views/detailsAll/components/Developer/DeveloperOwningDepartmentAndServiceProvider.vue b/front/src/views/detailsAll/components/Developer/DeveloperOwningDepartmentAndServiceProvider.vue index 32acb728..166335de 100644 --- a/front/src/views/detailsAll/components/Developer/DeveloperOwningDepartmentAndServiceProvider.vue +++ b/front/src/views/detailsAll/components/Developer/DeveloperOwningDepartmentAndServiceProvider.vue @@ -47,6 +47,8 @@ import DetalsTitle from '@/views/detailsAll/components/DetalsTitle' import { ref, defineProps, watch } from 'vue' import { pinyin } from 'pinyin-pro' + import { message } from 'ant-design-vue' + let flag = ref(true) let dataFrom = ref({ title: '使用方式', @@ -137,23 +139,42 @@ let obj = props.dataList.infoList.filter( (item) => item.attrType === '技术文档' )[0] - console.log('dataFrom.value.link', obj.attrValue) - window.open( - window.SITE_CONFIG.frontUrl + - 'hisense_office/onlinePreview?url=' + - btoa(encodeURI(obj.attrValue)) - ) + if (obj) { + window.open(window.SITE_CONFIG.frontUrl + obj.attrValue) + } else { + message.config({ + top: '100px', // 距离顶部的位置 + }) + message.error('暂未开放技术文档.png') + } + // window.open( + // window.SITE_CONFIG.frontUrl + + // 'hisense_office/onlinePreview?url=' + + // btoa(encodeURI(obj.attrValue)) + // ) } function technicaltow() { let obj = props.dataList.infoList.filter( (item) => item.attrType === '使用手册' )[0] - console.log('dataFrom.value.link', obj.attrValue) - window.open( - window.SITE_CONFIG.previewUrl + - 'hisense_office/onlinePreview?url=' + - btoa(encodeURI(obj.attrValue)) - ) + // console.log('dataFrom.value.link', obj.attrValue) + // window.open( + // window.SITE_CONFIG.previewUrl + + // 'hisense_office/onlinePreview?url=' + + // btoa(encodeURI(obj.attrValue)) + // ) + if (obj) { + window.open( + window.SITE_CONFIG.previewUrl + + 'hisense_office/onlinePreview?url=' + + btoa(encodeURI(obj.attrValue)) + ) + } else { + message.config({ + top: '100px', // 距离顶部的位置 + }) + message.error('暂未上传使用手册') + } } watch( () => props.dataList, diff --git a/front/src/views/home/components/searchResultList.vue b/front/src/views/home/components/searchResultList.vue index 96ded629..749ffc71 100644 --- a/front/src/views/home/components/searchResultList.vue +++ b/front/src/views/home/components/searchResultList.vue @@ -162,7 +162,11 @@ > {{ item.shareType || '--' }} --> -
+
{{ item.deptName || '--' }}
diff --git a/front/src/views/newHome/components/Navigation.vue b/front/src/views/newHome/components/Navigation.vue index ec86a101..8a12240f 100644 --- a/front/src/views/newHome/components/Navigation.vue +++ b/front/src/views/newHome/components/Navigation.vue @@ -56,7 +56,7 @@ - +