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 @@
-
-
-
-
-
-
-
-
-
-
-
{{ resourceTypeOptions.find(i => i.key === item.resourceType).label }}
-
-
-
{{ StandardStatus.ABOLISH.text }}
-
-
{{ $t('dashboard.generalSearch.releaseDate') }} {{ item.releaseDate || global.emptyLine }}
-
+
+
+
+
+ {{ getTagLabel(item) }}
+
+ {{ StandardStatus.ABOLISH.text }}
+ {{ item.releaseDate || global.emptyLine }}
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -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 {