完成商城下单功能
This commit is contained in:
@@ -21,9 +21,9 @@
|
||||
/>
|
||||
</template>
|
||||
<template #bodyCell="{ column, record }">
|
||||
<template v-if="column.key === 'title'">
|
||||
<template v-if="column.key === 'goodsName'">
|
||||
<a @click="openPreview(`/goods/detail/${record.goodsId}`)">{{
|
||||
record.title
|
||||
record.goodsName
|
||||
}}</a>
|
||||
</template>
|
||||
<template v-if="column.key === 'image'">
|
||||
@@ -69,7 +69,7 @@
|
||||
import GoodsEdit from './components/goodsEdit.vue';
|
||||
import { pageGoods, removeGoods, removeBatchGoods } from '@/api/shop/goods';
|
||||
import type { Goods, GoodsParam } from '@/api/shop/goods/model';
|
||||
import { openPreview, openUrl } from '@/utils/common';
|
||||
import { getMerchantId, openPreview, openUrl } from "@/utils/common";
|
||||
import { useRouter } from 'vue-router';
|
||||
const { currentRoute } = useRouter();
|
||||
|
||||
@@ -98,6 +98,7 @@
|
||||
if (filters) {
|
||||
where.status = filters.status;
|
||||
}
|
||||
where.merchantId = getMerchantId();
|
||||
return pageGoods({
|
||||
...where,
|
||||
...orders,
|
||||
@@ -122,8 +123,8 @@
|
||||
},
|
||||
{
|
||||
title: '课程名称',
|
||||
dataIndex: 'title',
|
||||
key: 'title'
|
||||
dataIndex: 'goodsName',
|
||||
key: 'goodsName'
|
||||
},
|
||||
{
|
||||
title: '课程售价',
|
||||
|
||||
Reference in New Issue
Block a user