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
910f8690
Commit
910f8690
authored
Nov 08, 2023
by
“lixuyan”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改查看pdf
parent
96934f31
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
25 deletions
+6
-25
Table2.vue
...on/components/TechnicalRequirements/components/Table2.vue
+2
-24
index.vue
applications/dee-mes/src/views/taskExecution/index.vue
+4
-1
No files found.
applications/dee-mes/src/views/taskExecution/components/TechnicalRequirements/components/Table2.vue
View file @
910f8690
...
...
@@ -41,8 +41,7 @@
</template>
<
script
>
// import { downloadPdfHandle } from '@/api/inventory.js'
import
axios
from
'axios'
import
{
downloadFile
}
from
'@/utils/http'
export
default
{
components
:
{},
...
...
@@ -132,37 +131,16 @@ export default {
type
:
'error'
})
}
// eslint-disable-next-line no-undef
const
baseURl
=
`
${
VUE_APP_BASE_API
||
process
.
env
.
VUE_APP_BASE_API
}
`
const
user
=
'wcadmin'
console
.
log
(
row
.
docsUrl
+
user
)
axios
({
method
:
'get'
,
url
:
'/gace/mbom/downloadGACEAppData'
,
params
:
{
gaceUrl
:
row
.
docsUrl
+
user
,
docName
:
row
.
docName
},
baseURL
:
baseURl
,
headers
:
{
token
:
`
${
localStorage
.
getItem
(
'token'
)}
`
,
'equipment_id'
:
`
${
localStorage
.
getItem
(
'uid'
)}
`
},
responseType
:
'arraybuffer'
}).
then
((
res
)
=>
{
downloadFile
(
`/gace/mbom/downloadGACEAppData?gaceUrl=
${
row
.
docsUrl
+
user
}
&docName==
${
row
.
docName
}
`
,
'get'
).
then
((
res
)
=>
{
const
blob
=
new
Blob
([
res
.
data
],
{
type
:
'application/pdf'
})
if
(
window
.
navigator
.
msSaveOrOpenBlob
)
{
navigator
.
msSaveBlob
(
blob
)
}
else
{
// const elink = document.createElement('a')
// elink.download = 'pdf.pdf'
// elink.style.display = 'none'
// elink.href = URL.createObjectURL(blob)
var
openUrl
=
URL
.
createObjectURL
(
blob
)
window
.
open
(
openUrl
)
// obj.document.title = '驱蚊器为切为'
// document.body.appendChild(elink)
// elink.click()
// document.body.removeChild(elink)
}
})
}
...
...
applications/dee-mes/src/views/taskExecution/index.vue
View file @
910f8690
...
...
@@ -868,10 +868,13 @@ export default {
if
(
curRow
)
{
that
.
selectOptions
(
curRow
.
id
)
}
else
{
!
that
.
procedureId
&&
if
(
that
.
procedureId
)
{
that
.
selectOptions
(
that
.
procedureId
)
}
else
{
that
.
selectOptions
(
that
.
workingProcedure
[
0
].
id
)
}
}
}
})
.
catch
((
err
)
=>
console
.
error
(
err
))
.
finally
(()
=>
{
...
...
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