|
@@ -240,12 +240,11 @@
|
|
<VueOfficePddf :src="video.url" class="docx-class"/>
|
|
<VueOfficePddf :src="video.url" class="docx-class"/>
|
|
</div>
|
|
</div>
|
|
<div v-if="video.format==='docx'" style="width:90%;height: 80%;margin: auto">
|
|
<div v-if="video.format==='docx'" style="width:90%;height: 80%;margin: auto">
|
|
- <VueOfficeDocx :src="video.url"/>
|
|
|
|
- </div>
|
|
|
|
- <div v-if="video.format==='doc'" style="width:90%;height: 800px;margin: auto">
|
|
|
|
- <VueOfficeDoc :src="video.url" class="docx-class"/>
|
|
|
|
|
|
+<!-- <VueOfficeDocx :src="video.url"/>-->
|
|
|
|
+ <iframe :src="video.url" width="100%" height="500px"></iframe>
|
|
|
|
+ </div>
|
|
|
|
+ <div v-if="video.format==='doc'" style="width:90%;height:80%;margin: auto">
|
|
<iframe :src="video.url" width="100%" height="500px"></iframe>
|
|
<iframe :src="video.url" width="100%" height="500px"></iframe>
|
|
- <doc-viewer :src="video.url"/>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -264,8 +263,6 @@ import {ref} from 'vue'
|
|
//引入VueOfficePdf组件
|
|
//引入VueOfficePdf组件
|
|
import VueOfficePddf from '@vue-office/pdf'
|
|
import VueOfficePddf from '@vue-office/pdf'
|
|
import VueOfficeDocx from '@vue-office/docx'
|
|
import VueOfficeDocx from '@vue-office/docx'
|
|
-// import DocViewer from 'vue-doc';
|
|
|
|
-// import * as DOC from 'doc';
|
|
|
|
|
|
|
|
const opt = [
|
|
const opt = [
|
|
{
|
|
{
|
|
@@ -394,9 +391,9 @@ const selectFile2 = (scope) => {
|
|
video.value.url =scope.row.manuscriptAndMaterial;
|
|
video.value.url =scope.row.manuscriptAndMaterial;
|
|
const index = video.value.url.lastIndexOf(".")
|
|
const index = video.value.url.lastIndexOf(".")
|
|
video.value.format = video.value.url.substring(index + 1, video.value.url.length)
|
|
video.value.format = video.value.url.substring(index + 1, video.value.url.length)
|
|
- video.value.url=`https://view.officeapps.live.com/op/embed.aspx?src=${encodeURIComponent(
|
|
|
|
- video.value.url
|
|
|
|
- )}`
|
|
|
|
|
|
+ if(video.value.format==='doc'||video.value.format==='docx'){
|
|
|
|
+ video.value.url="https://view.officeapps.live.com/op/view.aspx?src="+video.value.url
|
|
|
|
+ }
|
|
// alert(video.value.format)
|
|
// alert(video.value.format)
|
|
// video.value.format = "docx"
|
|
// video.value.format = "docx"
|
|
}
|
|
}
|