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 @@
...
@@ -41,8 +41,7 @@
</template>
</template>
<
script
>
<
script
>
// import { downloadPdfHandle } from '@/api/inventory.js'
import
{
downloadFile
}
from
'@/utils/http'
import
axios
from
'axios'
export
default
{
export
default
{
components
:
{},
components
:
{},
...
@@ -132,37 +131,16 @@ export default {
...
@@ -132,37 +131,16 @@ export default {
type
:
'error'
type
:
'error'
})
})
}
}
// eslint-disable-next-line no-undef
const
baseURl
=
`
${
VUE_APP_BASE_API
||
process
.
env
.
VUE_APP_BASE_API
}
`
const
user
=
'wcadmin'
const
user
=
'wcadmin'
console
.
log
(
row
.
docsUrl
+
user
)
downloadFile
(
`/gace/mbom/downloadGACEAppData?gaceUrl=
${
row
.
docsUrl
+
user
}
&docName==
${
row
.
docName
}
`
,
'get'
).
then
((
res
)
=>
{
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
)
=>
{
const
blob
=
new
Blob
([
res
.
data
],
{
const
blob
=
new
Blob
([
res
.
data
],
{
type
:
'application/pdf'
type
:
'application/pdf'
})
})
if
(
window
.
navigator
.
msSaveOrOpenBlob
)
{
if
(
window
.
navigator
.
msSaveOrOpenBlob
)
{
navigator
.
msSaveBlob
(
blob
)
navigator
.
msSaveBlob
(
blob
)
}
else
{
}
else
{
// const elink = document.createElement('a')
// elink.download = 'pdf.pdf'
// elink.style.display = 'none'
// elink.href = URL.createObjectURL(blob)
var
openUrl
=
URL
.
createObjectURL
(
blob
)
var
openUrl
=
URL
.
createObjectURL
(
blob
)
window
.
open
(
openUrl
)
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 {
...
@@ -868,10 +868,13 @@ export default {
if
(
curRow
)
{
if
(
curRow
)
{
that
.
selectOptions
(
curRow
.
id
)
that
.
selectOptions
(
curRow
.
id
)
}
else
{
}
else
{
!
that
.
procedureId
&&
if
(
that
.
procedureId
)
{
that
.
selectOptions
(
that
.
procedureId
)
}
else
{
that
.
selectOptions
(
that
.
workingProcedure
[
0
].
id
)
that
.
selectOptions
(
that
.
workingProcedure
[
0
].
id
)
}
}
}
}
}
})
})
.
catch
((
err
)
=>
console
.
error
(
err
))
.
catch
((
err
)
=>
console
.
error
(
err
))
.
finally
(()
=>
{
.
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