From 5d2c39fb446b384dcfe3035c5755a31d5e55286d Mon Sep 17 00:00:00 2001 From: guoyue Date: Thu, 7 Jul 2022 14:31:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=9E=8D=E5=90=88=E6=9C=8D=E5=8A=A1=EF=BC=9A?= =?UTF-8?q?=E4=B8=80=E9=94=AE=E7=94=B3=E8=AF=B7=E7=9A=84=E5=AD=98=E5=82=A8?= =?UTF-8?q?=E6=95=B0=E7=BB=84=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../home/components/searchResultList.vue | 42 ++++++++++++------- 1 file changed, 26 insertions(+), 16 deletions(-) diff --git a/front/src/views/home/components/searchResultList.vue b/front/src/views/home/components/searchResultList.vue index 5b8574a2..8b3090d9 100644 --- a/front/src/views/home/components/searchResultList.vue +++ b/front/src/views/home/components/searchResultList.vue @@ -277,6 +277,11 @@ export default { let shoppingKey = ref(1) // 融合服务排序 const orderList = ref([ + { + value: 'collectCount', + name: '收藏量', + orderType: 'DESC' + }, { value: 'create_date', name: '发布时间', @@ -478,24 +483,29 @@ export default { // 融合服务--一键申请 const handleAKeyApplication = (item) => { + let _applyList = []; + (item.fuseResourceList || []).map(v => { + let resource = v.resource || {} + let obj = { + arr: [ + { + delFlag: resource.delFlag, + description: resource.description, + resourceId: resource.id, + resourceName: resource.name, + time: resource.createDate, + type: resource.type, + }, + ], + deptId: resource.deptId, + deptName: resource.deptName, + } + _applyList.push(obj) + }) + localStorage.setItem( 'applyList', - JSON.stringify([ - { - arr: [ - { - delFlag: item.delFlag, - description: item.description, - resourceId: item.id, - resourceName: item.name, - time: item.createDate, - type: item.type, - }, - ], - deptId: item.deptId, - deptName: item.deptName, - }, - ]) + JSON.stringify(_applyList) ) router.push({ path: '/apply',