|
@@ -3,6 +3,7 @@ import SearchHeaderCard from '@/views/search/components/search-header-card.vue'
|
|
|
import SearchSchemaFilter from '@/views/search/components/search-schema-filter.vue'
|
|
|
import SearchList from '@/views/search/layout/search-list.vue'
|
|
|
import { SupplyArticleItem } from '@jy/pc-ui'
|
|
|
+import { onMounted } from 'vue'
|
|
|
import { SearchSupplyBaseSchema } from './constant/search-filters'
|
|
|
// 导入业务模型
|
|
|
import { useSearchSupplyModel, SearchSupplyModel } from './model/index'
|
|
@@ -18,6 +19,7 @@ const {
|
|
|
searchTabs,
|
|
|
inputKeywordsState,
|
|
|
doSearch,
|
|
|
+ getFormatAPIParams,
|
|
|
searchListProps,
|
|
|
doChangePageNum,
|
|
|
doChangePageSize,
|
|
@@ -38,6 +40,18 @@ function goDetail(item) {
|
|
|
const routerUrl = `/swordfish/page_web_pc/demand/detail/${id}?matchKey=${inputKeywordsState.value.input}`
|
|
|
window.open(routerUrl)
|
|
|
}
|
|
|
+
|
|
|
+function goWorkSpaceCustom() {
|
|
|
+ const supplyData = {
|
|
|
+ showFilter: showFilter.value,
|
|
|
+ keywords: inputKeywordsState.value.input,
|
|
|
+ filterState: filterState.value,
|
|
|
+ ...getFormatAPIParams()
|
|
|
+ }
|
|
|
+ // 保存数据,进入工作台
|
|
|
+ sessionStorage.setItem('supplyData', JSON.stringify(supplyData))
|
|
|
+ window.location.replace('/page_workDesktop/work-bench/app/search/supply')
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<template>
|
|
@@ -48,6 +62,7 @@ function goDetail(item) {
|
|
|
:tabs="searchTabs"
|
|
|
placeholder="输入您想要查询的供应信息,多个关键词用空格隔开"
|
|
|
@search="doSearch"
|
|
|
+ @goWorkSpace="goWorkSpaceCustom"
|
|
|
>
|
|
|
<div
|
|
|
class="toggle-filter m-l-16px font-size-14px"
|