fix:修改对接订单列表参数
Build and Deploy Vue3 / build (push) Successful in 6m11s
Build and Deploy Vue3 / deploy (push) Failing after 1m35s

This commit is contained in:
2026-01-19 18:32:24 +08:00
parent 36271b8bd0
commit 0b57581799
+7 -10
View File
@@ -175,8 +175,8 @@
</el-tab-pane>
<el-tab-pane label="订单列表" name="3">
<el-table :data="userOrderList" v-loading="orderListLoading" stripe style="width: 100%">
<el-table-column prop="order_id" label="订单ID" width="100" />
<el-table-column prop="good_name" label="商品名称" min-width="150" show-overflow-tooltip />
<el-table-column prop="id" label="订单ID" width="100" />
<el-table-column prop="name" label="商品名称" min-width="150" show-overflow-tooltip />
<el-table-column prop="price" label="金额" width="100">
<template #default="{row}">¥{{ (row.price / 100).toFixed(2) }}</template>
</el-table-column>
@@ -210,7 +210,7 @@
<el-tab-pane label="工单列表" name="4">
<el-table :data="userTicketList" v-loading="ticketListLoading" stripe style="width: 100%">
<el-table-column prop="work_id" label="工单ID" width="100" />
<el-table-column prop="title" label="标题" min-width="150" show-overflow-tooltip />
<el-table-column prop="name" label="标题" min-width="150" show-overflow-tooltip />
<el-table-column prop="status" label="状态" width="100">
<template #default="{row}">
<el-tag :type="getTicketStatusType(row.status)" size="small">{{ getTicketStatusText(row.status) }}</el-tag>
@@ -270,12 +270,8 @@
<div class="balance-value danger">¥{{ (userBalance.total_consume / 100).toFixed(2) }}</div>
</div>
</div>
<el-divider />
<div class="balance-actions">
<el-button type="success" plain @click="handleRecharge">充值</el-button>
<el-button type="warning" plain @click="handleDeduct">扣款</el-button>
<el-button type="info" plain @click="handleViewBalanceHistory">余额记录</el-button>
</div>
</div>
</el-card>
</div>
@@ -939,8 +935,9 @@ const fetchUserOrderList = async () => {
page: orderListPage.value,
count: orderListPageSize.value
})
console.log('111',res)
if (res.data.code === 200) {
userOrderList.value = res.data.data.data || []
userOrderList.value = res.data.data.list || []
orderListTotal.value = res.data.data.all_count || 0
}
} catch (error) {