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
a100d81e
Commit
a100d81e
authored
Sep 06, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文件预览优化
parent
cf0e9287
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
edit.vue
pages/document/edit.vue
+6
-1
vue.config.js
vue.config.js
+3
-3
No files found.
pages/document/edit.vue
View file @
a100d81e
...
...
@@ -162,7 +162,7 @@
},
islmage
(
filename
)
{
const
extension
=
filename
.
split
(
'.'
).
pop
().
toLowerCase
();
const
imageExtensions
=
[
'jpg'
,
'jpeg'
,
'png'
,
'gif'
,
'bmp'
,
'webp'
,
'svg'
,
'mp4'
,
'3gp'
,
'avi'
]
const
imageExtensions
=
[
'jpg'
,
'jpeg'
,
'png'
,
'gif'
,
'bmp'
,
'webp'
,
'svg'
,
'mp4'
,
'3gp'
,
'avi'
,
'docx'
,
'pdf'
]
return
imageExtensions
.
includes
(
extension
);
},
onNavToPreview
()
{
...
...
@@ -170,6 +170,11 @@
if
(
res
.
data
.
__sys__
.
status
===
1
)
{
if
(
this
.
islmage
(
this
.
orderInfo
.
docName
)){
this
.
previewStatus
=
true
;
if
([
'docx'
,
'pdf'
].
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
({
...
...
vue.config.js
View file @
a100d81e
...
...
@@ -5,9 +5,9 @@ module.exports = {
open
:
true
,
proxy
:
{
'/prod-api'
:
{
// target: `http://10.24.4.81:8099/hggp
`,
target
:
`http://129.211.46.84:8085/hggp`
,
//
target: `https://www.eis-paas.com/hggp`,
// target: `http://10.24.4.66:8082/hggp_war_exploded
`,
//
target: `http://129.211.46.84:8085/hggp`,
target
:
`https://www.eis-paas.com/hggp`
,
changeOrigin
:
true
,
pathRewrite
:
{
'/prod-api'
:
''
...
...
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