BUG修改

This commit is contained in:
a0049873 2022-07-01 18:54:03 +08:00
parent 076ea19f88
commit 6550188e13
1 changed files with 8 additions and 5 deletions

View File

@ -2,7 +2,7 @@
* @Author: hisense.liangjunhua * @Author: hisense.liangjunhua
* @Date: 2022-06-08 11:56:28 * @Date: 2022-06-08 11:56:28
* @LastEditors: hisense.liangjunhua * @LastEditors: hisense.liangjunhua
* @LastEditTime: 2022-07-01 14:21:10 * @LastEditTime: 2022-07-01 18:52:34
* @Description: 算法详情页头部 * @Description: 算法详情页头部
--> -->
<template> <template>
@ -29,8 +29,8 @@
</div> </div>
<div class="main"> <div class="main">
<a-tooltip placement="top"> <a-tooltip placement="top">
<template #title>应用领域{{ applicationArea }}</template> <template #title>应用领域{{ businessArea }}</template>
<div>应用领域{{ applicationArea }}</div> <div>应用领域{{ businessArea }}</div>
</a-tooltip> </a-tooltip>
<a-tooltip placement="top"> <a-tooltip placement="top">
<template #title>{{ props.dataList.description }}</template> <template #title>{{ props.dataList.description }}</template>
@ -117,6 +117,7 @@
} }
const componentType = ref('') const componentType = ref('')
if (props.dataList.infoList) { if (props.dataList.infoList) {
console.log('val==========>', props.dataList.infoList)
businessArea.value = props.dataList.infoList.filter( businessArea.value = props.dataList.infoList.filter(
(val) => val.attrType === '应用领域' (val) => val.attrType === '应用领域'
)[0].attrValue )[0].attrValue
@ -127,15 +128,17 @@
componentType.value = obj.attrValue componentType.value = obj.attrValue
} }
} }
console.log('val==========>', props.dataList.infoList)
watch( watch(
() => props.dataList, () => props.dataList,
(val) => { (val) => {
if (val) { if (val) {
console.log('val==========>', val)
businessArea.value = props.dataList.infoList.filter( businessArea.value = props.dataList.infoList.filter(
(val) => val.attrType === '应用领域' (item) => item.attrType === '应用领域'
)[0].attrValue )[0].attrValue
let obj = props.dataList.infoList.filter( let obj = props.dataList.infoList.filter(
(val) => val.attrType === '组件类型' (item) => item.attrType === '组件类型'
)[0] )[0]
if (obj) { if (obj) {
componentType.value = obj.attrValue componentType.value = obj.attrValue