From 7bc3912bb7d39fb2dfd745664625476aa47bdd36 Mon Sep 17 00:00:00 2001 From: "851673013@qq.com" <851673013@qq.com> Date: Tue, 21 Jun 2022 11:33:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=A6=E6=83=85=E9=A1=B5bug=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Algorithm/AlgorithmTopDetails.vue | 17 ++++++++++++++++- .../Business/BusinessTopDetails.vue | 17 ++++++++++++++++- .../DeveloperFunctionIntorduction.vue | 1 + ...operOwningDepartmentAndServiceProvider.vue | 13 ++++++++++++- .../Developer/DeveloperPresentation.vue | 19 ++++++++++++++++++- .../Developer/DeveloperTopDetails.vue | 17 ++++++++++++++++- 6 files changed, 79 insertions(+), 5 deletions(-) diff --git a/front/src/views/detailsAll/components/Algorithm/AlgorithmTopDetails.vue b/front/src/views/detailsAll/components/Algorithm/AlgorithmTopDetails.vue index 9407128a..44ebfcd0 100644 --- a/front/src/views/detailsAll/components/Algorithm/AlgorithmTopDetails.vue +++ b/front/src/views/detailsAll/components/Algorithm/AlgorithmTopDetails.vue @@ -12,7 +12,9 @@ {{ props.dataList.name }}

- {{ props.dataList.type }} + + {{ componentType || props.dataList.type }} + {{ props.dataList.shareType }} {{ props.dataList.shareCondition }}

@@ -77,6 +79,7 @@ }, }) } + const componentType = ref('') // 收藏 const goTOCollection = () => { console.log('收藏===================》', props.dataList) @@ -89,6 +92,12 @@ applicationArea.value = props.dataList.infoList.filter( (val) => val.attrType === '应用领域' )[0].attrValue + let obj = props.dataList.infoList.filter( + (val) => val.attrType === '组件类型' + )[0] + if (obj) { + componentType.value = obj.attrValue + } } watch( () => props.dataList, @@ -97,6 +106,12 @@ applicationArea.value = props.dataList.infoList.filter( (val) => val.attrType === '应用领域' )[0].attrValue + let obj = props.dataList.infoList.filter( + (val) => val.attrType === '组件类型' + )[0] + if (obj) { + componentType.value = obj.attrValue + } } } ) diff --git a/front/src/views/detailsAll/components/Business/BusinessTopDetails.vue b/front/src/views/detailsAll/components/Business/BusinessTopDetails.vue index 56cac162..64a4be26 100644 --- a/front/src/views/detailsAll/components/Business/BusinessTopDetails.vue +++ b/front/src/views/detailsAll/components/Business/BusinessTopDetails.vue @@ -12,7 +12,9 @@ {{ props.dataList.name }}

- {{ props.dataList.type }} + + {{ componentType || props.dataList.type }} + {{ props.dataList.shareType }} {{ props.dataList.shareCondition }}

@@ -86,10 +88,17 @@ message.success('收藏成功') }) } + const componentType = ref('') if (props.dataList.infoList) { businessArea.value = props.dataList.infoList.filter( (val) => val.attrType === '应用领域' )[0].attrValue + let obj = props.dataList.infoList.filter( + (val) => val.attrType === '组件类型' + )[0] + if (obj) { + componentType.value = obj.attrValue + } } watch( () => props.dataList, @@ -98,6 +107,12 @@ businessArea.value = props.dataList.infoList.filter( (val) => val.attrType === '应用领域' )[0].attrValue + let obj = props.dataList.infoList.filter( + (val) => val.attrType === '组件类型' + )[0] + if (obj) { + componentType.value = obj.attrValue + } } } ) diff --git a/front/src/views/detailsAll/components/Developer/DeveloperFunctionIntorduction.vue b/front/src/views/detailsAll/components/Developer/DeveloperFunctionIntorduction.vue index 03d712d7..38b38178 100644 --- a/front/src/views/detailsAll/components/Developer/DeveloperFunctionIntorduction.vue +++ b/front/src/views/detailsAll/components/Developer/DeveloperFunctionIntorduction.vue @@ -151,6 +151,7 @@ font-size: 0.24rem; line-height: 0.24rem; margin-bottom: 0.2rem; + text-align: center; max-width: 2rem; height: 0.24rem; display: -webkit-box; diff --git a/front/src/views/detailsAll/components/Developer/DeveloperOwningDepartmentAndServiceProvider.vue b/front/src/views/detailsAll/components/Developer/DeveloperOwningDepartmentAndServiceProvider.vue index 7f845960..fba86c5c 100644 --- a/front/src/views/detailsAll/components/Developer/DeveloperOwningDepartmentAndServiceProvider.vue +++ b/front/src/views/detailsAll/components/Developer/DeveloperOwningDepartmentAndServiceProvider.vue @@ -18,7 +18,7 @@
技术文档
-
新手指引
+
新手指引
@@ -126,6 +126,17 @@ // btoa(encodeURI(dataFrom.value.link)) // ) } + 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)) + ) + } watch( () => props.dataList, (val) => { diff --git a/front/src/views/detailsAll/components/Developer/DeveloperPresentation.vue b/front/src/views/detailsAll/components/Developer/DeveloperPresentation.vue index 0f8ecd52..d1fa2b43 100644 --- a/front/src/views/detailsAll/components/Developer/DeveloperPresentation.vue +++ b/front/src/views/detailsAll/components/Developer/DeveloperPresentation.vue @@ -8,7 +8,10 @@