|
@@ -41,7 +41,8 @@
|
|
|
console.log(userName, '用户名');
|
|
console.log(userName, '用户名');
|
|
|
const record = reactive({ strtype: '', strname: '' });
|
|
const record = reactive({ strtype: '', strname: '' });
|
|
|
// [SEC-20260913] 去掉 DEV 分支硬编码 IP,统一按当前主机名取(与生产一致)
|
|
// [SEC-20260913] 去掉 DEV 分支硬编码 IP,统一按当前主机名取(与生产一致)
|
|
|
- const remoteUrl = 'http://' + window.location.hostname;
|
|
|
|
|
|
|
+ // [SEC-20260913-R2] 去掉 :9999 网关直连,统一走 /modelreq 反代(保持绝对地址,供 OnlyOffice 服务端回源)
|
|
|
|
|
+ const remoteUrl = window.location.origin + '/modelreq';
|
|
|
//表单赋值
|
|
//表单赋值
|
|
|
const [registerModal, { setModalProps }] = useModalInner(async (data) => {
|
|
const [registerModal, { setModalProps }] = useModalInner(async (data) => {
|
|
|
//重置表单
|
|
//重置表单
|
|
@@ -67,7 +68,7 @@
|
|
|
height: '100%',
|
|
height: '100%',
|
|
|
document: {
|
|
document: {
|
|
|
title: '文档管理',
|
|
title: '文档管理',
|
|
|
- url: remoteUrl + ':9999/ventanaly-sharefile/fileServer/onlyOffice/read?id=' + props.editID, //id表示文件id,后端接口用这个id来加载文件
|
|
|
|
|
|
|
+ url: remoteUrl + '/ventanaly-sharefile/fileServer/onlyOffice/read?id=' + props.editID, //id表示文件id,后端接口用这个id来加载文件
|
|
|
// url: `${window.location.origin}:9999/ventanaly-sharefile/fileServer/onlyOffice/read?id=${props.editID}`, //id表示文件id,后端接口用这个id来加载文件
|
|
// url: `${window.location.origin}:9999/ventanaly-sharefile/fileServer/onlyOffice/read?id=${props.editID}`, //id表示文件id,后端接口用这个id来加载文件
|
|
|
fileType: props.fileType == 'doc' ? 'docx' : props.fileType == 'xls' ? 'xlsx' : props.fileType == 'ppt' ? 'pptx' : props.fileType, //当文件类型为doc、xls、ppt时,对应用docx、xlsx、pptx否则会保存异常。
|
|
fileType: props.fileType == 'doc' ? 'docx' : props.fileType == 'xls' ? 'xlsx' : props.fileType == 'ppt' ? 'pptx' : props.fileType, //当文件类型为doc、xls、ppt时,对应用docx、xlsx、pptx否则会保存异常。
|
|
|
key: '',
|
|
key: '',
|
|
@@ -82,7 +83,7 @@
|
|
|
editorConfig: {
|
|
editorConfig: {
|
|
|
lang: 'zh-CN',
|
|
lang: 'zh-CN',
|
|
|
mode: 'edit', //view:只读且可复制内容,edit:可编辑
|
|
mode: 'edit', //view:只读且可复制内容,edit:可编辑
|
|
|
- callbackUrl: remoteUrl + ':9999/ventanaly-sharefile/fileServer/onlyOffice/save?id=' + props.editID, //id表示文件id,后端接口用这个id来加载文件
|
|
|
|
|
|
|
+ callbackUrl: remoteUrl + '/ventanaly-sharefile/fileServer/onlyOffice/save?id=' + props.editID, //id表示文件id,后端接口用这个id来加载文件
|
|
|
// callbackUrl: `${window.location.origin}:9999/ventanaly-sharefile/fileServer/onlyOffice/save?id=${props.editID}`, //id表示文件id,后端接口用这个id来加载文件
|
|
// callbackUrl: `${window.location.origin}:9999/ventanaly-sharefile/fileServer/onlyOffice/save?id=${props.editID}`, //id表示文件id,后端接口用这个id来加载文件
|
|
|
coEditing: {
|
|
coEditing: {
|
|
|
mode: 'fast',
|
|
mode: 'fast',
|