mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-25 11:49:20 +08:00
refactor(ecom-dmb): 移除平台管理页面的 Logo URL 字段
- PlatformFormModal.vue 移除表单中的 Logo URL 字段 - index.vue 移除表格中的 Logo 列
This commit is contained in:
-11
@@ -37,7 +37,6 @@ const loading = ref(false);
|
|||||||
const formData = ref({
|
const formData = ref({
|
||||||
platformName: '',
|
platformName: '',
|
||||||
platformCode: '',
|
platformCode: '',
|
||||||
logoUrl: '',
|
|
||||||
sortOrder: 0,
|
sortOrder: 0,
|
||||||
isActive: true,
|
isActive: true,
|
||||||
});
|
});
|
||||||
@@ -51,7 +50,6 @@ function initFormData() {
|
|||||||
formData.value = {
|
formData.value = {
|
||||||
platformName: currentPlatformData.value.platformName || '',
|
platformName: currentPlatformData.value.platformName || '',
|
||||||
platformCode: currentPlatformData.value.platformCode || '',
|
platformCode: currentPlatformData.value.platformCode || '',
|
||||||
logoUrl: currentPlatformData.value.logoUrl || '',
|
|
||||||
sortOrder: currentPlatformData.value.sortOrder || 0,
|
sortOrder: currentPlatformData.value.sortOrder || 0,
|
||||||
isActive: currentPlatformData.value.isActive === 1,
|
isActive: currentPlatformData.value.isActive === 1,
|
||||||
};
|
};
|
||||||
@@ -59,7 +57,6 @@ function initFormData() {
|
|||||||
formData.value = {
|
formData.value = {
|
||||||
platformName: '',
|
platformName: '',
|
||||||
platformCode: '',
|
platformCode: '',
|
||||||
logoUrl: '',
|
|
||||||
sortOrder: 0,
|
sortOrder: 0,
|
||||||
isActive: true,
|
isActive: true,
|
||||||
};
|
};
|
||||||
@@ -81,7 +78,6 @@ async function handleSubmit() {
|
|||||||
const submitData: PlatformDTO.Create | PlatformDTO.Update = {
|
const submitData: PlatformDTO.Create | PlatformDTO.Update = {
|
||||||
platformName: formData.value.platformName,
|
platformName: formData.value.platformName,
|
||||||
platformCode: formData.value.platformCode,
|
platformCode: formData.value.platformCode,
|
||||||
logoUrl: formData.value.logoUrl || undefined,
|
|
||||||
sortOrder: formData.value.sortOrder,
|
sortOrder: formData.value.sortOrder,
|
||||||
isActive: formData.value.isActive ? 1 : 0,
|
isActive: formData.value.isActive ? 1 : 0,
|
||||||
};
|
};
|
||||||
@@ -156,13 +152,6 @@ defineExpose({
|
|||||||
/>
|
/>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
|
||||||
<Form.Item label="Logo URL" name="logoUrl">
|
|
||||||
<Input
|
|
||||||
v-model:value="formData.logoUrl"
|
|
||||||
placeholder="平台Logo图片地址(可选)"
|
|
||||||
/>
|
|
||||||
</Form.Item>
|
|
||||||
|
|
||||||
<Form.Item label="排序" name="sortOrder">
|
<Form.Item label="排序" name="sortOrder">
|
||||||
<Input
|
<Input
|
||||||
v-model:value="formData.sortOrder"
|
v-model:value="formData.sortOrder"
|
||||||
|
|||||||
@@ -60,13 +60,6 @@ const gridOptions: VxeGridProps<any> = {
|
|||||||
showOverflow: true,
|
showOverflow: true,
|
||||||
sortable: true,
|
sortable: true,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
field: 'logoUrl',
|
|
||||||
title: 'Logo',
|
|
||||||
width: 100,
|
|
||||||
align: 'center',
|
|
||||||
slots: { default: 'logo' },
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
field: 'sortOrder',
|
field: 'sortOrder',
|
||||||
title: '排序',
|
title: '排序',
|
||||||
@@ -257,17 +250,6 @@ function handleSortChange({
|
|||||||
</Space>
|
</Space>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<!-- Logo 列 -->
|
|
||||||
<template #logo="{ row }">
|
|
||||||
<Avatar
|
|
||||||
v-if="row.logoUrl"
|
|
||||||
:src="row.logoUrl"
|
|
||||||
:size="36"
|
|
||||||
shape="square"
|
|
||||||
/>
|
|
||||||
<span v-else class="text-gray-400">-</span>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<!-- 状态列 -->
|
<!-- 状态列 -->
|
||||||
<template #isActive="{ row }">
|
<template #isActive="{ row }">
|
||||||
<Tag :color="row.isActive === 1 ? 'success' : 'default'" type="outline">
|
<Tag :color="row.isActive === 1 ? 'success' : 'default'" type="outline">
|
||||||
|
|||||||
Reference in New Issue
Block a user