改造文章管理系统

This commit is contained in:
2024-08-27 07:22:22 +08:00
parent 13832d9de0
commit 31ec8e057a
41 changed files with 4041 additions and 525 deletions

View File

@@ -24,9 +24,12 @@
</template>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'goodsName'">
<a @click="openUrl(`${domain}/product/${record.goodsId}`)">{{
record.goodsName
}}</a>
<a
@click="
openSpmUrl(`/product/${record.goodsId}.html`, record, record.goodsId)
"
>{{ record.goodsName }}</a
>
</template>
<template v-if="column.key === 'type'">
<a-tag v-if="record.type === 0">虚拟商品</a-tag>
@@ -105,7 +108,7 @@
import type { Goods, GoodsParam } from '@/api/shop/goods/model';
import { formatNumber } from 'ele-admin-pro/es';
import router from '@/router';
import { openUrl } from '@/utils/common';
import { openSpmUrl, openUrl } from '@/utils/common';
import { getSiteDomain } from '@/utils/domain';
// 表格实例