update 路径修改
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
window._CONFIG = {}
|
window._CONFIG = {}
|
||||||
window._CONFIG.documentUrl = 'http://10.0.1.19:8184/laws-sinotruk/onlyoffice/downLoadFile?path='
|
window._CONFIG.documentUrl = 'http://10.0.1.19:8184/laws-sinotruk/onlyOffice/downLoadFile?path='
|
||||||
window._CONFIG.callbackUrl = 'http://10.0.1.19:8184/'
|
window._CONFIG.callbackUrl = 'http://10.0.1.19:8184/'
|
||||||
window._CONFIG.configUrl = 'http://10.0.1.19:8082/'
|
window._CONFIG.configUrl = 'http://10.0.1.19:8082/'
|
||||||
|
|||||||
+1
-1
@@ -9,7 +9,7 @@
|
|||||||
<!--开发环境-->
|
<!--开发环境-->
|
||||||
<% if (process.env.NODE_ENV === 'development' ) { %>
|
<% if (process.env.NODE_ENV === 'development' ) { %>
|
||||||
<!-- onlyOffice服务器地址-->
|
<!-- onlyOffice服务器地址-->
|
||||||
<script type="text/javascript" src="http://10.10.10.45:8103/web-apps/apps/api/documents/api.js"></script>
|
<script type="text/javascript" src="http://10.10.10.45:8105/web-apps/apps/api/documents/api.js"></script>
|
||||||
<script src="<%= BASE_URL %>dev_api_config.js"></script>
|
<script src="<%= BASE_URL %>dev_api_config.js"></script>
|
||||||
<% } %>
|
<% } %>
|
||||||
<!--测试环境-->
|
<!--测试环境-->
|
||||||
|
|||||||
+3
-3
@@ -1,8 +1,8 @@
|
|||||||
import { getAction, postAction } from './manage.js'
|
import { getAction, postAction } from './manage.js'
|
||||||
|
|
||||||
const addFile = (params) => getAction('/onlyoffice/saveEditFile', params)
|
const addFile = (params) => getAction('/onlyOffice/saveEditFile', params)
|
||||||
const getList = (params) => getAction('/onlyoffice/pageList', params)
|
const getList = (params) => getAction('/onlyOffice/pageList', params)
|
||||||
const deleteFile = (params) => postAction('/onlyoffice/delete', params)
|
const deleteFile = (params) => postAction('/onlyOffice/delete', params)
|
||||||
|
|
||||||
export {
|
export {
|
||||||
addFile,
|
addFile,
|
||||||
|
|||||||
@@ -132,9 +132,10 @@ export default {
|
|||||||
console.log(12)
|
console.log(12)
|
||||||
},
|
},
|
||||||
connectEditor () {
|
connectEditor () {
|
||||||
|
console.log(this.$route.query)
|
||||||
console.log(`${this.documentUrl}${this.$route.query.filePath}`)
|
console.log(`${this.documentUrl}${this.$route.query.filePath}`)
|
||||||
console.log(window._CONFIG.configUrl + 'page1/config.json')
|
console.log(window._CONFIG.configUrl + 'page1/config.json')
|
||||||
console.log(`${this.callbackUrl}laws-sinotruk/onlyoffice/recieveFile?fileId=${this.$route.query.fileId}&fileNm=${this.$route.query.fileName}&key=${this.$route.query.key}`)
|
console.log(`${this.callbackUrl}laws-sinotruk/onlyOffice/receiveFile?fileId=${this.$route.query.fileId}&fileNm=${this.$route.query.fileName}&key=${this.$route.query.key}`)
|
||||||
const nowTime = new Date().getTime()
|
const nowTime = new Date().getTime()
|
||||||
this.docEditor = new DocsAPI.DocEditor('iframeEditor', {
|
this.docEditor = new DocsAPI.DocEditor('iframeEditor', {
|
||||||
width: '100%',
|
width: '100%',
|
||||||
@@ -152,7 +153,7 @@ export default {
|
|||||||
fileType: this.$route.query.fileType,
|
fileType: this.$route.query.fileType,
|
||||||
key: this.$route.query.key + new Date().getTime(),
|
key: this.$route.query.key + new Date().getTime(),
|
||||||
info: {
|
info: {
|
||||||
author: 'Me',
|
author: this.$route.query.userName,
|
||||||
created: 'Wed Oct 12 2022'
|
created: 'Wed Oct 12 2022'
|
||||||
},
|
},
|
||||||
permissions: {
|
permissions: {
|
||||||
@@ -182,8 +183,7 @@ export default {
|
|||||||
query: {
|
query: {
|
||||||
id: 123456
|
id: 123456
|
||||||
},
|
},
|
||||||
callbackUrl:
|
callbackUrl: `${this.callbackUrl}laws-sinotruk/onlyOffice/receiveFile?fileId=${this.$route.query.fileId}&fileNm=${this.$route.query.fileName}&key=${this.$route.query.key}`,
|
||||||
`${this.callbackUrl}laws-sinotruk/onlyoffice/recieveFile?fileId=${this.$route.query.fileId}&fileNm=${this.$route.query.fileName}&key=${this.$route.query.key}`,
|
|
||||||
user: {
|
user: {
|
||||||
id: this.$route.query.userId,
|
id: this.$route.query.userId,
|
||||||
name: this.$route.query.userName
|
name: this.$route.query.userName
|
||||||
|
|||||||
Reference in New Issue
Block a user