From d1e6b9acd7ca3bf1547b1fa30908644f429d6bcc Mon Sep 17 00:00:00 2001 From: a0049873 <79py69t9wb@privaterelay.appleid.com> Date: Tue, 23 Aug 2022 16:51:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A6=96=E9=A1=B5=20=20?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E6=95=B0=E6=8D=AE=E7=B1=BB=E5=9E=8B=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=20=20=20=EF=BC=8C=20=20=20=E4=BF=AE=E6=94=B9=20?= =?UTF-8?q?=E5=85=A8=E5=B1=80=E6=90=9C=E7=B4=A2=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/views/home/DetailsPageconetent.vue | 12 ++ .../components/CapabilityConvergence.vue | 201 +++++++++--------- .../views/newHome/components/Navigation.vue | 40 ++-- 3 files changed, 135 insertions(+), 118 deletions(-) diff --git a/front/src/views/home/DetailsPageconetent.vue b/front/src/views/home/DetailsPageconetent.vue index 34137e00..5279f043 100644 --- a/front/src/views/home/DetailsPageconetent.vue +++ b/front/src/views/home/DetailsPageconetent.vue @@ -1100,6 +1100,16 @@ getCountByFuzzyQuery(searchValue.value || '').then((res) => { console.log('全局搜索==========》', res.data.data) globalData.data = res.data.data + let mapFlag = true + res.data.data.map((val) => { + if (mapFlag && val.count != 0) { + mapFlag = false + changeCards(val.type) + } + }) + if (!mapFlag) { + return + } if (paramsGetResources.type == '基础设施') { console.log('camera1', camera.value) camera.value.getCamera(true, searchValue.value) @@ -1238,6 +1248,7 @@ val.applyCount = val.syqk // 申请量 val.deptName = val.TGBM // 部门 val.createDate = val.fbrq // 发布时间 + val.description = val.xgxt // 描述 }) resourceList.data = res.data.data.data || [] resourceTotal.value = res.data.data.rows || '' @@ -1334,6 +1345,7 @@ val.applyCount = val.syqk // 申请量 val.deptName = val.TGBM // 部门 val.createDate = val.fbrq // 发布时间 + val.description = val.xgxt // 描述 }) resourceList.data = res.data.data.data || [] resourceTotal.value = res.data.data.rows || '' diff --git a/front/src/views/newHome/components/CapabilityConvergence.vue b/front/src/views/newHome/components/CapabilityConvergence.vue index 5178e60e..22690f49 100644 --- a/front/src/views/newHome/components/CapabilityConvergence.vue +++ b/front/src/views/newHome/components/CapabilityConvergence.vue @@ -135,6 +135,7 @@ val.applyCount = val.syqk // 申请量 val.deptName = val.TGBM // 部门 val.createDate = val.fbrq // 发布时间 + val.description = val.xgxt // 描述 }) obj.value = res.data.data.data || [] object.sjNum = res.data.data.rows @@ -291,113 +292,113 @@ } diff --git a/front/src/views/newHome/components/Navigation.vue b/front/src/views/newHome/components/Navigation.vue index acf36bc9..988b11ad 100644 --- a/front/src/views/newHome/components/Navigation.vue +++ b/front/src/views/newHome/components/Navigation.vue @@ -167,7 +167,7 @@ '数据资源', '知识库', ]) - const select = ref('组件服务') + const select = ref(whoShow.itShowQingDao ? '' : '组件服务') let applicationDataList = ref([]) let technosphereDataList = ref([]) const fabubumen = ref([ @@ -326,31 +326,35 @@ text-align: center; margin: 0 0.1rem; font-size: 0.18rem; - background: linear-gradient( - to right, - rgba(68, 107, 164, 0.4) 0%, - rgba(68, 107, 164, 0) 100% - ); + // background: linear-gradient( + // to right, + // rgba(68, 107, 164, 0.4) 0%, + // rgba(68, 107, 164, 0) 100% + // ); color: white; - border-left: 0.02rem solid rgb(108, 147, 204); + // border-left: 0.02rem solid rgb(108, 147, 204); } span:nth-of-type(1) { margin-left: 0; } - span:hover { - background: linear-gradient( - to right, - rgba(68, 107, 164, 0.5) 0%, - rgba(68, 107, 164, 0.1) 100% - ); - } + // span:hover { + // background: linear-gradient( + // to right, + // rgba(68, 107, 164, 0.5) 0%, + // rgba(68, 107, 164, 0.1) 100% + // ); + // } .select { background: linear-gradient( - to right, - rgba(68, 107, 164, 0.8) 0%, - rgba(68, 107, 164, 0.4) 100% + to bottom, + rgba(255, 255, 255, 0.6) 0%, + rgba(61, 122, 214, 0.8) 20%, + rgb(50, 116, 215) 50%, + rgba(61, 122, 214, 0.8) 80%, + rgba(255, 255, 255, 0.6) 100% ) !important; - border-left: 0.02rem solid #fff; + border-radius: 0.5rem; + // border-left: 0.02rem solid #fff; } } .bottom {