Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-front
Overview
Overview
Details
Activity
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
platform
hg-front
Commits
f076ff28
Commit
f076ff28
authored
Oct 23, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
654eb208
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
34 deletions
+5
-34
edit.vue
pages/document/edit.vue
+5
-34
No files found.
pages/document/edit.vue
View file @
f076ff28
...
...
@@ -176,41 +176,12 @@
onNavToPreview
()
{
addPreview
(
this
.
orderInfo
).
then
(
res
=>
{
if
(
res
.
data
.
__sys__
.
status
===
1
)
{
let
urlStr
=
`
${
this
.
assetsPath
}
/hggp/file/download/preview/
${
this
.
orderInfo
.
docId
}
?fullfilename=
${
this
.
orderInfo
.
docName
}
`
;
console
.
log
(
Base64
.
encode
(
urlStr
))
let
fullUrl
=
`
${
this
.
hostUrl
}
/preview/onlinePreview?url=
${
encodeURIComponent
(
Base64
.
encode
(
urlStr
))}
`
;
console
.
log
(
urlStr
)
console
.
log
(
fullUrl
)
window
.
open
(
fullUrl
)
// if(this.islmage(this.orderInfo.docName)){
// this.previewStatus = true;
// if(['docx','pdf','txt','xlsx','xls','doc'].includes(this.orderInfo.fileSuffix)){
// let urlStr=`${this.hostUrl}/?docId=${this.orderInfo.docId}&fileSuffix=${this.orderInfo.fileSuffix}`
// window.open(urlStr)
// }
// }else{
// let urlStr = this.assetsPath + '/hggp/file/download/' + this.orderInfo.docId;
// uni.downloadFile({
// url: urlStr,
// success: (res)=> {
// console.log(res,999999)
// let filePath = res.tempFilePath;
// uni.openDocument({
// filePath: filePath,
// showMenu: true,
// success: (res) =>{
// console.log('打开文档成功');
// }
// });
// }
// });
// }
if
(
res
.
data
.
url
){
let
fullUrl
=
`
${
this
.
hostUrl
}
/preview/onlinePreview?url=
${
encodeURIComponent
(
Base64
.
encode
(
res
.
data
.
url
))}
`
;
window
.
open
(
fullUrl
)
}
this
.
onGetList
();
}
this
.
onGetList
();
})
},
onDownLoad
()
{
...
...
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