Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
9
91isoft_web_vue
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张伯涛
91isoft_web_vue
Commits
e189d0d8
Commit
e189d0d8
authored
May 30, 2024
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
parent
c8ec2a52
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
20 deletions
+12
-20
.env.development
.env.development
+3
-8
.env.test
.env.test
+4
-6
index.vue
src/components/vanOnkyOffice/index.vue
+4
-5
index.vue
src/views/system/ossInfo/index.vue
+1
-1
No files found.
.env.development
View file @
e189d0d8
...
@@ -6,11 +6,6 @@ ENV = 'development'
...
@@ -6,11 +6,6 @@ ENV = 'development'
VUE_APP_BASE_API = '/dev-api'
VUE_APP_BASE_API = '/dev-api'
VUE_CLI_BABEL_TRANSPILE_MODULES = true
VUE_CLI_BABEL_TRANSPILE_MODULES = true
# index.html文件引用的
VUE_APP_BASE_API_ONLYOFFICE_WEB = 'http://192.168.1.27:30082'
ONLYOFFICE_WEB = 'http://192.168.1.27:30082'
VUE_APP_BASE_API_GETFILE = 'http://192.168.1.71:8082'
VUE_APP_BASE_WEB = 'http://192.168.1.27:30082'
VUE_APP_BASE_API_CALLBACK = 'http://192.168.1.71:8082'
VUE_APP_BASE_APIWEB = 'http://192.168.1.27:30082'
# 文件获取地址
ONLYOFFICE_GETFILE = 'http://192.168.1.71:8082'
# 编辑word后保存时回调的地址
ONLYOFFICE_CALLBACK = 'http://192.168.1.71:8082'
.env.test
View file @
e189d0d8
...
@@ -5,9 +5,7 @@ ENV = 'production'
...
@@ -5,9 +5,7 @@ ENV = 'production'
# base api
# base api
VUE_APP_BASE_API
=
'http://49.232.167.247:20014/'
VUE_APP_BASE_API
=
'http://49.232.167.247:20014/'
# index.html文件引用的
ONLYOFFICE_WEB
=
'http://49.232.167.247:20016'
VUE_APP_BASE_API_ONLYOFFICE_WEB
=
'http://49.232.167.247:20016'
# 文件获取地址
VUE_APP_BASE_API_GETFILE
=
'http://49.232.167.247:20014'
ONLYOFFICE_GETFILE
=
'http://172.21.0.10:20014'
VUE_APP_BASE_API_CALLBACK
=
'http://49.232.167.247:20014'
# 编辑word后保存时回调的地址
ONLYOFFICE_CALLBACK
=
'http://172.21.0.10:20014'
src/components/vanOnkyOffice/index.vue
View file @
e189d0d8
...
@@ -30,9 +30,8 @@ export default {
...
@@ -30,9 +30,8 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
// console.log('process.env.VUE_APP_BASE_API_ONLYOFFICE_WEB', process.env.VUE_APP_BASE_WEB)
console
.
log
(
'VUE_APP_BASE_API_GETFILE'
,
process
.
env
.
VUE_APP_BASE_API_GETFILE
)
// console.log('process.env.VUE_APP_BASE_API_WEB', process.env.VUE_APP_BASE_APIWEB)
console
.
log
(
'VUE_APP_BASE_API_CALLBACK'
,
process
.
env
.
VUE_APP_BASE_API_CALLBACK
)
// console.log('VUE_APP_BASE_API', process.env.VUE_APP_BASE_API)
if
(
this
.
option
)
{
if
(
this
.
option
)
{
this
.
setEditor
(
this
.
option
)
this
.
setEditor
(
this
.
option
)
}
}
...
@@ -49,7 +48,7 @@ export default {
...
@@ -49,7 +48,7 @@ export default {
// key 默认置空则不走缓存 always update
// key 默认置空则不走缓存 always update
key
:
option
.
key
,
key
:
option
.
key
,
title
:
option
.
title
,
title
:
option
.
title
,
url
:
'http://172.21.0.10:20014
/office/getFile?key='
+
option
.
key
,
url
:
process
.
env
.
VUE_APP_BASE_API_GETFILE
+
'
/office/getFile?key='
+
option
.
key
,
permissions
:
{
permissions
:
{
comment
:
true
,
comment
:
true
,
copy
:
true
,
// 定义内容是否可以复制到剪贴板。如果该参数设置为false,则只能在当前文档编辑器中粘贴内容。默认值为true。
copy
:
true
,
// 定义内容是否可以复制到剪贴板。如果该参数设置为false,则只能在当前文档编辑器中粘贴内容。默认值为true。
...
@@ -67,7 +66,7 @@ export default {
...
@@ -67,7 +66,7 @@ export default {
// documentType: 'word',
// documentType: 'word',
editorConfig
:
{
editorConfig
:
{
mode
:
'edit'
,
mode
:
'edit'
,
callbackUrl
:
'http://172.21.0.10:20014
/office/callback'
,
// "编辑word后保存时回调的地址,这个api需要自己写了,将编辑后的文件通过这个api保存到自己想要的位置
callbackUrl
:
process
.
env
.
VUE_APP_BASE_API_CALLBACK
+
'
/office/callback'
,
// "编辑word后保存时回调的地址,这个api需要自己写了,将编辑后的文件通过这个api保存到自己想要的位置
lang
:
'zh-CN'
,
// 语言设置
lang
:
'zh-CN'
,
// 语言设置
// 定制
// 定制
customization
:
{
customization
:
{
...
...
src/views/system/ossInfo/index.vue
View file @
e189d0d8
...
@@ -159,7 +159,7 @@
...
@@ -159,7 +159,7 @@
<!-- 添加或修改配置对话框 -->
<!-- 添加或修改配置对话框 -->
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
width=
"800px"
append-to-body
:close-on-click-modal=
"false"
@
close=
"cancel"
>
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
width=
"800px"
append-to-body
:close-on-click-modal=
"false"
@
close=
"cancel"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
size=
"small"
label-width=
"120px"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
size=
"small"
label-width=
"120px"
>
<el-form-item
label=
"
图片:
"
prop=
"url"
>
<el-form-item
label=
""
prop=
"url"
>
<el-upload
<el-upload
action=
"#"
action=
"#"
:file-list=
"fileList"
:file-list=
"fileList"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment