|
|
@ -93,8 +93,9 @@ |
|
|
|
<el-upload ref="uploadRef" list-type="picture-card" :auto-upload="false" :http-request="customUpload" |
|
|
|
:on-change="handleImageChange" :on-success="handleUploadSuccess" :on-error="handleUploadError" |
|
|
|
:before-upload="beforeUpload" :show-file-list="false"> |
|
|
|
<!-- :action="uploadUrl" --> |
|
|
|
<el-icon> |
|
|
|
<img v-if="editForm.imageUrl" :src="editForm.imageUrl" |
|
|
|
style="width: 100%; height: 100%; object-fit: cover;"> |
|
|
|
<el-icon v-else> |
|
|
|
<Plus /> |
|
|
|
</el-icon> |
|
|
|
<template #tip> |
|
|
@ -103,9 +104,6 @@ |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-upload> |
|
|
|
<div v-if="editForm.imageUrl" class="upload-preview"> |
|
|
|
<img :src="editForm.imageUrl" alt="预览图" style="max-width: 200px; margin-top: 10px; border-radius: 4px;"> |
|
|
|
</div> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<template #footer> |
|
|
@ -422,14 +420,6 @@ onMounted(() => { |
|
|
|
min-height: 80vh; |
|
|
|
} |
|
|
|
|
|
|
|
.pagination-container { |
|
|
|
padding: 10px 20px; |
|
|
|
background-color: #fff; |
|
|
|
border-top: 1px solid #ebeef5; |
|
|
|
display: flex; |
|
|
|
justify-content: center; |
|
|
|
} |
|
|
|
|
|
|
|
.action-buttons { |
|
|
|
margin-bottom: 20px; |
|
|
|
} |
|
|
@ -445,8 +435,4 @@ img { |
|
|
|
object-fit: contain; |
|
|
|
border-radius: 4px; |
|
|
|
} |
|
|
|
|
|
|
|
.upload-preview { |
|
|
|
margin-top: 10px; |
|
|
|
} |
|
|
|
</style> |