mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-06 18:36:55 +08:00
allow delete order, add question box pagination
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user