mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 05:09:21 +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({
|
||||
platformName: '',
|
||||
platformCode: '',
|
||||
logoUrl: '',
|
||||
sortOrder: 0,
|
||||
isActive: true,
|
||||
});
|
||||
@@ -51,7 +50,6 @@ function initFormData() {
|
||||
formData.value = {
|
||||
platformName: currentPlatformData.value.platformName || '',
|
||||
platformCode: currentPlatformData.value.platformCode || '',
|
||||
logoUrl: currentPlatformData.value.logoUrl || '',
|
||||
sortOrder: currentPlatformData.value.sortOrder || 0,
|
||||
isActive: currentPlatformData.value.isActive === 1,
|
||||
};
|
||||
@@ -59,7 +57,6 @@ function initFormData() {
|
||||
formData.value = {
|
||||
platformName: '',
|
||||
platformCode: '',
|
||||
logoUrl: '',
|
||||
sortOrder: 0,
|
||||
isActive: true,
|
||||
};
|
||||
@@ -81,7 +78,6 @@ async function handleSubmit() {
|
||||
const submitData: PlatformDTO.Create | PlatformDTO.Update = {
|
||||
platformName: formData.value.platformName,
|
||||
platformCode: formData.value.platformCode,
|
||||
logoUrl: formData.value.logoUrl || undefined,
|
||||
sortOrder: formData.value.sortOrder,
|
||||
isActive: formData.value.isActive ? 1 : 0,
|
||||
};
|
||||
@@ -156,13 +152,6 @@ defineExpose({
|
||||
/>
|
||||
</Form.Item>
|
||||
|
||||
<Form.Item label="Logo URL" name="logoUrl">
|
||||
<Input
|
||||
v-model:value="formData.logoUrl"
|
||||
placeholder="平台Logo图片地址(可选)"
|
||||
/>
|
||||
</Form.Item>
|
||||
|
||||
<Form.Item label="排序" name="sortOrder">
|
||||
<Input
|
||||
v-model:value="formData.sortOrder"
|
||||
|
||||
@@ -60,13 +60,6 @@ const gridOptions: VxeGridProps<any> = {
|
||||
showOverflow: true,
|
||||
sortable: true,
|
||||
},
|
||||
{
|
||||
field: 'logoUrl',
|
||||
title: 'Logo',
|
||||
width: 100,
|
||||
align: 'center',
|
||||
slots: { default: 'logo' },
|
||||
},
|
||||
{
|
||||
field: 'sortOrder',
|
||||
title: '排序',
|
||||
@@ -257,17 +250,6 @@ function handleSortChange({
|
||||
</Space>
|
||||
</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 }">
|
||||
<Tag :color="row.isActive === 1 ? 'success' : 'default'" type="outline">
|
||||
|
||||
Reference in New Issue
Block a user