Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
liangzhen
/
framework-tools-web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit fdac565e
authored
Jun 19, 2024
by
xiehao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:删除了试用范围
1 parent
785072e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
src/views/reviewSituation/tab1.vue
src/views/reviewSituation/tab1.vue
View file @
fdac565
...
...
@@ -120,7 +120,7 @@ export default {
// print: true, //定义是否可以打印文档。如果打印权限设置为“false”的打印菜单选项将是缺席的文件菜单。默认值为true
// },
// 所要渲染的文件的绝对路径,这个参数很重要,它传的不是文件的本地地址,而是需要把文件传到项目所依赖的服务器,然后拿到文件在服务器的url地址(这个一般情况需要后端支持)才可以用,这个参数决定了能不能实例化出来onlyoffice对象
url
:
`
${
documentServerUrl
}${
EADC_SHARED_ABILITY
}
/downloadFile/
302
`
,
url
:
`
${
documentServerUrl
}${
EADC_SHARED_ABILITY
}
/downloadFile/
419
`
,
},
documentType
:
'word'
,
height
:
'100%'
,
...
...
@@ -141,7 +141,7 @@ export default {
name
:
'管理员'
,
},
// 指定文档存储服务器的绝对路径
callbackUrl
:
`
${
documentServerUrl
}${
EADC_SHARED_ABILITY
}
/callback?fileId=
302
`
,
callbackUrl
:
`
${
documentServerUrl
}${
EADC_SHARED_ABILITY
}
/callback?fileId=
419
`
,
},
},
leftSelectData
:
[],
...
...
@@ -176,6 +176,7 @@ export default {
this
.
leftSelectData
=
res
.
data
if
(
this
.
leftSelectData
.
length
)
{
this
.
config
.
document
.
url
=
`
${
documentServerUrl
}${
EADC_SHARED_ABILITY
}
/downloadFile/
${
this
.
leftSelectData
[
0
].
fileId
}
`
console
.
log
(
"文档下载地址:"
,
this
.
config
.
document
.
url
)
this
.
config
.
editorConfig
.
url
=
`
${
documentServerUrl
}${
EADC_SHARED_ABILITY
}
/callback?fileId=
${
this
.
leftSelectData
[
0
].
fileId
}
`
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment