From a2824f157f4ac6af83cc29303a54c77f9c22d0f9 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Fri, 20 Dec 2024 17:36:14 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=AE=E9=A2=98=E6=B8=85=E5=8D=95=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components.d.ts | 1 + src/components/equipCardHall/index.vue | 2 +- src/components/header/index.vue | 2 + src/layout/header.vue | 57 ++++++++++++++----- src/views/AppMain.vue | 22 ++++--- src/views/equip/detail.vue | 6 +- src/views/home/index.vue | 10 ++-- .../orderManagement/components/order-home.vue | 2 +- .../components/order-home.vue | 2 +- 9 files changed, 73 insertions(+), 31 deletions(-) diff --git a/components.d.ts b/components.d.ts index af20a38..8a1ab83 100644 --- a/components.d.ts +++ b/components.d.ts @@ -66,6 +66,7 @@ declare module 'vue' { TitleTip: typeof import('./src/components/TitleTip/index.vue')['default'] UploadComponent: typeof import('./src/components/uploadComponent/index.vue')['default'] UploadComponentNew: typeof import('./src/components/uploadComponentNew/index.vue')['default'] + UploadComponentNewTwo: typeof import('./src/components/uploadComponentNewTwo/index.vue')['default'] UploadImg: typeof import('./src/components/uploadImg.vue')['default'] } } diff --git a/src/components/equipCardHall/index.vue b/src/components/equipCardHall/index.vue index 8c79ed4..16fa808 100644 --- a/src/components/equipCardHall/index.vue +++ b/src/components/equipCardHall/index.vue @@ -79,7 +79,7 @@ const onHandelLessee = () => { flex-direction: column; img { - height: 140px; + height: 240px; } .title { diff --git a/src/components/header/index.vue b/src/components/header/index.vue index 0decea3..5a2f50f 100644 --- a/src/components/header/index.vue +++ b/src/components/header/index.vue @@ -52,6 +52,8 @@ const handlerLogout = () => { router.push('/login') store.cleanUpToken('') store.clearUserInfo('') + localStorage.clear() + sessionStorage.clear() ElMessage({ type: 'success', message: '已退出登录', diff --git a/src/layout/header.vue b/src/layout/header.vue index 2a55e07..6b75b74 100644 --- a/src/layout/header.vue +++ b/src/layout/header.vue @@ -62,6 +62,8 @@ const handlerLogout = () => { router.push('/login') store.cleanUpToken('') store.clearUserInfo('') + localStorage.clear() + sessionStorage.clear() ElMessage({ type: 'success', message: '已退出登录', @@ -104,6 +106,7 @@ const searchKeywordBtn = () => { keywordIptValue.value = keywordIptValue.value.replace(/\s*/g, '') store.addHistoryRecord(keywordIptValue.value) + if (route.path == '/equipList') { if (searchTypeName.value === '装备') { $bus.emit('search', keywordIptValue.value) @@ -115,7 +118,7 @@ const searchKeywordBtn = () => { } } if (route.path == '/parity') { - if (searchTypeName.value === '需求') { + if (searchTypeName.value == '需求') { $bus.emit('search', keywordIptValue.value) } else { router.push({ @@ -139,6 +142,35 @@ const searchKeywordBtn = () => { }) } } + if (route.path == '/enterpriseZone') { + if (searchTypeName.value == '装备') { + router.push({ + name: 'equipList', + query: { keyWord: keywordIptValue.value }, + }) + } + if (searchTypeName.value == '需求') { + router.push({ + name: 'parity', + query: { keyWord: keywordIptValue.value }, + }) + } + } + + if (route.path.includes('equipDetail')) { + if (searchTypeName.value == '装备') { + router.push({ + name: 'equipList', + query: { keyWord: keywordIptValue.value }, + }) + } + if (searchTypeName.value == '需求') { + router.push({ + name: 'parity', + query: { keyWord: keywordIptValue.value }, + }) + } + } } // 点击下方搜索记录时 @@ -224,7 +256,7 @@ const onJumpUser = () => {
-
+
-
+