Skip to content

Commit 8239ca4

Browse files
author
puhui999
committed
订单列表: 修复差异
1 parent 9507e2b commit 8239ca4

File tree

2 files changed

+6
-22
lines changed

2 files changed

+6
-22
lines changed

src/router/modules/remaining.ts

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -195,22 +195,6 @@ const remainingRouter: AppRouteRecordRaw[] = [
195195
noTagsView: true
196196
}
197197
},
198-
{
199-
path: '/trade/order',
200-
component: Layout,
201-
name: 'order',
202-
meta: {
203-
hidden: true
204-
},
205-
children: [
206-
{
207-
path: 'detail',
208-
name: 'TradeOrderDetail',
209-
component: () => import('@/views/mall/trade/order/tradeOrderDetail.vue'),
210-
meta: { title: '订单详情', hidden: true }
211-
}
212-
]
213-
},
214198
{
215199
path: '/403',
216200
component: () => import('@/views/Error/403.vue'),
@@ -411,15 +395,15 @@ const remainingRouter: AppRouteRecordRaw[] = [
411395
{
412396
path: '/trade/order',
413397
component: Layout,
414-
name: 'Detail',
398+
name: 'Order',
415399
meta: {
416400
hidden: true
417401
},
418402
children: [
419403
{
420404
path: 'detail/:orderId(\\d+)',
421405
component: () => import('@/views/mall/trade/order/detail/index.vue'),
422-
name: 'TradeOrderDetailForm',
406+
name: 'TradeOrderDetail',
423407
meta: { title: '订单详情', icon: '', activeMenu: '/trade/trade/order' }
424408
}
425409
]

src/views/mall/trade/order/index.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,14 +149,14 @@
149149
:data="scope.row.items"
150150
:header-cell-style="headerStyle"
151151
:span-method="spanMethod"
152-
border
152+
:border="true"
153153
style="width: 100%"
154154
>
155155
<el-table-column min-width="300" prop="spuName">
156156
<template #header>
157157
<div
158158
class="flex items-center"
159-
style="height: 35px; background-color: #f7f7f7; width: 100%"
159+
style="width: 100%; height: 35px; background-color: #f7f7f7"
160160
>
161161
<span class="mr-20px">订单号:{{ scope.row.no }} </span>
162162
<span class="mr-20px">下单时间:{{ formatDate(scope.row.createTime) }}</span>
@@ -384,7 +384,7 @@ const spanMethod = ({ row, rowIndex, columnIndex }: SpanMethodProps) => {
384384
(order) => order.items?.findIndex((item) => item.id === row.id) !== -1
385385
)?.items?.length
386386
// 要合并的列,从零开始
387-
const colIndex = [3, 4, 5, 6]
387+
const colIndex = [3, 4, 5, 6, 7]
388388
if (colIndex.includes(columnIndex)) {
389389
// 除了第一行其余的不要
390390
if (rowIndex !== 0) {
@@ -434,7 +434,7 @@ const imagePreview = (imgUrl: string) => {
434434
435435
/** 查看订单详情 */
436436
const openForm = (id: number) => {
437-
push({ name: 'TradeOrderDetailForm', params: { orderId: id } })
437+
push({ name: 'TradeOrderDetail', params: { orderId: id } })
438438
}
439439
440440
/** 操作分发 */

0 commit comments

Comments
 (0)