解决列数据中的 table#header 数据不刷新的问题
This commit is contained in:
parent
95d7d1eb42
commit
ca385bc08e
@ -16,7 +16,7 @@
|
|||||||
<el-descriptions-item label="付款方式: ">
|
<el-descriptions-item label="付款方式: ">
|
||||||
<dict-tag :type="DICT_TYPE.PAY_CHANNEL_CODE" :value="formData.payChannelCode!" />
|
<dict-tag :type="DICT_TYPE.PAY_CHANNEL_CODE" :value="formData.payChannelCode!" />
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="推广用户: " v-if="formData.brokerageUser">
|
<el-descriptions-item v-if="formData.brokerageUser" label="推广用户: ">
|
||||||
{{ formData.brokerageUser?.nickname }}
|
{{ formData.brokerageUser?.nickname }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
@ -26,7 +26,7 @@
|
|||||||
<el-descriptions-item label="订单状态: ">
|
<el-descriptions-item label="订单状态: ">
|
||||||
<dict-tag :type="DICT_TYPE.TRADE_ORDER_STATUS" :value="formData.status!" />
|
<dict-tag :type="DICT_TYPE.TRADE_ORDER_STATUS" :value="formData.status!" />
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label-class-name="no-colon">
|
<el-descriptions-item v-hasPermi="['trade:order:update']" label-class-name="no-colon">
|
||||||
<el-button
|
<el-button
|
||||||
v-if="formData.status! === TradeOrderStatusEnum.UNPAID.status"
|
v-if="formData.status! === TradeOrderStatusEnum.UNPAID.status"
|
||||||
type="primary"
|
type="primary"
|
||||||
@ -150,7 +150,7 @@
|
|||||||
<el-descriptions-item label="联系电话: ">{{ formData.receiverMobile }}</el-descriptions-item>
|
<el-descriptions-item label="联系电话: ">{{ formData.receiverMobile }}</el-descriptions-item>
|
||||||
<!-- 快递配送 -->
|
<!-- 快递配送 -->
|
||||||
<div v-if="formData.deliveryType === DeliveryTypeEnum.EXPRESS.type">
|
<div v-if="formData.deliveryType === DeliveryTypeEnum.EXPRESS.type">
|
||||||
<el-descriptions-item label="收货地址: " v-if="formData.receiverDetailAddress">
|
<el-descriptions-item v-if="formData.receiverDetailAddress" label="收货地址: ">
|
||||||
{{ formData.receiverAreaName }} {{ formData.receiverDetailAddress }}
|
{{ formData.receiverAreaName }} {{ formData.receiverDetailAddress }}
|
||||||
<el-link
|
<el-link
|
||||||
v-clipboard:copy="formData.receiverAreaName + ' ' + formData.receiverDetailAddress"
|
v-clipboard:copy="formData.receiverAreaName + ' ' + formData.receiverDetailAddress"
|
||||||
@ -159,17 +159,17 @@
|
|||||||
type="primary"
|
type="primary"
|
||||||
/>
|
/>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="物流公司: " v-if="formData.logisticsId">
|
<el-descriptions-item v-if="formData.logisticsId" label="物流公司: ">
|
||||||
{{ deliveryExpressList.find((item) => item.id === formData.logisticsId)?.name }}
|
{{ deliveryExpressList.find((item) => item.id === formData.logisticsId)?.name }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="运单号: " v-if="formData.logisticsId">
|
<el-descriptions-item v-if="formData.logisticsId" label="运单号: ">
|
||||||
{{ formData.logisticsNo }}
|
{{ formData.logisticsNo }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="发货时间: " v-if="formatDate.deliveryTime">
|
<el-descriptions-item v-if="formatDate.deliveryTime" label="发货时间: ">
|
||||||
{{ formatDate(formData.deliveryTime) }}
|
{{ formatDate(formData.deliveryTime) }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item v-for="item in 2" :key="item" label-class-name="no-colon" />
|
<el-descriptions-item v-for="item in 2" :key="item" label-class-name="no-colon" />
|
||||||
<el-descriptions-item label="物流详情: " v-if="expressTrackList.length > 0">
|
<el-descriptions-item v-if="expressTrackList.length > 0" label="物流详情: ">
|
||||||
<el-timeline>
|
<el-timeline>
|
||||||
<el-timeline-item
|
<el-timeline-item
|
||||||
v-for="(express, index) in expressTrackList"
|
v-for="(express, index) in expressTrackList"
|
||||||
@ -183,7 +183,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- 自提门店 -->
|
<!-- 自提门店 -->
|
||||||
<div v-if="formData.deliveryType === DeliveryTypeEnum.PICK_UP.type">
|
<div v-if="formData.deliveryType === DeliveryTypeEnum.PICK_UP.type">
|
||||||
<el-descriptions-item label="自提门店: " v-if="formData.pickUpStoreId">
|
<el-descriptions-item v-if="formData.pickUpStoreId" label="自提门店: ">
|
||||||
{{ pickUpStore?.name }}
|
{{ pickUpStore?.name }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
</div>
|
</div>
|
||||||
|
@ -125,10 +125,10 @@
|
|||||||
<el-input
|
<el-input
|
||||||
v-show="true"
|
v-show="true"
|
||||||
v-model="queryParams[queryType.queryParam]"
|
v-model="queryParams[queryType.queryParam]"
|
||||||
|
:type="queryType.queryParam === 'userId' ? 'number' : 'text'"
|
||||||
class="!w-280px"
|
class="!w-280px"
|
||||||
clearable
|
clearable
|
||||||
placeholder="请输入"
|
placeholder="请输入"
|
||||||
:type="queryType.queryParam === 'userId' ? 'number' : 'text'"
|
|
||||||
>
|
>
|
||||||
<template #prepend>
|
<template #prepend>
|
||||||
<el-select
|
<el-select
|
||||||
@ -163,16 +163,24 @@
|
|||||||
|
|
||||||
<!-- 列表 -->
|
<!-- 列表 -->
|
||||||
<ContentWrap>
|
<ContentWrap>
|
||||||
<el-table v-loading="loading" :data="list">
|
<!-- 添加 row-key="id" 解决列数据中的 table#header 数据不刷新的问题 -->
|
||||||
|
<el-table v-loading="loading" :data="list" row-key="id">
|
||||||
<OrderTableColumn :list="list" :pick-up-store-list="pickUpStoreList">
|
<OrderTableColumn :list="list" :pick-up-store-list="pickUpStoreList">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<!-- TODO 权限后续补齐 -->
|
|
||||||
<div class="flex items-center justify-center">
|
<div class="flex items-center justify-center">
|
||||||
<el-button link type="primary" @click="openDetail(row.id)">
|
<el-button
|
||||||
|
v-hasPermi="['trade:order:query']"
|
||||||
|
link
|
||||||
|
type="primary"
|
||||||
|
@click="openDetail(row.id)"
|
||||||
|
>
|
||||||
<Icon icon="ep:notification" />
|
<Icon icon="ep:notification" />
|
||||||
详情
|
详情
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-dropdown @command="(command) => handleCommand(command, row)">
|
<el-dropdown
|
||||||
|
v-hasPermi="['trade:order:update']"
|
||||||
|
@command="(command) => handleCommand(command, row)"
|
||||||
|
>
|
||||||
<el-button link type="primary">
|
<el-button link type="primary">
|
||||||
<Icon icon="ep:d-arrow-right" />
|
<Icon icon="ep:d-arrow-right" />
|
||||||
更多
|
更多
|
||||||
|
@ -162,7 +162,8 @@
|
|||||||
|
|
||||||
<!-- 列表 -->
|
<!-- 列表 -->
|
||||||
<ContentWrap>
|
<ContentWrap>
|
||||||
<el-table v-loading="loading" :data="list">
|
<!-- 添加 row-key="id" 解决列数据中的 table#header 数据不刷新的问题 -->
|
||||||
|
<el-table v-loading="loading" :data="list" row-key="id">
|
||||||
<OrderTableColumn :list="list" :pick-up-store-list="pickUpStoreList">
|
<OrderTableColumn :list="list" :pick-up-store-list="pickUpStoreList">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-button link type="primary" @click="openDetail(row.id)">
|
<el-button link type="primary" @click="openDetail(row.id)">
|
||||||
|
Loading…
Reference in New Issue
Block a user