Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web
Project
Project
Details
Activity
Releases
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
中汽测评-信息安全测评系统
web
Commits
dfb9548a
Commit
dfb9548a
authored
Mar 06, 2024
by
jiaxu.yan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 70396
parent
ae4db68d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
73 additions
and
5 deletions
+73
-5
index.vue
src/views/processing/retention-file/index.vue
+71
-3
index.vue
src/views/processing/unprocessed-review/index.vue
+1
-1
index.vue
src/views/task/on/index.vue
+1
-1
No files found.
src/views/processing/retention-file/index.vue
View file @
dfb9548a
...
...
@@ -9,14 +9,39 @@
>
返回
</header-button>
<header-button
class=
"back-btn"
icon=
"to-bottom"
type=
"default"
>
<header-button
class=
"back-btn"
icon=
"to-bottom"
type=
"default"
@
click=
"download()"
>
下载文件
</header-button>
</div>
<div
class=
"task"
>
<div
class=
"task-item"
>
<span
class=
"task-label"
>
任务编号:
</span>
<span
class=
"task-content"
>
{{
task
.
taskNo
}}
</span>
</div>
<div
class=
"task-item"
>
<span
class=
"task-label"
>
任务名称:
</span>
<span
class=
"task-content"
>
{{
task
.
taskName
}}
</span>
</div>
<div
class=
"task-item"
>
<span
class=
"task-label"
>
委托单位:
</span>
<span
class=
"task-content"
>
{{
task
.
taskInitiatorDept
}}
</span>
</div>
</div>
<!-- table部分 -->
<div
class=
"pdf-box"
>
<iframe
:src=
"
'http://storage.xuetangx.com/public_assets/xuetangx/PDF/PlayerAPI_v1.0.6.pdf'
"
:src=
"
fileUrl
"
frameborder=
"0"
style=
"width: 100%; height: 100%"
></iframe>
...
...
@@ -25,13 +50,56 @@
</
template
>
<
script
>
import
{
getTaskById
}
from
'@/api/task/task'
export
default
{
data
()
{
return
{}
return
{
task
:
{},
taskId
:
1
,
fileUrl
:
'http://storage.xuetangx.com/public_assets/xuetangx/PDF/PlayerAPI_v1.0.6.pdf'
}
},
async
mounted
()
{
if
(
this
.
$route
.
query
.
id
)
{
this
.
taskId
=
this
.
$route
.
query
.
id
this
.
getTaskDetail
()
}
},
methods
:
{
async
getTaskDetail
()
{
const
result
=
await
getTaskById
({
id
:
this
.
taskId
})
if
(
result
.
code
===
200
)
{
this
.
task
=
result
.
data
}
},
handleBack
()
{
this
.
$router
.
go
(
-
1
)
},
download
()
{
// 根据pdf文件地址下载
// window.location.href = this.fileUrl
const
xhr
=
new
XMLHttpRequest
()
xhr
.
open
(
'GET'
,
this
.
fileUrl
,
true
)
xhr
.
responseType
=
'blob'
xhr
.
onload
=
()
=>
{
if
(
xhr
.
status
===
200
)
{
const
blob
=
new
Blob
([
xhr
.
response
],
{
type
:
'application/pdf'
})
const
url
=
URL
.
createObjectURL
(
blob
)
const
link
=
document
.
createElement
(
'a'
)
link
.
href
=
url
link
.
download
=
'企业留档文件.pdf'
link
.
click
()
URL
.
revokeObjectURL
(
url
)
}
}
xhr
.
send
()
}
}
}
...
...
src/views/processing/unprocessed-review/index.vue
View file @
dfb9548a
...
...
@@ -430,7 +430,7 @@ export default {
handleRetentionFile
(
item
)
{
console
.
log
(
item
)
this
.
$router
.
push
({
path
:
'/processing/retention-file
'
path
:
'/processing/retention-file
?id='
+
item
.
id
})
},
/**
...
...
src/views/task/on/index.vue
View file @
dfb9548a
...
...
@@ -563,7 +563,7 @@ export default {
handleRetentionFile
(
item
)
{
console
.
log
(
item
)
this
.
$router
.
push
({
path
:
'/processing/retention-file
'
path
:
'/processing/retention-file
?id='
+
item
.
id
})
},
/**
...
...
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