Commit 9b20d0e9 by 史敦盼

onlyoffice修改

1 parent de1f8c48
// onlyoffice 文档url
export const documentServerUrl = 'http://192.168.0.120/'
export const documentServerUrl2 = 'http://192.168.0.120:18050/'
......@@ -7,15 +7,28 @@
* @Autor: pan
* @Date: 2024-03-21 20:58:31
* @LastEditors: pan
* @LastEditTime: 2024-03-22 19:51:11
* @LastEditTime: 2024-03-27 15:49:10
-->
<template>
<div class="flex-column m-10 w-100 conceptualExamine">
<div class="content flex">
<div class="left_container m-r-10 flex-column">
<div class="left_container_title">
<i class="el-icon-caret-right icon"></i>
<span>评审标准</span>
<div
class="left_container m-r-10 flex-column"
:class="{ fullScreen: leftFullScreen }"
>
<div class="left_container_title flex-b-c">
<div>
<i class="el-icon-caret-right icon"></i>
<span>评审标准</span>
</div>
<el-tooltip effect="dark" :content="leftScreenTip" placement="top">
<i
@click="leftFullScreen = !leftFullScreen"
:class="
leftFullScreen ? 'el-icon-circle-close' : 'el-icon-full-screen'
"
></i>
</el-tooltip>
</div>
<div
class="left_container_content flex-1"
......@@ -46,10 +59,23 @@
<Tab8Left v-else :tab="tab" @toRemark="toRemark" />
</div>
</div>
<div class="right_container flex-column">
<div class="right_container_title">
<i class="el-icon-caret-right icon"></i>
<span>评审内容</span>
<div
class="right_container flex-column"
:class="{ fullScreen: rightFullScreen }"
>
<div class="right_container_title flex-b-c">
<div>
<i class="el-icon-caret-right icon"></i>
<span>评审内容</span>
</div>
<el-tooltip effect="dark" :content="rightScreenTip" placement="top">
<i
@click="rightFullScreen = !rightFullScreen"
:class="
rightFullScreen ? 'el-icon-circle-close' : 'el-icon-full-screen'
"
></i>
</el-tooltip>
</div>
<div
class="right_container_content flex-1"
......@@ -134,7 +160,11 @@ import {
saveExamine,
exportRiskReport,
getQWordPic_,
queryPrjNeedFile,
getReviewArchiFollowCheckRightGraph,
} from '@/api'
import { documentServerUrl, documentServerUrl2 } from '@/config'
import { EADC_SHARED_ABILITY } from '@/config/micromodule'
export default {
name: 'conceptualExamine',
components: {
......@@ -155,15 +185,17 @@ export default {
rightBaseOptions: [],
leftContentTyp: [],
rightContentType: [],
leftFullScreen: false,
rightFullScreen: false,
documentServerUrl: 'http://43.143.211.42:19231/',
documentServerUrl: documentServerUrl2,
config: {
document: {
fileType: 'docx',
// 给服务端用的唯一id,同一个id就会获取服务器缓存里的文件(有这个key,就会先根据它去缓存里找),这项如果最开始只是先试用,可以先给个空字符串
key: '71df19fbd1',
key: '',
// 文件名
title: '65f90a662c18a9e9f1878156.docx',
title: '概要设计说明书.docx',
//相关权限
// permissions: {
// copy: true, //定义内容是否可以复制到剪贴板。如果该参数设置为false,则只能在当前文档编辑器中粘贴内容。默认值为true。
......@@ -172,7 +204,7 @@ export default {
// print: true, //定义是否可以打印文档。如果打印权限设置为“false”的打印菜单选项将是缺席的文件菜单。默认值为true
// },
// 所要渲染的文件的绝对路径,这个参数很重要,它传的不是文件的本地地址,而是需要把文件传到项目所依赖的服务器,然后拿到文件在服务器的url地址(这个一般情况需要后端支持)才可以用,这个参数决定了能不能实例化出来onlyoffice对象
url: 'http://43.143.211.42:7006/downloadFile/29',
url: `${documentServerUrl}${EADC_SHARED_ABILITY}/downloadFile/293`,
},
documentType: 'word',
height: '100%',
......@@ -185,15 +217,17 @@ export default {
customization: {
//是否显示插件
plugins: false,
forcesave: true,
},
user: {
// 当前正在view/edit此文档的用户信息
name: '',
name: '管理员',
},
// 指定文档存储服务器的绝对路径
callbackUrl: 'http://43.143.211.42:7006/callback?fileId=29',
callbackUrl: `${documentServerUrl}${EADC_SHARED_ABILITY}/callback?fileId=293`,
},
},
selectData: [],
}
},
created() {
......@@ -214,14 +248,36 @@ export default {
}
}
},
mounted() {
if (
this.leftContentType === 'onlyoffice' ||
this.rightContentType === 'onlyoffice'
) {
this.fnQueryPrjNeedFile()
}
},
computed: {
leftScreenTip() {
if (this.leftFullScreen) {
return '退出全屏'
} else {
return '全屏'
}
},
rightScreenTip() {
if (this.rightFullScreen) {
return '退出全屏'
} else {
return '全屏'
}
},
getLeftApi() {
if (this.leftContentType === 'word') {
return getReviewNorm
} else if (this.leftContentType === 'img') {
if (this.tab === '2') {
// 王勇接口
return getQWordPic_
// 谢皓接口
return getReviewArchiFollowCheckRightGraph
} else {
// 李振接口
return getQWordPic
......@@ -237,8 +293,8 @@ export default {
return getReviewNorm
} else if (this.rightContentType === 'img') {
if (this.tab === '2') {
// 王勇接口
return getQWordPic_
// 谢皓接口
return getReviewArchiFollowCheckRightGraph
} else {
// 李振接口
return getQWordPic
......@@ -251,6 +307,19 @@ export default {
},
},
methods: {
// 获取下拉文档内容
fnQueryPrjNeedFile() {
const params = {
busiFileNameList: ['概要设计说明书'],
busiId: this.row.prjId,
busiIdType: 1,
}
queryPrjNeedFile(params).then((res) => {
if (res.code === 200) {
this.selectData = res.data
}
})
},
// 带入到备注
toRemark(str) {
this.resultContent = this.resultContent
......@@ -265,12 +334,13 @@ export default {
needId,
prjId,
archiPrjReviewEnum,
archiStage: 1,
}
this.getLeftApi(params).then((res) => {
this.leftLoading = false
if (res.code === 200) {
this.leftBaseOptions = res.data.docParserList.map(
(v) => `data:image/png;base64,${v.docContent}`,
this.leftBaseOptions = res.data.map(
(v) => `data:image/png;base64,${v.metaModelSvg}`,
)
}
})
......@@ -287,8 +357,8 @@ export default {
this.getRightApi(params).then((res) => {
this.rightLoading = false
if (res.code === 200) {
this.rightBaseOptions = res.data.docParserList.map(
(v) => `data:image/png;base64,${v.docContent}`,
this.rightBaseOptions = res.data.map(
(v) => `data:image/png;base64,${v.metaModelSvg}`,
)
}
})
......@@ -315,7 +385,8 @@ export default {
handlExportRiskReport() {
const params = {
title: '功能重复风险',
comment: this.resultContent,
type: 1,
// comment: this.resultContent,
}
exportRiskReport(params).then((res) => {
const url = window.URL.createObjectURL(
......
......@@ -75,7 +75,7 @@
size="medium"
plain
v-if="activeName2 === '8'"
@click="handlExportRiskReport()"
@click="handlExportRiskReport('重复建设风险报告', 1)"
>导出重复建设风险报告</el-button
>
<el-button
......@@ -84,6 +84,7 @@
size="medium"
plain
v-if="activeName2 === '9'"
@click="handlExportRiskReport('重复录入风险报告', 2)"
>导出重复录入风险报告</el-button
>
</template>
......@@ -360,10 +361,10 @@ export default {
// xxx
},
// 导出重复建设风险报告
handlExportRiskReport() {
handlExportRiskReport(title, type) {
const params = {
title: '功能重复风险',
comment: '',
title,
type,
}
exportRiskReport(params).then((res) => {
const url = window.URL.createObjectURL(
......
......@@ -50,3 +50,22 @@
}
}
}
.fullScreen {
width: 100% !important;
height: 100% !important;
position: fixed !important;
left: 0;
top: 0;
z-index: 999;
}
.left_container,
.right_container {
.el-icon-circle-close,
.el-icon-full-screen {
font-size: 18px;
margin-right: 16px;
font-weight: bold;
cursor: pointer;
}
}
......@@ -73,6 +73,8 @@ import {
saveReviewArchiFollowCheckRightSuggestion,
queryReviewArchiFollowCheckRightSuggestionDetails,
} from '@/api/index.js'
import { documentServerUrl, documentServerUrl2 } from '@/config'
import { EADC_SHARED_ABILITY } from '@/config/micromodule'
export default {
name: 'tab1',
components: { vabOnlyOffice },
......@@ -91,14 +93,14 @@ export default {
},
],
select: '1',
documentServerUrl: 'http://192.168.0.120:18050/',
documentServerUrl: documentServerUrl2,
config: {
document: {
fileType: 'docx',
// 给服务端用的唯一id,同一个id就会获取服务器缓存里的文件(有这个key,就会先根据它去缓存里找),这项如果最开始只是先试用,可以先给个空字符串
key: '71df19fbd1',
key: '',
// 文件名
title: '65f90a662c18a9e9f1878156.docx',
title: '概要设计说明书.docx',
//相关权限
// permissions: {
// copy: true, //定义内容是否可以复制到剪贴板。如果该参数设置为false,则只能在当前文档编辑器中粘贴内容。默认值为true。
......@@ -107,7 +109,7 @@ export default {
// print: true, //定义是否可以打印文档。如果打印权限设置为“false”的打印菜单选项将是缺席的文件菜单。默认值为true
// },
// 所要渲染的文件的绝对路径,这个参数很重要,它传的不是文件的本地地址,而是需要把文件传到项目所依赖的服务器,然后拿到文件在服务器的url地址(这个一般情况需要后端支持)才可以用,这个参数决定了能不能实例化出来onlyoffice对象
url: 'http://192.168.0.120:7005/downloadFile/29',
url: `${documentServerUrl}${EADC_SHARED_ABILITY}/downloadFile/293`,
},
documentType: 'word',
height: '100%',
......@@ -124,10 +126,10 @@ export default {
},
user: {
// 当前正在view/edit此文档的用户信息
name: '',
name: '管理员',
},
// 指定文档存储服务器的绝对路径
callbackUrl: 'http://192.168.0.120:7005/callback?fileId=29',
callbackUrl: `${documentServerUrl}${EADC_SHARED_ABILITY}/callback?fileId=293`,
},
},
}
......
......@@ -73,6 +73,8 @@ import {
saveReviewArchiFollowCheckRightSuggestion,
queryReviewArchiFollowCheckRightSuggestionDetails,
} from '@/api/index.js'
import { documentServerUrl, documentServerUrl2 } from '@/config'
import { EADC_SHARED_ABILITY } from '@/config/micromodule'
export default {
name: 'tab2',
components: { vabOnlyOffice },
......@@ -91,14 +93,14 @@ export default {
},
],
select: '1',
documentServerUrl: 'http://192.168.0.120:18050/',
documentServerUrl: documentServerUrl2,
config: {
document: {
fileType: 'docx',
// 给服务端用的唯一id,同一个id就会获取服务器缓存里的文件(有这个key,就会先根据它去缓存里找),这项如果最开始只是先试用,可以先给个空字符串
key: '71df19fbd1',
key: '',
// 文件名
title: '65f90a662c18a9e9f1878156.docx',
title: '概要设计说明书.docx',
//相关权限
// permissions: {
// copy: true, //定义内容是否可以复制到剪贴板。如果该参数设置为false,则只能在当前文档编辑器中粘贴内容。默认值为true。
......@@ -107,7 +109,7 @@ export default {
// print: true, //定义是否可以打印文档。如果打印权限设置为“false”的打印菜单选项将是缺席的文件菜单。默认值为true
// },
// 所要渲染的文件的绝对路径,这个参数很重要,它传的不是文件的本地地址,而是需要把文件传到项目所依赖的服务器,然后拿到文件在服务器的url地址(这个一般情况需要后端支持)才可以用,这个参数决定了能不能实例化出来onlyoffice对象
url: 'http://192.168.0.120:7005/downloadFile/29',
url: `${documentServerUrl}${EADC_SHARED_ABILITY}/downloadFile/293`,
},
documentType: 'word',
height: '100%',
......@@ -124,10 +126,10 @@ export default {
},
user: {
// 当前正在view/edit此文档的用户信息
name: '',
name: '管理员',
},
// 指定文档存储服务器的绝对路径
callbackUrl: 'http://192.168.0.120:7005/callback?fileId=29',
callbackUrl: `${documentServerUrl}${EADC_SHARED_ABILITY}/callback?fileId=293`,
},
},
}
......
......@@ -64,6 +64,8 @@ import {
saveReviewArchiFollowCheckRightSuggestion,
queryReviewArchiFollowCheckRightSuggestionDetails,
} from '@/api/index.js'
import { documentServerUrl, documentServerUrl2 } from '@/config'
import { EADC_SHARED_ABILITY } from '@/config/micromodule'
export default {
name: 'tab3',
components: { vabOnlyOffice },
......@@ -82,14 +84,14 @@ export default {
},
],
select: '1',
documentServerUrl: 'http://192.168.0.120:18050/',
documentServerUrl: documentServerUrl2,
config: {
document: {
fileType: 'docx',
// 给服务端用的唯一id,同一个id就会获取服务器缓存里的文件(有这个key,就会先根据它去缓存里找),这项如果最开始只是先试用,可以先给个空字符串
key: '71df19fbd1',
key: '',
// 文件名
title: '65f90a662c18a9e9f1878156.docx',
title: '概要设计说明书.docx',
//相关权限
// permissions: {
// copy: true, //定义内容是否可以复制到剪贴板。如果该参数设置为false,则只能在当前文档编辑器中粘贴内容。默认值为true。
......@@ -98,7 +100,7 @@ export default {
// print: true, //定义是否可以打印文档。如果打印权限设置为“false”的打印菜单选项将是缺席的文件菜单。默认值为true
// },
// 所要渲染的文件的绝对路径,这个参数很重要,它传的不是文件的本地地址,而是需要把文件传到项目所依赖的服务器,然后拿到文件在服务器的url地址(这个一般情况需要后端支持)才可以用,这个参数决定了能不能实例化出来onlyoffice对象
url: 'http://192.168.0.120:7005/downloadFile/29',
url: `${documentServerUrl}${EADC_SHARED_ABILITY}/downloadFile/293`,
},
documentType: 'word',
height: '100%',
......@@ -115,10 +117,10 @@ export default {
},
user: {
// 当前正在view/edit此文档的用户信息
name: '',
name: '管理员',
},
// 指定文档存储服务器的绝对路径
callbackUrl: 'http://192.168.0.120:7005/callback?fileId=29',
callbackUrl: `${documentServerUrl}${EADC_SHARED_ABILITY}/callback?fileId=293`,
},
},
}
......
......@@ -64,6 +64,8 @@ import {
saveReviewArchiFollowCheckRightSuggestion,
queryReviewArchiFollowCheckRightSuggestionDetails,
} from '@/api/index.js'
import { documentServerUrl, documentServerUrl2 } from '@/config'
import { EADC_SHARED_ABILITY } from '@/config/micromodule'
export default {
name: 'tab4',
components: { vabOnlyOffice },
......@@ -82,14 +84,14 @@ export default {
},
],
select: '1',
documentServerUrl: 'http://192.168.0.120:18050/',
documentServerUrl: documentServerUrl2,
config: {
document: {
fileType: 'docx',
// 给服务端用的唯一id,同一个id就会获取服务器缓存里的文件(有这个key,就会先根据它去缓存里找),这项如果最开始只是先试用,可以先给个空字符串
key: '71df19fbd1',
key: '',
// 文件名
title: '65f90a662c18a9e9f1878156.docx',
title: '概要设计说明书.docx',
//相关权限
// permissions: {
// copy: true, //定义内容是否可以复制到剪贴板。如果该参数设置为false,则只能在当前文档编辑器中粘贴内容。默认值为true。
......@@ -98,7 +100,7 @@ export default {
// print: true, //定义是否可以打印文档。如果打印权限设置为“false”的打印菜单选项将是缺席的文件菜单。默认值为true
// },
// 所要渲染的文件的绝对路径,这个参数很重要,它传的不是文件的本地地址,而是需要把文件传到项目所依赖的服务器,然后拿到文件在服务器的url地址(这个一般情况需要后端支持)才可以用,这个参数决定了能不能实例化出来onlyoffice对象
url: 'http://192.168.0.120:7005/downloadFile/29',
url: `${documentServerUrl}${EADC_SHARED_ABILITY}/downloadFile/293`,
},
documentType: 'word',
height: '100%',
......@@ -115,10 +117,10 @@ export default {
},
user: {
// 当前正在view/edit此文档的用户信息
name: '',
name: '管理员',
},
// 指定文档存储服务器的绝对路径
callbackUrl: 'http://192.168.0.120:7005/callback?fileId=29',
callbackUrl: `${documentServerUrl}${EADC_SHARED_ABILITY}/callback?fileId=293`,
},
},
}
......
......@@ -64,6 +64,8 @@ import {
saveReviewArchiFollowCheckRightSuggestion,
queryReviewArchiFollowCheckRightSuggestionDetails,
} from '@/api/index.js'
import { documentServerUrl, documentServerUrl2 } from '@/config'
import { EADC_SHARED_ABILITY } from '@/config/micromodule'
export default {
name: 'tab5',
components: { vabOnlyOffice },
......@@ -82,14 +84,14 @@ export default {
},
],
select: '1',
documentServerUrl: 'http://192.168.0.120:18050/',
documentServerUrl: documentServerUrl2,
config: {
document: {
fileType: 'docx',
// 给服务端用的唯一id,同一个id就会获取服务器缓存里的文件(有这个key,就会先根据它去缓存里找),这项如果最开始只是先试用,可以先给个空字符串
key: '71df19fbd1',
key: '',
// 文件名
title: '65f90a662c18a9e9f1878156.docx',
title: '概要设计说明书.docx',
//相关权限
// permissions: {
// copy: true, //定义内容是否可以复制到剪贴板。如果该参数设置为false,则只能在当前文档编辑器中粘贴内容。默认值为true。
......@@ -98,7 +100,7 @@ export default {
// print: true, //定义是否可以打印文档。如果打印权限设置为“false”的打印菜单选项将是缺席的文件菜单。默认值为true
// },
// 所要渲染的文件的绝对路径,这个参数很重要,它传的不是文件的本地地址,而是需要把文件传到项目所依赖的服务器,然后拿到文件在服务器的url地址(这个一般情况需要后端支持)才可以用,这个参数决定了能不能实例化出来onlyoffice对象
url: 'http://192.168.0.120:7005/downloadFile/29',
url: `${documentServerUrl}${EADC_SHARED_ABILITY}/downloadFile/293`,
},
documentType: 'word',
height: '100%',
......@@ -115,10 +117,10 @@ export default {
},
user: {
// 当前正在view/edit此文档的用户信息
name: '',
name: '管理员',
},
// 指定文档存储服务器的绝对路径
callbackUrl: 'http://192.168.0.120:7005/callback?fileId=29',
callbackUrl: `${documentServerUrl}${EADC_SHARED_ABILITY}/callback?fileId=293`,
},
},
}
......
......@@ -73,6 +73,8 @@ import {
saveReviewArchiFollowCheckRightSuggestion,
queryReviewArchiFollowCheckRightSuggestionDetails,
} from '@/api/index.js'
import { documentServerUrl, documentServerUrl2 } from '@/config'
import { EADC_SHARED_ABILITY } from '@/config/micromodule'
export default {
name: 'tab6',
components: { vabOnlyOffice },
......@@ -91,14 +93,14 @@ export default {
},
],
select: '1',
documentServerUrl: 'http://192.168.0.120:18050/',
documentServerUrl: documentServerUrl2,
config: {
document: {
fileType: 'docx',
// 给服务端用的唯一id,同一个id就会获取服务器缓存里的文件(有这个key,就会先根据它去缓存里找),这项如果最开始只是先试用,可以先给个空字符串
key: '71df19fbd1',
key: '',
// 文件名
title: '65f90a662c18a9e9f1878156.docx',
title: '概要设计说明书.docx',
//相关权限
// permissions: {
// copy: true, //定义内容是否可以复制到剪贴板。如果该参数设置为false,则只能在当前文档编辑器中粘贴内容。默认值为true。
......@@ -107,7 +109,7 @@ export default {
// print: true, //定义是否可以打印文档。如果打印权限设置为“false”的打印菜单选项将是缺席的文件菜单。默认值为true
// },
// 所要渲染的文件的绝对路径,这个参数很重要,它传的不是文件的本地地址,而是需要把文件传到项目所依赖的服务器,然后拿到文件在服务器的url地址(这个一般情况需要后端支持)才可以用,这个参数决定了能不能实例化出来onlyoffice对象
url: 'http://192.168.0.120:7005/downloadFile/29',
url: `${documentServerUrl}${EADC_SHARED_ABILITY}/downloadFile/293`,
},
documentType: 'word',
height: '100%',
......@@ -124,10 +126,10 @@ export default {
},
user: {
// 当前正在view/edit此文档的用户信息
name: '',
name: '管理员',
},
// 指定文档存储服务器的绝对路径
callbackUrl: 'http://192.168.0.120:7005/callback?fileId=29',
callbackUrl: `${documentServerUrl}${EADC_SHARED_ABILITY}/callback?fileId=293`,
},
},
}
......
......@@ -69,6 +69,8 @@
<script>
import vabOnlyOffice from '@/components/onlyOffice/index.vue'
import { savePrelDesInspecte, detailPrelDesInspecte } from '@/api/index.js'
import { documentServerUrl, documentServerUrl2 } from '@/config'
import { EADC_SHARED_ABILITY } from '@/config/micromodule'
export default {
name: 'tab1',
components: { vabOnlyOffice },
......@@ -88,14 +90,14 @@ export default {
],
select: '1',
row: {},
documentServerUrl: 'http://43.143.211.42:19231/',
documentServerUrl: documentServerUrl2,
config: {
document: {
fileType: 'docx',
// 给服务端用的唯一id,同一个id就会获取服务器缓存里的文件(有这个key,就会先根据它去缓存里找),这项如果最开始只是先试用,可以先给个空字符串
key: '71df19fbd1',
key: '',
// 文件名
title: '65f90a662c18a9e9f1878156.docx',
title: '概要设计说明书.docx',
//相关权限
// permissions: {
// copy: true, //定义内容是否可以复制到剪贴板。如果该参数设置为false,则只能在当前文档编辑器中粘贴内容。默认值为true。
......@@ -104,7 +106,7 @@ export default {
// print: true, //定义是否可以打印文档。如果打印权限设置为“false”的打印菜单选项将是缺席的文件菜单。默认值为true
// },
// 所要渲染的文件的绝对路径,这个参数很重要,它传的不是文件的本地地址,而是需要把文件传到项目所依赖的服务器,然后拿到文件在服务器的url地址(这个一般情况需要后端支持)才可以用,这个参数决定了能不能实例化出来onlyoffice对象
url: 'http://43.143.211.42:7006/downloadFile/29',
url: `${documentServerUrl}${EADC_SHARED_ABILITY}/downloadFile/293`,
},
documentType: 'word',
height: '100%',
......@@ -121,10 +123,10 @@ export default {
},
user: {
// 当前正在view/edit此文档的用户信息
name: '',
name: '管理员',
},
// 指定文档存储服务器的绝对路径
callbackUrl: 'http://43.143.211.42:7006/callback?fileId=29',
callbackUrl: `${documentServerUrl}${EADC_SHARED_ABILITY}/callback?fileId=293`,
},
},
}
......
......@@ -59,6 +59,8 @@
<script>
import vabOnlyOffice from '@/components/onlyOffice/index.vue'
import { savePrelDesInspecte, detailPrelDesInspecte } from '@/api/index.js'
import { documentServerUrl, documentServerUrl2 } from '@/config'
import { EADC_SHARED_ABILITY } from '@/config/micromodule'
export default {
name: 'tab4',
components: { vabOnlyOffice },
......@@ -68,14 +70,14 @@ export default {
isMeet: null,
select: '1',
row: {},
documentServerUrl: 'http://43.143.211.42:19231/',
documentServerUrl: documentServerUrl2,
config: {
document: {
fileType: 'docx',
// 给服务端用的唯一id,同一个id就会获取服务器缓存里的文件(有这个key,就会先根据它去缓存里找),这项如果最开始只是先试用,可以先给个空字符串
key: '71df19fbd1',
key: '',
// 文件名
title: '65f90a662c18a9e9f1878156.docx',
title: '概要设计说明书.docx',
//相关权限
// permissions: {
// copy: true, //定义内容是否可以复制到剪贴板。如果该参数设置为false,则只能在当前文档编辑器中粘贴内容。默认值为true。
......@@ -84,7 +86,7 @@ export default {
// print: true, //定义是否可以打印文档。如果打印权限设置为“false”的打印菜单选项将是缺席的文件菜单。默认值为true
// },
// 所要渲染的文件的绝对路径,这个参数很重要,它传的不是文件的本地地址,而是需要把文件传到项目所依赖的服务器,然后拿到文件在服务器的url地址(这个一般情况需要后端支持)才可以用,这个参数决定了能不能实例化出来onlyoffice对象
url: 'http://43.143.211.42:7006/downloadFile/29',
url: `${documentServerUrl}${EADC_SHARED_ABILITY}/downloadFile/293`,
},
documentType: 'word',
height: '100%',
......@@ -101,10 +103,10 @@ export default {
},
user: {
// 当前正在view/edit此文档的用户信息
name: '',
name: '管理员',
},
// 指定文档存储服务器的绝对路径
callbackUrl: 'http://43.143.211.42:7006/callback?fileId=29',
callbackUrl: `${documentServerUrl}${EADC_SHARED_ABILITY}/callback?fileId=293`,
},
},
}
......
......@@ -59,6 +59,8 @@ import {
detailPrelDesInspecte,
qViewPrelDesInspecte,
} from '@/api/index.js'
import { documentServerUrl, documentServerUrl2 } from '@/config'
import { EADC_SHARED_ABILITY } from '@/config/micromodule'
export default {
name: 'tab5',
components: { vabOnlyOffice },
......@@ -68,14 +70,14 @@ export default {
isMeet: null,
select: '1',
row: {},
documentServerUrl: 'http://43.143.211.42:19231/',
documentServerUrl: documentServerUrl2,
config: {
document: {
fileType: 'docx',
// 给服务端用的唯一id,同一个id就会获取服务器缓存里的文件(有这个key,就会先根据它去缓存里找),这项如果最开始只是先试用,可以先给个空字符串
key: '71df19fbd1',
key: '',
// 文件名
title: '65f90a662c18a9e9f1878156.docx',
title: '概要设计说明书.docx',
//相关权限
// permissions: {
// copy: true, //定义内容是否可以复制到剪贴板。如果该参数设置为false,则只能在当前文档编辑器中粘贴内容。默认值为true。
......@@ -84,7 +86,7 @@ export default {
// print: true, //定义是否可以打印文档。如果打印权限设置为“false”的打印菜单选项将是缺席的文件菜单。默认值为true
// },
// 所要渲染的文件的绝对路径,这个参数很重要,它传的不是文件的本地地址,而是需要把文件传到项目所依赖的服务器,然后拿到文件在服务器的url地址(这个一般情况需要后端支持)才可以用,这个参数决定了能不能实例化出来onlyoffice对象
url: 'http://43.143.211.42:7006/downloadFile/29',
url: `${documentServerUrl}${EADC_SHARED_ABILITY}/downloadFile/293`,
},
documentType: 'word',
height: '100%',
......@@ -101,10 +103,10 @@ export default {
},
user: {
// 当前正在view/edit此文档的用户信息
name: '',
name: '管理员',
},
// 指定文档存储服务器的绝对路径
callbackUrl: 'http://43.143.211.42:7006/callback?fileId=29',
callbackUrl: `${documentServerUrl}${EADC_SHARED_ABILITY}/callback?fileId=293`,
},
},
rightImgs: [],
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!