mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-25 11:49:20 +08:00
refactor(shop-list): 操作按钮'查看详情'改为'查看概览'
This commit is contained in:
@@ -193,20 +193,6 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
|||||||
});
|
});
|
||||||
gridReloadRef.value = () => gridApi.reload();
|
gridReloadRef.value = () => gridApi.reload();
|
||||||
|
|
||||||
|
|
||||||
// 加载平台选项
|
|
||||||
async function fetchPlatformOptions() {
|
|
||||||
try {
|
|
||||||
const data = await getActivePlatformsApi();
|
|
||||||
platformOptions.value = data.map((p: any) => ({
|
|
||||||
label: p.platformName,
|
|
||||||
value: p.id,
|
|
||||||
}));
|
|
||||||
} catch (error) {
|
|
||||||
console.error('获取平台列表失败:', error);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// 刷新表格数据
|
// 刷新表格数据
|
||||||
function refreshTable() {
|
function refreshTable() {
|
||||||
if (gridApi) {
|
if (gridApi) {
|
||||||
@@ -241,8 +227,8 @@ function handleModalSuccess() {
|
|||||||
refreshTable();
|
refreshTable();
|
||||||
}
|
}
|
||||||
|
|
||||||
// 处理查看详情
|
// 处理查看概览
|
||||||
function handleViewDetails(record: ShopVO.Info) {
|
function handleViewOverview(record: ShopVO.Info) {
|
||||||
router.push(`/ecom/shop/overview/${record.id}`);
|
router.push(`/ecom/shop/overview/${record.id}`);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
@@ -290,7 +276,7 @@ function handleViewDetails(record: ShopVO.Info) {
|
|||||||
<template #name="{ row }: { row: ShopVO.Info }">
|
<template #name="{ row }: { row: ShopVO.Info }">
|
||||||
<a
|
<a
|
||||||
class="text-primary cursor-pointer hover:underline"
|
class="text-primary cursor-pointer hover:underline"
|
||||||
@click="handleViewDetails(row)"
|
@click="handleViewOverview(row)"
|
||||||
>
|
>
|
||||||
{{ row.name }}
|
{{ row.name }}
|
||||||
</a>
|
</a>
|
||||||
@@ -299,8 +285,8 @@ function handleViewDetails(record: ShopVO.Info) {
|
|||||||
<!-- 操作列 -->
|
<!-- 操作列 -->
|
||||||
<template #action="{ row }: { row: any }">
|
<template #action="{ row }: { row: any }">
|
||||||
<Space>
|
<Space>
|
||||||
<Button size="small" type="primary" @click="handleViewDetails(row)">
|
<Button size="small" type="primary" @click="handleViewOverview(row)">
|
||||||
查看详情
|
查看概览
|
||||||
</Button>
|
</Button>
|
||||||
<Button size="small" @click="handleEdit(row)"> 编辑 </Button>
|
<Button size="small" @click="handleEdit(row)"> 编辑 </Button>
|
||||||
<Popconfirm
|
<Popconfirm
|
||||||
|
|||||||
Reference in New Issue
Block a user