|
@@ -20,7 +20,7 @@
|
|
|
</template>
|
|
|
</byTable>
|
|
|
</div>
|
|
|
- <el-dialog z-index="1100" :title="modalType == 'add' ? '新增' : '编辑'" v-model="dialogVisible" width="800px" v-loading="loading">
|
|
|
+ <el-dialog z-index="1100" :title="modalType == 'add' ? '新增' : '编辑'" v-model="dialogVisible" width="80%" v-loading="loading">
|
|
|
<byForm :formConfig="formConfig" :formOption="formOption" v-model="formData.data" :rules="rules" ref="byform">
|
|
|
<template #coverUrl>
|
|
|
<el-row style="width: 100%">
|
|
@@ -53,38 +53,35 @@
|
|
|
</el-row>
|
|
|
</template>
|
|
|
<template #contentImg>
|
|
|
+ <el-row style="width: 100%">
|
|
|
+ <el-form-item prop="contentImg">
|
|
|
+ <el-col :span="6" v-for="(item,index) in formData.data.contentImgList" style="padding: 0 10px">
|
|
|
+ <el-image
|
|
|
+ :src="item.fileUrl"
|
|
|
+ fit="scale-down"
|
|
|
+ class="avatar" />
|
|
|
+ <el-button
|
|
|
+ class="delete-btn"
|
|
|
+ type="danger"
|
|
|
+ @click="deleteContentImg(index) ">
|
|
|
+ 删除
|
|
|
+ </el-button>
|
|
|
+ </el-col>
|
|
|
+ <el-upload
|
|
|
+ class="avatar-uploader"
|
|
|
+ action="https://winfaster.obs.cn-south-1.myhuaweicloud.com"
|
|
|
+ :data="contentImgOne"
|
|
|
+ :show-file-list="false"
|
|
|
+ accept=".gif, .jpeg, .jpg, .png"
|
|
|
+ :on-success="contentImgSuccess"
|
|
|
+ :before-upload="uploadContentImg">
|
|
|
|
|
|
- <el-form-item prop="contentImg">
|
|
|
- <el-upload
|
|
|
- class="avatar-uploader"
|
|
|
- action="https://winfaster.obs.cn-south-1.myhuaweicloud.com"
|
|
|
- :data="contentImgOne"
|
|
|
- :show-file-list="false"
|
|
|
- accept=".gif, .jpeg, .jpg, .png"
|
|
|
- :on-success="contentImgSuccess"
|
|
|
- :before-upload="uploadContentImg">
|
|
|
- <el-row style="width: 100%">
|
|
|
- <el-col :span="6" v-for="(item,index) in formData.data.contentImgList" style="padding: 0 10px">
|
|
|
- <el-image
|
|
|
- :src="item.fileUrl"
|
|
|
- fit="scale-down"
|
|
|
- class="avatar" />
|
|
|
- <el-button
|
|
|
- class="delete-btn"
|
|
|
- type="danger"
|
|
|
- @click="deleteContentImg(index) ">
|
|
|
- 删除
|
|
|
- </el-button>
|
|
|
- </el-col>
|
|
|
- <el-col :span="6">
|
|
|
- <el-icon class="uploader-icon"><Plus /></el-icon>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- </el-upload>
|
|
|
-
|
|
|
- </el-form-item>
|
|
|
-
|
|
|
-
|
|
|
+ <el-col :span="6">
|
|
|
+ <el-icon class="uploader-icon"><Plus /></el-icon>
|
|
|
+ </el-col>
|
|
|
+ </el-upload>
|
|
|
+ </el-form-item>
|
|
|
+ </el-row>
|
|
|
</template>
|
|
|
<template #content>
|
|
|
<div style="width: 100%" v-if="dialogVisible">
|