feat(card-walmart-info): 添加订单刷新调度功能
- 在订单列表的操作列中添加刷新调度按钮 - 实现重置订单状态的功能 - 调用接口成功后显示成功消息并重新获取数据
This commit is contained in:
@@ -153,6 +153,13 @@
|
||||
</template>
|
||||
<template #operation="{ record }">
|
||||
<a-space size="small">
|
||||
<a-tooltip content="刷新调度">
|
||||
<a-button size="small" @click="resetStatus(record.orderNo)">
|
||||
<template #icon>
|
||||
<icon-list />
|
||||
</template>
|
||||
</a-button>
|
||||
</a-tooltip>
|
||||
<a-tooltip content="详情">
|
||||
<a-button
|
||||
size="small"
|
||||
@@ -192,7 +199,7 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { TableColumnData, Notification } from '@arco-design/web-vue';
|
||||
import { TableColumnData, Notification, Message } from '@arco-design/web-vue';
|
||||
import useLoading from '@/hooks/loading';
|
||||
import { Pagination } from '@/types/global';
|
||||
import { onMounted, reactive, ref } from 'vue';
|
||||
@@ -305,6 +312,16 @@ const generateFormModel = () => {
|
||||
groupId: null
|
||||
};
|
||||
};
|
||||
|
||||
const resetStatus = async (orderNo: string) => {
|
||||
await apiClient
|
||||
.apiCardInfoWalmartAccountStatusResetPut({ id: orderNo })
|
||||
.then(() => {
|
||||
Message.success('重置成功');
|
||||
search();
|
||||
});
|
||||
};
|
||||
|
||||
const { loading, setLoading } = useLoading(true);
|
||||
const renderData = ref<KamiInternalModelEntityV1CardRedeemOrderInfo[]>([]);
|
||||
const formModel = ref<{
|
||||
|
||||
Reference in New Issue
Block a user