|
@@ -48,6 +48,8 @@ const searchDropdownValue = ref([])
|
|
|
const queryParams = ref({
|
|
const queryParams = ref({
|
|
|
title: "",
|
|
title: "",
|
|
|
auditStatus: 1,
|
|
auditStatus: 1,
|
|
|
|
|
+ orderByColumn: "readCount",
|
|
|
|
|
+ isAsc: "desc",
|
|
|
})
|
|
})
|
|
|
const searchPlaceholder = ref("搜索校友互助标题")
|
|
const searchPlaceholder = ref("搜索校友互助标题")
|
|
|
|
|
|
|
@@ -83,13 +85,16 @@ function onSearch() {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function search() {
|
|
function search() {
|
|
|
- const params = {
|
|
|
|
|
|
|
+ const params: any = {
|
|
|
auditStatus: 1,
|
|
auditStatus: 1,
|
|
|
title: searchInputValue.value || "",
|
|
title: searchInputValue.value || "",
|
|
|
category: searchDropdownValue.value[0] || "",
|
|
category: searchDropdownValue.value[0] || "",
|
|
|
orderByColumn: "readCount",
|
|
orderByColumn: "readCount",
|
|
|
isAsc: "desc",
|
|
isAsc: "desc",
|
|
|
}
|
|
}
|
|
|
|
|
+ if (searchType.value) {
|
|
|
|
|
+ params.category = searchType.value
|
|
|
|
|
+ }
|
|
|
queryParams.value = params
|
|
queryParams.value = params
|
|
|
}
|
|
}
|
|
|
|
|
|