diff --git a/backend/my_work/routers/apiPurchase.go b/backend/my_work/routers/apiPurchase.go index f54f9ce..245d8c2 100644 --- a/backend/my_work/routers/apiPurchase.go +++ b/backend/my_work/routers/apiPurchase.go @@ -447,7 +447,7 @@ func ApiPurchase(r *gin.RouterGroup) { //读取条目 var getorders []TabPurchaseOrder - query.Order("created_at DESC").Offset(jsondata.Entries * (jsondata.Page - 1)).Limit(jsondata.Entries).Find(&getorders) + query.Order("updated_at DESC, id DESC").Offset(jsondata.Entries * (jsondata.Page - 1)).Limit(jsondata.Entries).Find(&getorders) ReturnJson(ctx, "apiOK", map[string]interface{}{ "all_count": count, diff --git a/frontend/ops_vue_js/src/views/purchase/PurchaseList.vue b/frontend/ops_vue_js/src/views/purchase/PurchaseList.vue index 26effa1..0f7a09f 100644 --- a/frontend/ops_vue_js/src/views/purchase/PurchaseList.vue +++ b/frontend/ops_vue_js/src/views/purchase/PurchaseList.vue @@ -162,8 +162,8 @@ onMounted(fetchOrders) No. {{ t('purchase.item_name') }} {{ t('purchase.purpose') }} - {{ t('purchase.created_at') }} + {{ t('purchase.updated_at') }} {{ t('purchase.status') }} @@ -187,6 +187,7 @@ onMounted(fetchOrders) {{ order.Title }} {{ order.Remark || '-' }} {{ formatDate(order.CreatedAt) }} + {{ formatDate(order.UpdatedAt) }} { -
@@ -418,7 +418,7 @@ onUnmounted(() => { {{ t(opt.labelKey) }} -
+ -->