Browse Source

水尺图片

master
yx 2 years ago
parent
commit
f35ab8d8a6
  1. BIN
      src/assets/404_images/404test.jpg
  2. 17
      src/views/data/photo/index.vue

BIN
src/assets/404_images/404test.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 44 KiB

17
src/views/data/photo/index.vue

@ -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;

Loading…
Cancel
Save