| | |
| | | <div> |
| | | <el-image |
| | | style="width:50px;height:50px; cursor: pointer;" |
| | | :src="`https://pipe.thhy-tj.com/${row.paths[0]}`" |
| | | :src="`https://szpipe.thhy-tj.com/${row.paths[0]}`" |
| | | :preview-src-list="showImgLists(row)" |
| | | fit="contain"> |
| | | <div slot="error" class="image-slot"> |
| | | <img src="https://pipe.thhy-tj.com/group1/M00/00/03/bx5d1GRlfmCAEmAPAAAFoOEW2dU397.png" style="width:50px;height:50px;"> |
| | | <img src="https://szpipe.thhy-tj.com/group1/M00/00/03/bx5d1GRlfmCAEmAPAAAFoOEW2dU397.png" style="width:50px;height:50px;"> |
| | | </div> |
| | | </el-image> |
| | | </div> |
| | |
| | | showImgLists(val){ |
| | | let imgList = [] |
| | | val.paths.map(item=>{ |
| | | imgList.push(`https://pipe.thhy-tj.com/${item}`) |
| | | imgList.push(`https://szpipe.thhy-tj.com/${item}`) |
| | | }) |
| | | return imgList |
| | | }, |
| | |
| | | res.data.paths.map(item=>{ |
| | | this.imageList.push({ |
| | | id: this.imageList.length + 1, |
| | | url:`https://pipe.thhy-tj.com/${item}`, |
| | | url:`https://szpipe.thhy-tj.com/${item}`, |
| | | name:item |
| | | }) |
| | | }) |