|
@@ -5,7 +5,7 @@
|
|
|
* @Author: Cheney
|
|
|
*/
|
|
|
|
|
|
-import { nextTick, onMounted, reactive, ref } from 'vue';
|
|
|
+import { nextTick, onBeforeMount, onMounted, reactive, ref } from 'vue';
|
|
|
import { Plus, Search, Upload } from '@element-plus/icons-vue';
|
|
|
import * as api from '../api';
|
|
|
import type { UploadInstance, UploadRawFile } from 'element-plus';
|
|
@@ -35,7 +35,7 @@ const tableLoading = ref(false);
|
|
|
const tableData = ref<DataItem[]>([]);
|
|
|
const total = ref(0);
|
|
|
const currentPage = ref(1);
|
|
|
-const pageSize = ref(10);
|
|
|
+const pageSize = ref(20);
|
|
|
|
|
|
const searchTermInpRef = ref();
|
|
|
|
|
@@ -121,6 +121,8 @@ async function fetchSearchTermList() {
|
|
|
console.error('==Error==', error);
|
|
|
} finally {
|
|
|
tableLoading.value = false;
|
|
|
+ await nextTick();
|
|
|
+ window.dispatchEvent(new Event('resize'));
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -359,8 +361,8 @@ function handleResponse(response: any) {
|
|
|
</el-card>
|
|
|
<!-- 表格 -->
|
|
|
<el-card shadow="hover" style="border: none">
|
|
|
- <div style="height: 535px; overflow: auto">
|
|
|
- <el-table :data="tableData" stripe style="width: 100%">
|
|
|
+ <div style="height: 800px;">
|
|
|
+ <el-table :data="tableData" height="800" stripe style="width: 100%">
|
|
|
<el-table-column fixed prop="add_date" label="添加日期" width="180" sortable>
|
|
|
<template #header>
|
|
|
<el-icon style="top: 2px; margin-right: 3px">
|
|
@@ -429,7 +431,7 @@ function handleResponse(response: any) {
|
|
|
<el-pagination
|
|
|
v-model:current-page="currentPage"
|
|
|
v-model:page-size="pageSize"
|
|
|
- :page-sizes="[10, 20, 30, 50]"
|
|
|
+ :page-sizes="[20, 40, 50, 100]"
|
|
|
layout="sizes, prev, pager, next"
|
|
|
:total="total"
|
|
|
@size-change="handleSizeChange"
|