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