style:材料上传
Showing
2 changed files
with
6 additions
and
4 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-09-14 16:16:57 | 4 | * @LastEditTime: 2023-10-12 09:40:40 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <div class="rlPopup"> | 7 | <div class="rlPopup"> |
| ... | @@ -29,8 +29,8 @@ | ... | @@ -29,8 +29,8 @@ |
| 29 | <el-button icon="el-icon-upload" type="primary" v-if="ableOperation">上传</el-button> | 29 | <el-button icon="el-icon-upload" type="primary" v-if="ableOperation">上传</el-button> |
| 30 | </el-upload> | 30 | </el-upload> |
| 31 | <!-- 左移右移 --> | 31 | <!-- 左移右移 --> |
| 32 | <el-button type="primary" @click="handleMove('left')" v-if="ableOperation">左移</el-button> | 32 | <el-button type="primary" @click="handleMove('left')" v-if="ableOperation && thumbnailImages.length>0">左移</el-button> |
| 33 | <el-button type="primary" @click="handleMove('right')" v-if="ableOperation">右移</el-button> | 33 | <el-button type="primary" @click="handleMove('right')" v-if="ableOperation && thumbnailImages.length>0">右移</el-button> |
| 34 | <el-button type="primary" icon="el-icon-delete-solid" @click="handleDelete" | 34 | <el-button type="primary" icon="el-icon-delete-solid" @click="handleDelete" |
| 35 | v-if="thumbnailImages.length>0 && ableOperation">删除</el-button> | 35 | v-if="thumbnailImages.length>0 && ableOperation">删除</el-button> |
| 36 | <div v-if="ableOperation" class="pl-5"> | 36 | <div v-if="ableOperation" class="pl-5"> |
| ... | @@ -86,7 +86,7 @@ | ... | @@ -86,7 +86,7 @@ |
| 86 | // 缩略图 | 86 | // 缩略图 |
| 87 | thumbnailImages: [], | 87 | thumbnailImages: [], |
| 88 | showViewer: false, | 88 | showViewer: false, |
| 89 | initialIndex: undefined, | 89 | initialIndex: 0, |
| 90 | allLi: [], | 90 | allLi: [], |
| 91 | } | 91 | } |
| 92 | }, | 92 | }, | ... | ... |
| ... | @@ -297,7 +297,9 @@ | ... | @@ -297,7 +297,9 @@ |
| 297 | this.previewImg.imgList = res.result ? res.result : []; | 297 | this.previewImg.imgList = res.result ? res.result : []; |
| 298 | }) | 298 | }) |
| 299 | this.previewImg.bsmSj = item?.bsmSj; | 299 | this.previewImg.bsmSj = item?.bsmSj; |
| 300 | if (this.$refs.imageRef) { | ||
| 300 | this.$refs.imageRef.initialIndex = 0 | 301 | this.$refs.imageRef.initialIndex = 0 |
| 302 | } | ||
| 301 | }, | 303 | }, |
| 302 | /** | 304 | /** |
| 303 | * @description: 小图片点击 | 305 | * @description: 小图片点击 | ... | ... |
-
Please register or sign in to post a comment