parent
d4d41701ab
commit
721fc5c026
@ -1,41 +1,20 @@
|
|||||||
<template>
|
<template>
|
||||||
<Dialog v-model="dialogVisible" title="拼团列表">
|
<Dialog v-model="dialogVisible" title="拼团列表" width="950">
|
||||||
<!-- 列表 -->
|
<!-- 列表 -->
|
||||||
<ContentWrap>
|
<ContentWrap>
|
||||||
<el-table v-loading="loading" :data="list">
|
<el-table v-loading="loading" :data="list">
|
||||||
<el-table-column align="center" label="编号" prop="id" />
|
<el-table-column align="center" label="编号" prop="id" min-width="50" />
|
||||||
<el-table-column align="center" label="头像" prop="avatar" />
|
<el-table-column align="center" label="头像" prop="avatar" min-width="80">
|
||||||
<el-table-column align="center" label="昵称" prop="nickname" />
|
<template #default="scope">
|
||||||
<el-table-column align="center" label="开团团长" prop="headId">
|
<el-avatar :src="scope.row.avatar" />
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column align="center" label="昵称" prop="nickname" min-width="100" />
|
||||||
|
<el-table-column align="center" label="开团团长" prop="headId" min-width="100">
|
||||||
<template #default="{ row }: { row: CombinationRecordApi.CombinationRecordVO }">
|
<template #default="{ row }: { row: CombinationRecordApi.CombinationRecordVO }">
|
||||||
{{ row.headId ? list.find((item) => item.id === row.headId)?.nickname : row.nickname }}
|
<el-tag> {{ row.headId === 0 ? '团长' : '团员' }} </el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
|
||||||
:formatter="dateFormatter"
|
|
||||||
align="center"
|
|
||||||
label="开团时间"
|
|
||||||
prop="startTime"
|
|
||||||
width="180"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
|
||||||
align="center"
|
|
||||||
label="拼团商品"
|
|
||||||
prop="type"
|
|
||||||
show-overflow-tooltip
|
|
||||||
width="300"
|
|
||||||
>
|
|
||||||
<template #defaul="{ row }">
|
|
||||||
<el-image
|
|
||||||
:src="row.picUrl"
|
|
||||||
class="mr-5px h-30px w-30px align-middle"
|
|
||||||
@click="imagePreview(row.picUrl)"
|
|
||||||
/>
|
|
||||||
<span class="align-middle">{{ row.spuName }}</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column align="center" label="几人团" prop="userSize" />
|
|
||||||
<el-table-column align="center" label="参与人数" prop="userCount" />
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
:formatter="dateFormatter"
|
:formatter="dateFormatter"
|
||||||
align="center"
|
align="center"
|
||||||
@ -50,7 +29,7 @@
|
|||||||
prop="endTime"
|
prop="endTime"
|
||||||
width="180"
|
width="180"
|
||||||
/>
|
/>
|
||||||
<el-table-column align="center" label="拼团状态" prop="status">
|
<el-table-column align="center" label="拼团状态" prop="status" min-width="150">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<dict-tag
|
<dict-tag
|
||||||
:type="DICT_TYPE.PROMOTION_COMBINATION_RECORD_STATUS"
|
:type="DICT_TYPE.PROMOTION_COMBINATION_RECORD_STATUS"
|
||||||
|
@ -114,10 +114,14 @@
|
|||||||
<!-- 分页列表数据展示 -->
|
<!-- 分页列表数据展示 -->
|
||||||
<ContentWrap>
|
<ContentWrap>
|
||||||
<el-table v-loading="loading" :data="pageList">
|
<el-table v-loading="loading" :data="pageList">
|
||||||
<el-table-column align="center" label="编号" prop="id" />
|
<el-table-column align="center" label="编号" prop="id" min-width="50" />
|
||||||
<el-table-column align="center" label="头像" prop="avatar" />
|
<el-table-column align="center" label="头像" prop="avatar" min-width="80">
|
||||||
<el-table-column align="center" label="昵称" prop="nickname" />
|
<template #default="scope">
|
||||||
<el-table-column align="center" label="开团团长" prop="headId">
|
<el-avatar :src="scope.row.avatar" />
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column align="center" label="昵称" prop="nickname" min-width="100" />
|
||||||
|
<el-table-column align="center" label="开团团长" prop="headId" min-width="100">
|
||||||
<template #default="{ row }: { row: CombinationRecordApi.CombinationRecordVO }">
|
<template #default="{ row }: { row: CombinationRecordApi.CombinationRecordVO }">
|
||||||
{{
|
{{
|
||||||
row.headId ? pageList.find((item) => item.id === row.headId)?.nickname : row.nickname
|
row.headId ? pageList.find((item) => item.id === row.headId)?.nickname : row.nickname
|
||||||
@ -136,7 +140,7 @@
|
|||||||
label="拼团商品"
|
label="拼团商品"
|
||||||
prop="type"
|
prop="type"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
width="300"
|
min-width="300"
|
||||||
>
|
>
|
||||||
<template #defaul="{ row }">
|
<template #defaul="{ row }">
|
||||||
<el-image
|
<el-image
|
||||||
@ -147,8 +151,8 @@
|
|||||||
<span class="align-middle">{{ row.spuName }}</span>
|
<span class="align-middle">{{ row.spuName }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="center" label="几人团" prop="userSize" />
|
<el-table-column align="center" label="几人团" prop="userSize" min-width="100" />
|
||||||
<el-table-column align="center" label="参与人数" prop="userCount" />
|
<el-table-column align="center" label="参与人数" prop="userCount" min-width="100" />
|
||||||
<el-table-column
|
<el-table-column
|
||||||
:formatter="dateFormatter"
|
:formatter="dateFormatter"
|
||||||
align="center"
|
align="center"
|
||||||
@ -163,7 +167,7 @@
|
|||||||
prop="endTime"
|
prop="endTime"
|
||||||
width="180"
|
width="180"
|
||||||
/>
|
/>
|
||||||
<el-table-column align="center" label="拼团状态" prop="status">
|
<el-table-column align="center" label="拼团状态" prop="status" min-width="150">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<dict-tag
|
<dict-tag
|
||||||
:type="DICT_TYPE.PROMOTION_COMBINATION_RECORD_STATUS"
|
:type="DICT_TYPE.PROMOTION_COMBINATION_RECORD_STATUS"
|
||||||
@ -203,7 +207,7 @@ import { dateFormatter, defaultShortcuts } from '@/utils/formatTime'
|
|||||||
import { createImageViewer } from '@/components/ImageViewer'
|
import { createImageViewer } from '@/components/ImageViewer'
|
||||||
import * as CombinationRecordApi from '@/api/mall/promotion/combination/combinationRecord'
|
import * as CombinationRecordApi from '@/api/mall/promotion/combination/combinationRecord'
|
||||||
|
|
||||||
defineOptions({ name: 'CombinationRecord' })
|
defineOptions({ name: 'PromotionCombinationRecord' })
|
||||||
|
|
||||||
const queryParams = ref({
|
const queryParams = ref({
|
||||||
status: undefined, // 拼团状态
|
status: undefined, // 拼团状态
|
||||||
|
Loading…
Reference in New Issue
Block a user