update 新增编辑新标签页打开
This commit is contained in:
Generated
-14460
File diff suppressed because it is too large
Load Diff
+2
-2
@@ -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
@@ -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({
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user