[update] 预览调试
This commit is contained in:
@@ -215,7 +215,6 @@ export default {
|
|||||||
query: {
|
query: {
|
||||||
id: 123456
|
id: 123456
|
||||||
},
|
},
|
||||||
// key 要改成传文件本身??
|
|
||||||
callbackUrl: `${this.callbackUrl}laws-chery/onlyOffice/receiveFile?fileId=${this.$route.query.fileId}&fileNm=${this.$route.query.fileName}&key=${key}&business=${this.$route.query.business}`,
|
callbackUrl: `${this.callbackUrl}laws-chery/onlyOffice/receiveFile?fileId=${this.$route.query.fileId}&fileNm=${this.$route.query.fileName}&key=${key}&business=${this.$route.query.business}`,
|
||||||
user: {
|
user: {
|
||||||
id: this.$route.query.userId,
|
id: this.$route.query.userId,
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
docEditor: null,
|
docEditor: null,
|
||||||
documentUrl: window._CONFIG.documentUrl,
|
documentUrl: window._CONFIG.documentUrl,
|
||||||
currentFilePath: null // 当前页面展示文件的path
|
currentFileId: null // 当前页面展示文件的id
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
@@ -74,7 +74,7 @@ export default {
|
|||||||
{
|
{
|
||||||
'version': 1,
|
'version': 1,
|
||||||
'key': this.$route.query.attId,
|
'key': this.$route.query.attId,
|
||||||
'url': this.documentUrl + this.$route.query.filePath + this.$route.query.fileName
|
'url': this.documentUrl + this.$route.query.fileId + this.$route.query.fileName
|
||||||
}
|
}
|
||||||
] || null
|
] || null
|
||||||
this.docEditor.setHistoryData(historyData[version - 1])
|
this.docEditor.setHistoryData(historyData[version - 1])
|
||||||
@@ -134,13 +134,13 @@ export default {
|
|||||||
let url = ''
|
let url = ''
|
||||||
let key = ''
|
let key = ''
|
||||||
if (fileInfo.id) {
|
if (fileInfo.id) {
|
||||||
url = this.documentUrl + fileInfo.filePath
|
url = this.documentUrl + fileInfo.id
|
||||||
key = this.$route.query.key + nowTime
|
key = this.$route.query.key + nowTime
|
||||||
this.currentFilePath = fileInfo.filePath
|
this.currentFileId = fileInfo.id
|
||||||
} else {
|
} else {
|
||||||
url = `${this.documentUrl}${this.$route.query.filePath}`
|
url = `${this.documentUrl}${this.$route.query.fileId}`
|
||||||
key = this.$route.query.key + nowTime
|
key = this.$route.query.key + nowTime
|
||||||
this.currentFilePath = this.$route.query.filePath
|
this.currentFileId = this.$route.query.fileId
|
||||||
}
|
}
|
||||||
this.docEditor = new DocsAPI.DocEditor('iframeEditor', {
|
this.docEditor = new DocsAPI.DocEditor('iframeEditor', {
|
||||||
width: '100%',
|
width: '100%',
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ export default {
|
|||||||
{
|
{
|
||||||
'version': 1,
|
'version': 1,
|
||||||
'key': this.$route.query.key,
|
'key': this.$route.query.key,
|
||||||
'url': this.documentUrl + this.$route.query.filePath
|
'url': this.documentUrl + this.$route.query.fileId
|
||||||
}
|
}
|
||||||
] || null
|
] || null
|
||||||
this.docEditor.setHistoryData(historyData[version - 1])
|
this.docEditor.setHistoryData(historyData[version - 1])
|
||||||
@@ -124,7 +124,7 @@ export default {
|
|||||||
token: '',
|
token: '',
|
||||||
document: {
|
document: {
|
||||||
title: this.$route.query.fileName,
|
title: this.$route.query.fileName,
|
||||||
url: `${this.documentUrl}${this.$route.query.filePath}`,
|
url: `${this.documentUrl}${this.$route.query.fileId}`,
|
||||||
fileType: this.$route.query.fileType,
|
fileType: this.$route.query.fileType,
|
||||||
key: this.$route.query.key,
|
key: this.$route.query.key,
|
||||||
permissions: {
|
permissions: {
|
||||||
|
|||||||
Reference in New Issue
Block a user