allow delete order, add question box pagination

This commit is contained in:
2024-07-26 23:39:27 +08:00
parent 03bc9396aa
commit 1546d0a2bd
3 changed files with 114 additions and 40 deletions

View File

@@ -16,6 +16,7 @@ import {
NButton,
NDataTable,
NDivider,
NEmpty,
NFlex,
NIcon,
NInput,
@@ -60,6 +61,8 @@ const orderAsOwner = computed(() => {
})
const selectedItem = ref<DataTableRowKey[]>()
const emit = defineEmits(['selectedItem'])
const showDetailModal = ref(false)
const orderDetail = ref<ResponsePointOrder2UserModel | ResponsePointOrder2OwnerModel>()
const currentGoods = computed(() => {
@@ -350,6 +353,11 @@ onMounted(() => {
:data="order"
:pagination="{ showSizePicker: true, pageSizes: [10, 25, 50, 100], defaultPageSize: 10, size: 'small' }"
size="small"
@update:checked-row-keys="keys => emit('selectedItem', keys)"
>
<template #empty>
<NEmpty description="暂无订单" />
</template>
>
</NDataTable>
<NModal