fix: search not found message
This commit is contained in:
parent
32449e7c4c
commit
f183216a1f
4 changed files with 5 additions and 2 deletions
|
|
@ -2,6 +2,7 @@
|
||||||
defineProps<{
|
defineProps<{
|
||||||
size?: number;
|
size?: number;
|
||||||
useField?: boolean;
|
useField?: boolean;
|
||||||
|
notFound?: boolean;
|
||||||
}>();
|
}>();
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
|
|
@ -14,7 +15,7 @@ defineProps<{
|
||||||
}"
|
}"
|
||||||
/>
|
/>
|
||||||
<div class="app-text-muted text-center">
|
<div class="app-text-muted text-center">
|
||||||
{{ useField ? $t('noField') : $t('noData') }}
|
{{ notFound ? $t('notFound') : useField ? $t('noField') : $t('noData') }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@ export default {
|
||||||
telephone: 'Telephone',
|
telephone: 'Telephone',
|
||||||
viewDetail: 'View Detail',
|
viewDetail: 'View Detail',
|
||||||
noData: 'No Data',
|
noData: 'No Data',
|
||||||
|
notFound: 'Data Not Found',
|
||||||
code: 'Code',
|
code: 'Code',
|
||||||
status: 'Status',
|
status: 'Status',
|
||||||
type: 'Type',
|
type: 'Type',
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@ export default {
|
||||||
telephone: 'เบอร์โทรศัพท์',
|
telephone: 'เบอร์โทรศัพท์',
|
||||||
viewDetail: 'ดูรายละเอียด',
|
viewDetail: 'ดูรายละเอียด',
|
||||||
noData: 'ยังไม่มีข้อมูล',
|
noData: 'ยังไม่มีข้อมูล',
|
||||||
|
notFound: 'ไม่พบข้อมูล',
|
||||||
code: 'รหัส',
|
code: 'รหัส',
|
||||||
type: 'ประเภท',
|
type: 'ประเภท',
|
||||||
status: 'สถานะ',
|
status: 'สถานะ',
|
||||||
|
|
|
||||||
|
|
@ -1403,7 +1403,7 @@ watch(currentPageService, async () => {
|
||||||
class="flex justify-center items-center q-mt-lg"
|
class="flex justify-center items-center q-mt-lg"
|
||||||
style="min-height: 70vh; background-color: var(--surface-2)"
|
style="min-height: 70vh; background-color: var(--surface-2)"
|
||||||
>
|
>
|
||||||
<NoData />
|
<NoData notFound />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue