|
@@ -6,11 +6,11 @@
|
|
|
<headSearch
|
|
|
v-model="headSearchText"
|
|
|
text="中国"
|
|
|
- @handleSearch="val => handleMounted('content', val)"
|
|
|
+ @handleSearch="val => handleQueryChange('content', val)"
|
|
|
></headSearch>
|
|
|
</div>
|
|
|
- <cityFilter class="mx-5 mb-3" ref="cityFilterRef" @change="handleMounted"></cityFilter>
|
|
|
- <conditionFilter class="mx-5 mb-3" ref="conditionFilterRef" @change="handleMounted"></conditionFilter>
|
|
|
+ <cityFilter class="mx-5 mb-3" ref="cityFilterRef" @change="handleQueryChange"></cityFilter>
|
|
|
+ <conditionFilter class="mx-5 mb-3" ref="conditionFilterRef" @change="handleQueryChange"></conditionFilter>
|
|
|
</div>
|
|
|
<div class="d-flex mt-3">
|
|
|
<div class="mr-3" style="min-width: 884px;">
|
|
@@ -105,7 +105,7 @@ const updateRouter = () => {
|
|
|
getData()
|
|
|
}
|
|
|
|
|
|
-const handleMounted = (key, val) => { // val为字符串,数组的话用_下划线分隔
|
|
|
+const handleQueryChange = (key, val) => { // val为字符串,数组的话用_下划线分隔
|
|
|
routeQuery[key] = val
|
|
|
// console.log('routeQuery', key, val)
|
|
|
updateRouter()
|
|
@@ -127,7 +127,7 @@ const handleMounted = (key, val) => { // val为字符串,数组的话用_下划
|
|
|
// if (routeQuery[i].indexOf('_') !== -1) pageReqVO[i] = routeQuery[i].split('_')
|
|
|
// else pageReqVO[i] = routeQuery[i]
|
|
|
// }
|
|
|
-// if (routeQuery.content) handleMounted(routeQuery.content, 'content')
|
|
|
+// if (routeQuery.content) handleQueryChange(routeQuery.content, 'content')
|
|
|
// getData()
|
|
|
// } else getData()
|
|
|
|