|
|
@ -1,6 +1,6 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<div style="position: absolute;right: 0;bottom:0;width: 400px;border:1px solid #ccc"> |
|
|
|
<v-card class="d-inline-block mx-auto d-flex flex-row-reverse" v-if="show"> |
|
|
|
|
|
|
|
<v-container> |
|
|
|
<v-row> |
|
|
|
<v-row> |
|
|
|
<v-col cols="12" md="10"> |
|
|
|
<v-col cols="12" md="10"> |
|
|
|
<v-file-input ref="file" id="myfile" accept="pdf" label="Please select a file"></v-file-input> |
|
|
|
<v-file-input ref="file" id="myfile" accept="pdf" label="Please select a file"></v-file-input> |
|
|
@ -20,7 +20,8 @@ |
|
|
|
<v-btn v-if="pdf && !loading" @click="stop">stop pdf share</v-btn> |
|
|
|
<v-btn v-if="pdf && !loading" @click="stop">stop pdf share</v-btn> |
|
|
|
</v-col> |
|
|
|
</v-col> |
|
|
|
</v-row> |
|
|
|
</v-row> |
|
|
|
</div> |
|
|
|
</v-container> |
|
|
|
|
|
|
|
</v-card> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
<script> |
|
|
@ -43,6 +44,7 @@ export default { |
|
|
|
opaqueId:String |
|
|
|
opaqueId:String |
|
|
|
}, |
|
|
|
}, |
|
|
|
data: () => ({ |
|
|
|
data: () => ({ |
|
|
|
|
|
|
|
show: true, |
|
|
|
pdf: null, |
|
|
|
pdf: null, |
|
|
|
pageNumber: 1, |
|
|
|
pageNumber: 1, |
|
|
|
loading: true, |
|
|
|
loading: true, |
|
|
@ -104,6 +106,7 @@ export default { |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
stop(){ |
|
|
|
stop(){ |
|
|
|
|
|
|
|
this.onstop(); |
|
|
|
var unpublish = { "request": "unpublish"}; |
|
|
|
var unpublish = { "request": "unpublish"}; |
|
|
|
this.pluginHandle.send({"message": unpublish}); |
|
|
|
this.pluginHandle.send({"message": unpublish}); |
|
|
|
|
|
|
|
|
|
|
@ -116,8 +119,9 @@ export default { |
|
|
|
this.pageNumber = 1; |
|
|
|
this.pageNumber = 1; |
|
|
|
this.loading = true; |
|
|
|
this.loading = true; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// callback |
|
|
|
// callback |
|
|
|
this.onstop(); |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
janusPluginError (error) { |
|
|
|
janusPluginError (error) { |
|
|
|
console.log('error', error) |
|
|
|
console.log('error', error) |
|
|
|