Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TF-MOM-WEB
Project
Project
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
TFMOM
TF-MOM-WEB
Commits
2ceb6b87
Commit
2ceb6b87
authored
Nov 08, 2023
by
“lixuyan”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查看pdf修改
parent
f065cc9a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
http.js
applications/dee-mes/src/utils/http.js
+5
-2
Table2.vue
...on/components/TechnicalRequirements/components/Table2.vue
+5
-1
No files found.
applications/dee-mes/src/utils/http.js
View file @
2ceb6b87
...
@@ -16,8 +16,11 @@ function patch(url, params) {
...
@@ -16,8 +16,11 @@ function patch(url, params) {
function
del
(
url
,
params
)
{
function
del
(
url
,
params
)
{
return
http
.
del
(
url
,
params
)
return
http
.
del
(
url
,
params
)
}
}
function
downloadFile
(
url
,
type
)
{
// function downloadFile(url, type) {
return
http
.
downloadFile
(
url
,
type
)
// return http.downloadFile(url, type)
// }
function
downloadFile
(
url
,
type
,
params
,
userAction
)
{
return
http
.
downloadFile
(
url
,
type
,
params
,
userAction
)
}
}
function
downloadZip
(
url
,
type
)
{
function
downloadZip
(
url
,
type
)
{
return
http
.
downloadZip
(
url
,
type
)
return
http
.
downloadZip
(
url
,
type
)
...
...
applications/dee-mes/src/views/taskExecution/components/TechnicalRequirements/components/Table2.vue
View file @
2ceb6b87
...
@@ -132,7 +132,11 @@ export default {
...
@@ -132,7 +132,11 @@ export default {
})
})
}
}
const
user
=
'wcadmin'
const
user
=
'wcadmin'
downloadFile
(
`/gace/mbom/downloadGACEAppData?gaceUrl=
${
row
.
docsUrl
+
user
}
&docName==
${
row
.
docName
}
`
,
'get'
).
then
((
res
)
=>
{
const
params
=
{
gaceUrl
:
row
.
docsUrl
+
user
,
docName
:
row
.
docName
}
downloadFile
(
`/gace/mbom/downloadGACEAppData`
,
'get'
,
params
).
then
((
res
)
=>
{
const
blob
=
new
Blob
([
res
.
data
],
{
const
blob
=
new
Blob
([
res
.
data
],
{
type
:
'application/pdf'
type
:
'application/pdf'
})
})
...
...
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