Commit b9dc0cc0 authored by Mac's avatar Mac

1

parent f73fc33c
...@@ -361,7 +361,7 @@ ...@@ -361,7 +361,7 @@
<button class="normalBtn" @click="AddFinancial()">{{$t('fnc.tijiao')}}</button> <button class="normalBtn" @click="AddFinancial()">{{$t('fnc.tijiao')}}</button>
</div> </div>
<viewer :images="images" :options='imageOptions' @inited="inited" class="viewer" ref="viewer"> <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> </viewer>
</div> </div>
</template> </template>
...@@ -730,13 +730,13 @@ ...@@ -730,13 +730,13 @@
this.picIsShow= true; this.picIsShow= true;
let isExsit=false let isExsit=false
this.images.forEach(x=>{ this.images.forEach(x=>{
if(x==i.Url) if(x==i.Content)
isExsit=true isExsit=true
}) })
if(!isExsit) { if(!isExsit) {
this.images.push(i.Url) this.images.push(i.Content)
} else { } else {
this.$viewer.view(this.images.indexOf(i.Url)) this.$viewer.view(this.images.indexOf(i.Content))
} }
this.$viewer.show() this.$viewer.show()
}else{ }else{
......
...@@ -386,6 +386,10 @@ export default{ ...@@ -386,6 +386,10 @@ export default{
} else { } else {
return source; 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