From 57758bbfa4c377f0829fb1c23403579de7f22b40 Mon Sep 17 00:00:00 2001 From: a0049873 <79py69t9wb@privaterelay.appleid.com> Date: Mon, 18 Jul 2022 15:18:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=94=E7=94=A8=E8=B5=84=E6=BA=90=E8=83=BD?= =?UTF-8?q?=E5=8A=9B=E7=94=B3=E8=AF=B7BUG=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/public/static/config/location.js | 8 ++++---- front/src/views/home/apply.vue | 5 ++++- .../src/views/home/components/searchResultList.vue | 14 +++++++------- 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/front/public/static/config/location.js b/front/public/static/config/location.js index acba5bf8..d66ea6b5 100644 --- a/front/public/static/config/location.js +++ b/front/public/static/config/location.js @@ -1,13 +1,13 @@ /* * @Author: hisense.wuhongjian * @Date: 2020-07-07 16:03:23 - * @LastEditors: hisense.wuhongjian - * @LastEditTime: 2022-07-18 11:34:38 + * @LastEditors: hisense.liangjunhua + * @LastEditTime: 2022-07-18 15:07:32 * @Description: 数据资源参数配置 */ -//const newLocation = 'qingdao' +const newLocation = 'qingdao' // const newLocation = 'baotou' -const newLocation = 'xihaian' +// const newLocation = 'xihaian' // 数据资源数据 const whoShow = {} diff --git a/front/src/views/home/apply.vue b/front/src/views/home/apply.vue index 35924f62..41a6efb7 100644 --- a/front/src/views/home/apply.vue +++ b/front/src/views/home/apply.vue @@ -272,7 +272,10 @@ const num = ref(0) list.value.map((item) => { item.arr.map((val) => { - let obj = item.children.filter((type) => type.id == val.id)[0] + console.log(item, '组件===========================') + let obj = item.children + ? item.children.filter((type) => type.id == val.id)[0] + : val.type !== '应用资源' if (obj) { console.log('11111111111111111111111111111', obj, flag.value) if (obj.type !== '应用资源') { diff --git a/front/src/views/home/components/searchResultList.vue b/front/src/views/home/components/searchResultList.vue index 190d0a68..973483c4 100644 --- a/front/src/views/home/components/searchResultList.vue +++ b/front/src/views/home/components/searchResultList.vue @@ -547,13 +547,13 @@ time: item.createDate, type: item.type, componentType: - item.infoList.filter( - (val) => - (val.attrType == '组件类型')[0] && - item.infoList.filter( - (val) => val.attrType == '组件类型' - )[0].attrValue - ) || '', + (item.infoList.filter( + (val) => (val.attrType == '组件类型')[0] + ) && + item.infoList.filter( + (val) => val.attrType == '组件类型' + )[0].attrValue) || + '', }, ], deptId: item.deptId,