|
@@ -22,7 +22,8 @@ const {
|
|
|
doChangePageSize,
|
|
|
doChangeInput,
|
|
|
doChangeFilter,
|
|
|
- setSortState
|
|
|
+ setSortState,
|
|
|
+ doChangeTab
|
|
|
} = SearchNzjModel
|
|
|
|
|
|
const { pathVisiting, createPathItem } = mixinVisited()
|
|
@@ -45,10 +46,8 @@ const matchKeys = computed(() => {
|
|
|
|
|
|
function goToDetail(item) {
|
|
|
const { proposed_id } = item
|
|
|
- console.log(item.visited, 'item.visited1')
|
|
|
item.visited = true
|
|
|
pathVisiting(createPathItem('/proposed/detail', `pid=${proposed_id}`))
|
|
|
- console.log(item.visited, 'item.visited2')
|
|
|
let keys = matchKeys.value.length ? matchKeys.value.join(',') : ''
|
|
|
const routeUrl = `/swordfish/page_web_pc/proposed/detail?pid=${proposed_id}&matchKey=${keys}`
|
|
|
window.open(routeUrl)
|
|
@@ -61,7 +60,10 @@ function goToDetail(item) {
|
|
|
<search-header-card
|
|
|
v-model="inputKeywordsState.input"
|
|
|
:tabs="searchTabs"
|
|
|
- placeholder="输入项目名称"
|
|
|
+ @change-tab="doChangeTab"
|
|
|
+ :placeholder="
|
|
|
+ filterParams.searchSort === 0 ? '输入项目名称' : '输入单位名称'
|
|
|
+ "
|
|
|
@search="doSearch"
|
|
|
>
|
|
|
<div class="tab-switch-content" slot="tab-switch-content">
|
|
@@ -159,11 +161,6 @@ function goToDetail(item) {
|
|
|
.search-nzj-filter {
|
|
|
margin-top: 16px;
|
|
|
background-color: #fff;
|
|
|
- ::v-deep {
|
|
|
- .flex-items-start {
|
|
|
- border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
|
|
|
- }
|
|
|
- }
|
|
|
.filter-button {
|
|
|
display: flex;
|
|
|
align-items: center;
|