update: task items添加过滤

This commit is contained in:
Kerwin
2025-08-11 17:51:04 +08:00
parent b567531a7d
commit 25c7c47c96
7 changed files with 96 additions and 46 deletions

View File

@@ -16,7 +16,7 @@
placeholder="请输入资源内容格式标题和URL为一组..."
:autosize="{ minRows: 10, maxRows: 15 }"
show-count
:maxlength="10000"
:maxlength="100000"
/>
</div>
</div>

View File

@@ -48,6 +48,7 @@
@update:page="handlePageChange"
@update:page-size="handlePageSizeChange"
:row-key="(row: any) => row.id"
virtual-scroll
max-height="500"
/>
</div>
@@ -66,7 +67,7 @@ const loading = ref(false)
const resources = ref<any[]>([])
const total = ref(0)
const currentPage = ref(1)
const pageSize = ref(20)
const pageSize = ref(10000)
// 搜索条件
const searchQuery = ref('')
@@ -79,9 +80,9 @@ const resourceApi = useResourceApi()
// 分页配置
const pagination = reactive({
page: 1,
pageSize: 20,
pageSize: 10000,
itemCount: 0,
pageSizes: [10, 20, 50, 100],
pageSizes: [10000, 20000, 50000, 100000],
showSizePicker: true,
showQuickJumper: true,
prefix: ({ itemCount }: any) => `${itemCount}`

View File

@@ -201,7 +201,7 @@
v-model:page="currentPage"
v-model:page-size="pageSize"
:item-count="total"
:page-sizes="[20, 50, 100, 200]"
:page-sizes="[10000, 20000, 50000, 100000]"
show-size-picker
show-quick-jumper
@update:page="handlePageChange"
@@ -259,7 +259,7 @@ const loading = ref(false)
const resources = ref([])
const total = ref(0)
const currentPage = ref(1)
const pageSize = ref(20)
const pageSize = ref(10000)
// 搜索条件
const searchQuery = ref('')