|
|
@@ -156,7 +156,9 @@ const changeSearchFor = async(name) => {
|
|
|
}
|
|
|
let res = await flieSearch({
|
|
|
keyword:searchText.value,
|
|
|
- type:fileTypes
|
|
|
+ type:fileTypes,
|
|
|
+ pageSize: 20,
|
|
|
+ pageNum: 1,
|
|
|
})
|
|
|
console.log(res.rows,'filter');
|
|
|
tableData.value = res.rows
|
|
|
@@ -316,7 +318,7 @@ async function handleScroll(e) {
|
|
|
keyword: searchText.value,
|
|
|
isAsc: "asc",
|
|
|
orderByColumn: "createTime",
|
|
|
- pageSize: 10,
|
|
|
+ pageSize: 20,
|
|
|
pageNum: numnum,
|
|
|
};
|
|
|
const res = await flieSearch(query);
|
|
|
@@ -332,19 +334,20 @@ onMounted(() => {
|
|
|
let searchData = parData.searchData;
|
|
|
baseData.value = searchData.rows;
|
|
|
tableData.value = searchData.rows;
|
|
|
+ console.log('tableData',tableData.value);
|
|
|
total.value = searchData.total;
|
|
|
changeSearchFor('');
|
|
|
});
|
|
|
-onBeforeRouteUpdate((to, from) => {
|
|
|
- console.log('to', to);
|
|
|
- console.log('from', from);
|
|
|
-})
|
|
|
-watch(() => history, (newValue, oldValue) => {
|
|
|
- console.log('history 发生改变了', newValue, oldValue);
|
|
|
-}, {
|
|
|
- immediate: true,
|
|
|
- deep: true
|
|
|
-});
|
|
|
+// onBeforeRouteUpdate((to, from) => {
|
|
|
+// console.log('to', to);
|
|
|
+// console.log('from', from);
|
|
|
+// })
|
|
|
+// watch(() => history, (newValue, oldValue) => {
|
|
|
+// console.log('history 发生改变了', newValue, oldValue);
|
|
|
+// }, {
|
|
|
+// immediate: true,
|
|
|
+// deep: true
|
|
|
+// });
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|