修复首页地图显示问题和版本管理页面错误
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 { 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)
|
const selectedCount = computed(() => selectedRows.value.length || 0)
|
||||||
|
|
||||||
function handleClearSelection() {
|
function handleClearSelection() {
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ function getCommonPinningStyles(column: Column<T>): CSSProperties {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="space-y-4">
|
<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" />
|
<slot name="filters" />
|
||||||
<div class="border rounded-md">
|
<div class="border rounded-md">
|
||||||
<Table>
|
<Table>
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ const canNextPage = computed(() => {
|
|||||||
return props.table.getCanNextPage()
|
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 jumpPage = ref<string>('')
|
||||||
const isEditingPage = ref(false)
|
const isEditingPage = ref(false)
|
||||||
|
|||||||
@@ -477,7 +477,7 @@ watch(() => formData.value.application_id, (newAppId) => {
|
|||||||
<UiSelectValue :placeholder="t('admin.versions.createForm.baseVersionPlaceholder')" />
|
<UiSelectValue :placeholder="t('admin.versions.createForm.baseVersionPlaceholder')" />
|
||||||
</UiSelectTrigger>
|
</UiSelectTrigger>
|
||||||
<UiSelectContent>
|
<UiSelectContent>
|
||||||
<UiSelectItem value="">
|
<UiSelectItem value="__none__">
|
||||||
{{ t('admin.versions.createForm.noBaseVersion') }}
|
{{ t('admin.versions.createForm.noBaseVersion') }}
|
||||||
</UiSelectItem>
|
</UiSelectItem>
|
||||||
<UiSelectItem
|
<UiSelectItem
|
||||||
|
|||||||
@@ -260,7 +260,7 @@ watch([appFilter, strategyFilter, methodFilter, searchFilter], () => {
|
|||||||
</UiCardHeader>
|
</UiCardHeader>
|
||||||
<UiCardContent>
|
<UiCardContent>
|
||||||
<div class="text-2xl font-bold">
|
<div class="text-2xl font-bold">
|
||||||
{{ filteredVersions.length }}
|
{{ versions.length }}
|
||||||
</div>
|
</div>
|
||||||
</UiCardContent>
|
</UiCardContent>
|
||||||
</UiCard>
|
</UiCard>
|
||||||
@@ -302,7 +302,7 @@ watch([appFilter, strategyFilter, methodFilter, searchFilter], () => {
|
|||||||
</UiCardHeader>
|
</UiCardHeader>
|
||||||
<UiCardContent>
|
<UiCardContent>
|
||||||
<div class="text-2xl font-bold">
|
<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>
|
</div>
|
||||||
</UiCardContent>
|
</UiCardContent>
|
||||||
</UiCard>
|
</UiCard>
|
||||||
|
|||||||
Reference in New Issue
Block a user