增加上传入口

This commit is contained in:
BianLzhaoMin 2025-01-15 10:07:56 +08:00
parent 24d6b536a2
commit d1cab21626
1 changed files with 19 additions and 1 deletions

View File

@ -53,7 +53,23 @@
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="轮播图上传:"> </el-form-item>
<el-form-item label="轮播图上传:">
<el-upload
:limit="1"
:action="uploadFileUrl"
list-type="picture-card"
:file-list="addOrEditForm.fileList"
:headers="headers"
:on-remove="handleRemove"
:on-preview="handlePreview"
:on-success="handleSuccess"
:before-upload="handleBeforeUpload"
:show-file-list="true"
:on-exceed="handleExceed"
>
<i class="el-icon-plus"></i>
</el-upload>
</el-form-item>
</el-col>
</el-row>
</el-form>
@ -72,6 +88,8 @@ export default {
addSwiperVisible: false,
value1: true,
value2: true,
uploadFileUrl: "",
headers: {},
noticeList: [
{
imgSrc: "xxxx",