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
1ce23e25
Commit
1ce23e25
authored
Mar 18, 2024
by
jiaxu.yan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 70609 70669
parent
18023e6a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
84 deletions
+24
-84
standard.js
src/store/modules/standard.js
+1
-1
index.vue
src/views/processing/archivedTask/index.vue
+5
-44
index.vue
src/views/processing/processed-review/index.vue
+9
-17
index.vue
src/views/processing/retention-file/index.vue
+3
-3
index.vue
src/views/task/on/index.vue
+6
-19
No files found.
src/store/modules/standard.js
View file @
1ce23e25
...
...
@@ -21,7 +21,7 @@ const standard = {
},
setStandardList
({
commit
},
name
)
{
getStandardList
({
name
:
name
?
name
:
''
,
keyword
:
name
?
name
:
''
,
pageNum
:
1
,
pageSize
:
9999
}).
then
(
res
=>
{
...
...
src/views/processing/archivedTask/index.vue
View file @
1ce23e25
...
...
@@ -185,14 +185,16 @@
type=
"primary"
plain
size=
"mini"
@
click=
"
downloadPdf(item.id
)"
>
检
查
报告
</el-button
@
click=
"
goNext('/processing/report?id=' + item.id + '&type=0'
)"
>
检
验
报告
</el-button
>
<el-button
type=
"primary"
plain
size=
"mini"
@
click=
"goNext('/processing/retention-file?id=' + item.id)"
@
click=
"
goNext('/processing/retention-file?id=' + item.id + '&type=1')
"
>
企业留档文件
</el-button
>
<el-button
...
...
@@ -271,47 +273,6 @@ export default {
this
.
$store
.
dispatch
(
'standard/setStandardList'
)
},
methods
:
{
/**
* 检验报告
*/
downloadPdf
(
id
)
{
pdfDownload
({
taskId
:
id
,
type
:
0
}).
then
(
res
=>
{
const
fileUrl
=
process
.
env
.
VUE_APP_IMAGE_API
+
'/vehicle-quality-review-oss/'
+
res
.
data
this
.
download
(
fileUrl
)
})
},
/**
* 下载pdf
*/
download
(
fileUrl
)
{
// 根据pdf文件地址下载
// window.location.href = this.fileUrl
const
xhr
=
new
XMLHttpRequest
()
xhr
.
open
(
'GET'
,
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
()
},
/* 跳转到问卷详情*/
goNext
(
url
)
{
this
.
$router
.
push
({
path
:
url
})
...
...
src/views/processing/processed-review/index.vue
View file @
1ce23e25
...
...
@@ -160,7 +160,8 @@
@
click=
"
goNext(
'/processing/carReview/source-record?id=' +
item.carReviewTaskId
item.carReviewTaskId +
'&type=1'
)
"
>
车型审查原始记录
</el-button
...
...
@@ -183,14 +184,16 @@
type=
"primary"
plain
size=
"mini"
@
click=
"
downloadPdf(item.id
)"
>
检
查
报告
</el-button
@
click=
"
goNext('/processing/report?id=' + item.id + '&type=0'
)"
>
检
验
报告
</el-button
>
<el-button
type=
"primary"
plain
size=
"mini"
@
click=
"goNext('/processing/retention-file?id=' + item.id)"
@
click=
"
goNext('/processing/retention-file?id=' + item.id + '&type=1')
"
>
企业留档文件
</el-button
>
<el-button
...
...
@@ -241,18 +244,7 @@ export default {
/**
* 检验报告
*/
downloadPdf
(
id
)
{
pdfDownload
({
taskId
:
id
,
type
:
0
}).
then
(
res
=>
{
const
fileUrl
=
process
.
env
.
VUE_APP_IMAGE_API
+
'/vehicle-quality-review-oss/'
+
res
.
data
this
.
download
(
fileUrl
)
})
},
downloadPdf
(
id
)
{},
/**
* 下载pdf
*/
...
...
@@ -270,7 +262,7 @@ export default {
const
link
=
document
.
createElement
(
'a'
)
link
.
href
=
url
link
.
download
=
'检
查
报告.pdf'
link
.
download
=
'检
验
报告.pdf'
link
.
click
()
URL
.
revokeObjectURL
(
url
)
...
...
src/views/processing/retention-file/index.vue
View file @
1ce23e25
...
...
@@ -72,7 +72,7 @@ export default {
pdfDownload
({
taskId
:
this
.
$route
.
query
.
id
,
type
:
1
type
:
this
.
$route
.
query
.
type
}).
then
(
res
=>
{
this
.
fileUrl
=
process
.
env
.
VUE_APP_IMAGE_API
+
...
...
@@ -109,9 +109,9 @@ export default {
const
link
=
document
.
createElement
(
'a'
)
link
.
href
=
url
link
.
download
=
'企业留档文件.pdf'
link
.
download
=
this
.
$route
.
query
.
type
===
1
?
'企业留档文件.pdf'
:
'检验报告.pdf'
link
.
click
()
URL
.
revokeObjectURL
(
url
)
}
}
...
...
src/views/task/on/index.vue
View file @
1ce23e25
...
...
@@ -448,14 +448,16 @@
type=
"primary"
plain
size=
"mini"
@
click=
"
downloadPdf(item.id
)"
>
检
查
报告
</el-button
@
click=
"
goNext('/processing/report?id=' + item.id + '&type=0'
)"
>
检
验
报告
</el-button
>
<el-button
type=
"primary"
plain
size=
"mini"
@
click=
"goNext('/processing/retention-file?id=' + item.id)"
@
click=
"
goNext('/processing/retention-file?id=' + item.id + '&type=1')
"
>
企业留档文件
</el-button
>
<el-button
...
...
@@ -541,21 +543,6 @@ export default {
this
.
$store
.
dispatch
(
'standard/setStandardList'
)
},
methods
:
{
/**
* 检验报告
*/
downloadPdf
(
id
)
{
pdfDownload
({
taskId
:
id
,
type
:
0
}).
then
(
res
=>
{
const
fileUrl
=
process
.
env
.
VUE_APP_IMAGE_API
+
'/vehicle-quality-review-oss/'
+
res
.
data
this
.
download
(
fileUrl
)
})
},
/**
* 下载pdf
*/
...
...
@@ -573,7 +560,7 @@ export default {
const
link
=
document
.
createElement
(
'a'
)
link
.
href
=
url
link
.
download
=
'检
查
报告.pdf'
link
.
download
=
'检
验
报告.pdf'
link
.
click
()
URL
.
revokeObjectURL
(
url
)
...
...
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