Commit b9dc0cc0 authored by Mac's avatar Mac

1

parent f73fc33c
......@@ -361,7 +361,7 @@
<button class="normalBtn" @click="AddFinancial()">{{$t('fnc.tijiao')}}</button>
</div>
<viewer :images="images" :options='imageOptions' @inited="inited" class="viewer" ref="viewer">
<img v-for="src in images" :src="src" :key="src" style="display:none">
<img v-for="src in images" :src="src" :key="src" style="display: none">
</viewer>
</div>
</template>
......@@ -730,13 +730,13 @@
this.picIsShow= true;
let isExsit=false
this.images.forEach(x=>{
if(x==i.Url)
if(x==i.Content)
isExsit=true
})
if(!isExsit) {
this.images.push(i.Url)
this.images.push(i.Content)
} else {
this.$viewer.view(this.images.indexOf(i.Url))
this.$viewer.view(this.images.indexOf(i.Content))
}
this.$viewer.show()
}else{
......
......@@ -386,6 +386,10 @@ export default{
} else {
return source;
}
},
//PDF预览
Vue.prototype.previewPDF = function (url) {
window.open(url);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment