From 2d9a8e4beeab81ca68893154c9e389981d900630 Mon Sep 17 00:00:00 2001 From: Xia Zekun Date: Wed, 5 Jun 2024 15:50:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=98=BE=E7=A4=BA=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit ef4943d0fad11af48916a7f096906d21be3c6917) --- src/main.js | 2 - src/views/search/generalSearch.vue | 118 +++++++++++++---------------- 2 files changed, 53 insertions(+), 67 deletions(-) diff --git a/src/main.js b/src/main.js index efd59af..7aa7692 100644 --- a/src/main.js +++ b/src/main.js @@ -93,8 +93,6 @@ new Vue({ Toast(e.message) }) } - console.log('跳转到搜索页') - this.$router.push({ path: '/search/generalSearch' }) }, render: h => h(App) }).$mount('#app') diff --git a/src/views/search/generalSearch.vue b/src/views/search/generalSearch.vue index 0f9fb92..823e1a1 100644 --- a/src/views/search/generalSearch.vue +++ b/src/views/search/generalSearch.vue @@ -14,21 +14,6 @@ @search="onInputSearch" /> - - - - - - - - - - - - - - -
@@ -80,42 +65,22 @@ @@ -270,6 +229,11 @@ export default { methods: { isHasPermission, + getTagLabel (item) { + const resourceTypeOption = this.resourceTypeOptions.find(i => i.key === item.resourceType) + if (resourceTypeOption && resourceTypeOption.label) return resourceTypeOption.label + }, + loadResultFromSession () { // 从session获取搜索结果 this.searchParam = JSON.parse(sessionStorage.getItem('searchParam')) @@ -408,6 +372,8 @@ export default { } this.loading = true func(this.searchParam).then(res => { + console.log('res', res) + this.loading = false if (res.success) { this.dataSource = res.result.records if (res.result.total) { @@ -769,6 +735,16 @@ export default {