修复首页地图显示问题和版本管理页面错误
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -15,7 +15,7 @@ interface BulkActionsProps<T> {
|
||||
|
||||
const { table, entityName: _entityName } = defineProps<BulkActionsProps<T>>()
|
||||
|
||||
const selectedRows = computed(() => table.getSelectedRowModel().rows)
|
||||
const selectedRows = computed(() => table.getSelectedRowModel().rows || [])
|
||||
const selectedCount = computed(() => selectedRows.value.length || 0)
|
||||
|
||||
function handleClearSelection() {
|
||||
|
||||
@@ -40,7 +40,7 @@ function getCommonPinningStyles(column: Column<T>): CSSProperties {
|
||||
|
||||
<template>
|
||||
<div class="space-y-4">
|
||||
<slot name="toolbar" :selected-count="table.getSelectedRowModel().rows.length" />
|
||||
<slot name="toolbar" :selected-count="table.getSelectedRowModel().rows?.length || 0" />
|
||||
<slot name="filters" />
|
||||
<div class="border rounded-md">
|
||||
<Table>
|
||||
|
||||
@@ -58,7 +58,7 @@ const canNextPage = computed(() => {
|
||||
return props.table.getCanNextPage()
|
||||
})
|
||||
|
||||
const selectedCount = computed(() => props.table.getSelectedRowModel().rows.length)
|
||||
const selectedCount = computed(() => props.table.getSelectedRowModel().rows?.length || 0)
|
||||
|
||||
const jumpPage = ref<string>('')
|
||||
const isEditingPage = ref(false)
|
||||
|
||||
@@ -477,7 +477,7 @@ watch(() => formData.value.application_id, (newAppId) => {
|
||||
<UiSelectValue :placeholder="t('admin.versions.createForm.baseVersionPlaceholder')" />
|
||||
</UiSelectTrigger>
|
||||
<UiSelectContent>
|
||||
<UiSelectItem value="">
|
||||
<UiSelectItem value="__none__">
|
||||
{{ t('admin.versions.createForm.noBaseVersion') }}
|
||||
</UiSelectItem>
|
||||
<UiSelectItem
|
||||
|
||||
@@ -260,7 +260,7 @@ watch([appFilter, strategyFilter, methodFilter, searchFilter], () => {
|
||||
</UiCardHeader>
|
||||
<UiCardContent>
|
||||
<div class="text-2xl font-bold">
|
||||
{{ filteredVersions.length }}
|
||||
{{ versions.length }}
|
||||
</div>
|
||||
</UiCardContent>
|
||||
</UiCard>
|
||||
@@ -302,7 +302,7 @@ watch([appFilter, strategyFilter, methodFilter, searchFilter], () => {
|
||||
</UiCardHeader>
|
||||
<UiCardContent>
|
||||
<div class="text-2xl font-bold">
|
||||
{{ new Set(filteredVersions.map(v => v.application_id)).size }}
|
||||
{{ new Set(versions.map(v => v.application_id)).size }}
|
||||
</div>
|
||||
</UiCardContent>
|
||||
</UiCard>
|
||||
|
||||
Reference in New Issue
Block a user