This commit is contained in:
parent
3d8812271e
commit
1092c313ca
|
@ -189,8 +189,8 @@
|
||||||
alt=""
|
alt=""
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<i class="el-icon-plus avatar-uploader-icon" />
|
<i class="el-icon-plus avatar-uploader-icon" />
|
||||||
|
</div>
|
||||||
</el-upload>
|
</el-upload>
|
||||||
<!-- <span>{{ anchors.img_zip }}</span> -->
|
<!-- <span>{{ anchors.img_zip }}</span> -->
|
||||||
<div style="color: red">(请上传zip格式的文件图片)</div>
|
<div style="color: red">(请上传zip格式的文件图片)</div>
|
||||||
|
@ -220,8 +220,8 @@
|
||||||
alt=""
|
alt=""
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<i class="el-icon-plus avatar-uploader-icon" />
|
<i class="el-icon-plus avatar-uploader-icon" />
|
||||||
|
</div>
|
||||||
</el-upload>
|
</el-upload>
|
||||||
<!-- <span>{{ item }}</span> -->
|
<!-- <span>{{ item }}</span> -->
|
||||||
<span style="color: red">(本行程请上传,ppt,word,pdf格式的文件)</span>
|
<span style="color: red">(本行程请上传,ppt,word,pdf格式的文件)</span>
|
||||||
|
@ -306,64 +306,68 @@
|
||||||
inactive-color="#ff4949"
|
inactive-color="#ff4949"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- <el-form-item label="上传图片">
|
<el-form-item label="上传图片">
|
||||||
<el-upload
|
<el-upload
|
||||||
class="avatar-uploader"
|
class="avatar-uploader"
|
||||||
action="admin/upload/index"
|
action="admin/upload/index"
|
||||||
:show-file-list="false"
|
:show-file-list="false"
|
||||||
:on-success="handleAvatarSuccess"
|
:on-success="handleAvatarSuccess"
|
||||||
>
|
>
|
||||||
<div v-if="anchors.img_zip" class="img-box">
|
<div v-if="anchors.img_zip.length">
|
||||||
|
<div v-for="(item, index) in anchors.img_zip" class="img-box">
|
||||||
<i
|
<i
|
||||||
@click.stop="handleClose('img_zip')"
|
@click.stop="handleClose('img_zip', index)"
|
||||||
class="close el-icon-close"
|
class="close el-icon-close"
|
||||||
/>
|
/>
|
||||||
<i
|
<i
|
||||||
v-if="!checkIfUrlContainsImage(anchors.img_zip)"
|
v-if="!checkIfUrlContainsImage(item)"
|
||||||
class="el-icon-folder"
|
class="el-icon-folder"
|
||||||
/>
|
/>
|
||||||
<img
|
<img
|
||||||
v-else
|
v-else
|
||||||
style="width: 100px; height: 100px"
|
style="width: 100px; height: 100px"
|
||||||
:src="anchors.img_zip"
|
:src="item"
|
||||||
class="avatar"
|
class="avatar"
|
||||||
alt=""
|
alt=""
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<i v-else class="el-icon-plus avatar-uploader-icon" />
|
<i class="el-icon-plus avatar-uploader-icon" />
|
||||||
|
</div>
|
||||||
</el-upload>
|
</el-upload>
|
||||||
<span>{{ anchors.img_zip }}</span>
|
<!-- <span>{{ anchors.img_zip }}</span> -->
|
||||||
<div style="color: red">(请上传zip格式的文件图片)</div>
|
<div style="color: red">(请上传zip格式的文件图片)</div>
|
||||||
</el-form-item> -->
|
</el-form-item>
|
||||||
<!-- <el-form-item label="上传行程">
|
<el-form-item label="上传行程">
|
||||||
<el-upload
|
<el-upload
|
||||||
class="avatar-uploader"
|
class="avatar-uploader"
|
||||||
action="admin/upload/index"
|
action="admin/upload/index"
|
||||||
:show-file-list="false"
|
:show-file-list="false"
|
||||||
:on-success="handleSuccess"
|
:on-success="handleSuccess"
|
||||||
>
|
>
|
||||||
<div v-if="anchors.trip_zip" class="img-box">
|
<div v-if="anchors.trip_zip.length">
|
||||||
|
<div v-for="(item, index) in anchors.trip_zip" class="img-box">
|
||||||
<i
|
<i
|
||||||
@click.stop="handleClose('trip_zip')"
|
@click.stop="handleClose('trip_zip', index)"
|
||||||
class="close el-icon-close"
|
class="close el-icon-close"
|
||||||
/>
|
/>
|
||||||
<i
|
<i
|
||||||
v-if="!checkIfUrlContainsImage(anchors.trip_zip)"
|
v-if="!checkIfUrlContainsImage(item)"
|
||||||
class="el-icon-folder"
|
class="el-icon-folder"
|
||||||
/>
|
/>
|
||||||
<img
|
<img
|
||||||
v-else
|
v-else
|
||||||
style="width: 100px; height: 100px"
|
style="width: 100px; height: 100px"
|
||||||
:src="anchors.trip_zip"
|
:src="item"
|
||||||
class="avatar"
|
class="avatar"
|
||||||
alt=""
|
alt=""
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<i v-else class="el-icon-plus avatar-uploader-icon" />
|
<i class="el-icon-plus avatar-uploader-icon" />
|
||||||
|
</div>
|
||||||
</el-upload>
|
</el-upload>
|
||||||
<span>{{ anchors.trip_zip }}</span>
|
<!-- <span>{{ item }}</span> -->
|
||||||
<div style="color: red">(本行程请上传,ppt,word,pdf格式的文件)</div>
|
<span style="color: red">(本行程请上传,ppt,word,pdf格式的文件)</span>
|
||||||
</el-form-item> -->
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
<el-button v-loading="loading" type="primary" @click="onSave"
|
<el-button v-loading="loading" type="primary" @click="onSave"
|
||||||
|
|
Loading…
Reference in New Issue