|
@@ -2,7 +2,7 @@
|
|
|
<custom-layout class="main">
|
|
|
<div class="w_1300">
|
|
|
<div class="one">
|
|
|
- <custom-search :cityList="cityList" :typeList="typeList" :is_search="false" :searchFields="searchFields"></custom-search>
|
|
|
+ <custom-search :cityList="cityList" :typeList="typeList" :is_search="false" :searchFields="searchFields" @toSearchInfo="toSearchInfo"></custom-search>
|
|
|
</div>
|
|
|
<el-col :span="24" class="two">
|
|
|
<div class="w_1300">
|
|
@@ -86,6 +86,11 @@ const search = async (query = { skip, limit }) => {
|
|
|
total.value = res.total
|
|
|
}
|
|
|
}
|
|
|
+// 搜索
|
|
|
+const toSearchInfo = async (data) => {
|
|
|
+ searchForm.value = data
|
|
|
+ await search({ skip, limit })
|
|
|
+}
|
|
|
// 查看详情
|
|
|
const toView = (item) => {
|
|
|
router.push({ path: '/service/detail', query: { id: item.id || item._id } })
|