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 || '--' }} --> -