|
|
@@ -5,12 +5,8 @@ import { useRowClickStyle } from '@/hooks/rowClickStyle'
|
|
|
import { formatNumber } from '@/utils/tools'
|
|
|
import { useRouter } from 'vue-router'
|
|
|
import { useCalculatingHeight } from '@/hooks/calculatingHeight'
|
|
|
-import emptyImgLight from './images/empty-light.png'
|
|
|
-import emptyImgDark from './images/empty-dark.png'
|
|
|
-import { useThemeStore } from '@/stores/modules/theme'
|
|
|
|
|
|
const router = useRouter()
|
|
|
-const themeStore = useThemeStore()
|
|
|
|
|
|
const textSearch = ref('')
|
|
|
// search report name
|
|
|
@@ -18,10 +14,6 @@ const SearchInput = () => {
|
|
|
getTableData()
|
|
|
}
|
|
|
|
|
|
-const emptyImg = computed(() => {
|
|
|
- return themeStore.theme === 'dark' ? emptyImgDark : emptyImgLight
|
|
|
-})
|
|
|
-
|
|
|
const filterRef: Ref<HTMLElement | null> = ref(null)
|
|
|
const containerHeight = useCalculatingHeight(document.documentElement, 256, [filterRef])
|
|
|
|
|
|
@@ -140,8 +132,7 @@ onMounted(() => {
|
|
|
>
|
|
|
<!-- 空数据时的插槽 -->
|
|
|
<template #empty>
|
|
|
- <img :src="emptyImg" />
|
|
|
- <div class="empty-text">No data</div>
|
|
|
+ <TableImgEmpty />
|
|
|
</template>
|
|
|
<template #action="{ row }">
|
|
|
<el-button class="el-button--blue" @click="handleClickDetail(row)" style="height: 24px">
|
|
|
@@ -228,11 +219,4 @@ onMounted(() => {
|
|
|
:deep(.el-icon svg) {
|
|
|
width: 1em !important;
|
|
|
}
|
|
|
-.empty-text {
|
|
|
- margin: 8px 0;
|
|
|
- color: var(--color-neutral-2);
|
|
|
- text-align: center;
|
|
|
- font-size: 14px;
|
|
|
- font-weight: 700;
|
|
|
-}
|
|
|
</style>
|