|
|
|
@ -45,9 +45,9 @@
@@ -45,9 +45,9 @@
|
|
|
|
|
<div class="card" v-for="item in currdataList" :key="item.stnmId"> |
|
|
|
|
<!-- <img src="../../../assets/images/water.jpg" @click="show('http://localhost:81/control/static/img/water.8d19122d.jpg')"> --> |
|
|
|
|
<el-image style="width: 300px;height: 168.75px;" |
|
|
|
|
:src="'https://www.huastech.com.cn/'+item.imgName" |
|
|
|
|
:src="item.imgName" |
|
|
|
|
:preview-src-list="srcList" |
|
|
|
|
@click="show('https://www.huastech.com.cn/'+item.imgName)" |
|
|
|
|
@click="show(item.imgName)" |
|
|
|
|
|
|
|
|
|
></el-image> |
|
|
|
|
|
|
|
|
@ -118,8 +118,6 @@ export default {
@@ -118,8 +118,6 @@ export default {
|
|
|
|
|
open: false, |
|
|
|
|
showImg : '', |
|
|
|
|
srcList:[], |
|
|
|
|
//默认图片 |
|
|
|
|
defaultImg:errorImg, |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -138,11 +136,14 @@ export default {
@@ -138,11 +136,14 @@ export default {
|
|
|
|
|
queryPhotoList(this.queryParams).then(response=>{ |
|
|
|
|
this.currdataList=response.data; |
|
|
|
|
this.total=response.count; |
|
|
|
|
this.currdataList.foreach((e,index)=>{ |
|
|
|
|
if(e.imgUrl==''&& e.imgUrl==null){ |
|
|
|
|
e.imgUrl=this.defaultImg |
|
|
|
|
this.currdataList.forEach(function(e,index){ |
|
|
|
|
if(e.imgName=='' ||e.imgName==null){ |
|
|
|
|
|
|
|
|
|
e.imgName=errorImg |
|
|
|
|
}else{ |
|
|
|
|
e.imgUrl='https://www.huastech.com.cn/'+e.imgUrl |
|
|
|
|
|
|
|
|
|
e.imgName='https://www.huastech.com.cn'+e.imgName |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
this.loading = false; |
|
|
|
|