update 新增编辑新标签页打开

This commit is contained in:
赵霄
2023-09-15 10:34:56 +08:00
parent 2159432721
commit 2d97248379
5 changed files with 9 additions and 14465 deletions
-14460
View File
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -32,9 +32,9 @@
<% if (process.env.NODE_ENV === 'production' ) { %>
<script>
window._CONFIG = {
'documentUrl': 'http://onlyofficevue.sinotruk.com/DOCX.docx',
'documentUrl': 'http://laws.sinotruk.com/laws-sinotruk/onlyoffice/downLoadFile?path=',
// 'documentUrl': 'http://39.98.140.126:18888/file/model/task_9ad64b01/task_9ad64b01_top_9ad64b01_node.docx',
'callbackUrl': 'https://srms.foton.com.cn',
'callbackUrl': 'http://laws.sinotruk.com/',
'configUrl': 'http://onlyofficeplugins.sinotruk.com/'
// 'configUrl': 'http://10.10.10.45:809/'
}
+3 -1
View File
@@ -126,15 +126,17 @@ export default {
this.$refs.formModal.add()
},
handleEdit (record) {
this.$router.push({
const { href } = this.$router.resolve({
path: '/editor',
query: {
filePath: record.editFilePath,
fileName: record.fileName,
fileType: 'docx',
fileId: record.id,
key: record.id
}
})
window.open(href, '_blank')
},
handleDelete (id) {
this.$confirm({
+2 -1
View File
@@ -181,7 +181,8 @@ export default {
query: {
id: 123456
},
callbackUrl: `${this.callbackUrl}laws-sinotruk/onlyoffice/recieveFile?fileId=${this.$route.query.key}&fileNm=${this.$route.query.fileName}&key=${this.$route.query.key}`,
callbackUrl:
`${this.callbackUrl}laws-sinotruk/onlyoffice/recieveFile?fileId=${this.$route.query.fileId}&fileNm=${this.$route.query.fileName}&key=${this.$route.query.key}`,
user: {
id: this.$route.query.userId,
name: this.$route.query.userName
+2 -1
View File
@@ -52,7 +52,7 @@ export default {
this.$message.success(res.message)
this.$emit('ok')
this.close()
this.$router.push({
const { href } = this.$router.resolve({
path: '/editor',
query: {
filePath: data.editFilePath,
@@ -61,6 +61,7 @@ export default {
key: data.id
}
})
window.open(href, '_blank')
} else {
this.$message.warn(res.message)
}