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
1ff3a0d0
Commit
1ff3a0d0
authored
Oct 26, 2023
by
“lixuyan”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
甘特图上AO号pdf跳转
parent
62ef049c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
3 deletions
+41
-3
index.vue
...ee-mes/src/privateComponents/components/ViewPdf/index.vue
+1
-0
gantt.vue
...s/assemblyPlanManagement/stationPlanMaintenance/gantt.vue
+40
-3
No files found.
applications/dee-mes/src/privateComponents/components/ViewPdf/index.vue
View file @
1ff3a0d0
...
@@ -48,6 +48,7 @@ export default {
...
@@ -48,6 +48,7 @@ export default {
}).
catch
((
error
)
=>
{
}).
catch
((
error
)
=>
{
console
.
log
(
error
)
console
.
log
(
error
)
notify
.
close
()
notify
.
close
()
this
.
seePdfShow
=
false
})
})
}
else
{
}
else
{
this
.
$message
({
this
.
$message
({
...
...
applications/dee-mes/src/views/assemblyPlanManagement/stationPlanMaintenance/gantt.vue
View file @
1ff3a0d0
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<
script
>
<
script
>
import
CsvExportor
from
'csv-exportor'
import
CsvExportor
from
'csv-exportor'
import
{
post
}
from
'@/utils/http'
import
{
post
,
downloadFile
}
from
'@/utils/http'
export
default
{
export
default
{
name
:
'TfMomWebGantt'
,
name
:
'TfMomWebGantt'
,
props
:
{
props
:
{
...
@@ -286,7 +286,7 @@ export default {
...
@@ -286,7 +286,7 @@ export default {
template
:
function
(
obj
)
{
template
:
function
(
obj
)
{
if
(
obj
.
$level
===
1
)
{
if
(
obj
.
$level
===
1
)
{
return
(
return
(
"<div class='seepdf'>"
+
"<div class='seepdf
is-active-text
'>"
+
obj
.
text
+
obj
.
text
+
'</div>'
'</div>'
)
)
...
@@ -596,11 +596,48 @@ export default {
...
@@ -596,11 +596,48 @@ export default {
.
finally
(()
=>
{
.
finally
(()
=>
{
that
.
getData
()
that
.
getData
()
})
})
},
seePdf
(
id
)
{
if
(
id
)
{
if
(
this
.
seePdfShow
)
{
return
}
const
notify
=
this
.
$notify
({
title
:
'提示'
,
message
:
'PDF正在加载中...,请稍后!'
,
duration
:
0
})
this
.
seePdfShow
=
true
downloadFile
(
`/ExtProcessPlan/createPDF?id=
${
id
}
`
,
'get'
).
then
(
res
=>
{
const
blob
=
new
Blob
([
res
.
data
],
{
type
:
'application/pdf'
})
if
(
window
.
navigator
.
msSaveOrOpenBlob
)
{
navigator
.
msSaveBlob
(
blob
)
}
else
{
var
openUrl
=
URL
.
createObjectURL
(
blob
)
this
.
seePdfShow
=
false
notify
.
close
()
window
.
open
(
openUrl
,
'_blank'
)
}
}).
catch
((
error
)
=>
{
console
.
log
(
error
)
notify
.
close
()
this
.
seePdfShow
=
false
})
}
else
{
this
.
$message
({
message
:
'该AO没有PDF'
,
type
:
'warning'
})
}
}
}
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.seepdf
{
cursor
:
pointer
;
}
</
style
>
</
style
>
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