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' ) { %>
|
<% if (process.env.NODE_ENV === 'production' ) { %>
|
||||||
<script>
|
<script>
|
||||||
window._CONFIG = {
|
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',
|
// '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://onlyofficeplugins.sinotruk.com/'
|
||||||
// 'configUrl': 'http://10.10.10.45:809/'
|
// 'configUrl': 'http://10.10.10.45:809/'
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-1
@@ -126,15 +126,17 @@ export default {
|
|||||||
this.$refs.formModal.add()
|
this.$refs.formModal.add()
|
||||||
},
|
},
|
||||||
handleEdit (record) {
|
handleEdit (record) {
|
||||||
this.$router.push({
|
const { href } = this.$router.resolve({
|
||||||
path: '/editor',
|
path: '/editor',
|
||||||
query: {
|
query: {
|
||||||
filePath: record.editFilePath,
|
filePath: record.editFilePath,
|
||||||
fileName: record.fileName,
|
fileName: record.fileName,
|
||||||
fileType: 'docx',
|
fileType: 'docx',
|
||||||
|
fileId: record.id,
|
||||||
key: record.id
|
key: record.id
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
window.open(href, '_blank')
|
||||||
},
|
},
|
||||||
handleDelete (id) {
|
handleDelete (id) {
|
||||||
this.$confirm({
|
this.$confirm({
|
||||||
|
|||||||
@@ -181,7 +181,8 @@ export default {
|
|||||||
query: {
|
query: {
|
||||||
id: 123456
|
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: {
|
user: {
|
||||||
id: this.$route.query.userId,
|
id: this.$route.query.userId,
|
||||||
name: this.$route.query.userName
|
name: this.$route.query.userName
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ export default {
|
|||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
this.$emit('ok')
|
this.$emit('ok')
|
||||||
this.close()
|
this.close()
|
||||||
this.$router.push({
|
const { href } = this.$router.resolve({
|
||||||
path: '/editor',
|
path: '/editor',
|
||||||
query: {
|
query: {
|
||||||
filePath: data.editFilePath,
|
filePath: data.editFilePath,
|
||||||
@@ -61,6 +61,7 @@ export default {
|
|||||||
key: data.id
|
key: data.id
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
window.open(href, '_blank')
|
||||||
} else {
|
} else {
|
||||||
this.$message.warn(res.message)
|
this.$message.warn(res.message)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user