Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NLT-e-cigarette
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
张伯涛
NLT-e-cigarette
Commits
c5daf6fd
Commit
c5daf6fd
authored
Jun 10, 2022
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
000f5e34
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
badDefinition.vue
src/views/productionInfo/badDefinition.vue
+2
-1
No files found.
src/views/productionInfo/badDefinition.vue
View file @
c5daf6fd
...
@@ -568,6 +568,7 @@ export default {
...
@@ -568,6 +568,7 @@ export default {
},
},
/** 导出按钮操作 */
/** 导出按钮操作 */
handleExport
()
{
handleExport
()
{
const
nowDate
=
this
.
dateFor
(
new
Date
().
getTime
())
const
queryParams
=
{
const
queryParams
=
{
rejectCode
:
this
.
queryParams
.
rejectCode
,
rejectCode
:
this
.
queryParams
.
rejectCode
,
rejectDescription
:
this
.
queryParams
.
rejectDescription
rejectDescription
:
this
.
queryParams
.
rejectDescription
...
@@ -583,7 +584,7 @@ export default {
...
@@ -583,7 +584,7 @@ export default {
const
downloadElement
=
document
.
createElement
(
'a'
)
const
downloadElement
=
document
.
createElement
(
'a'
)
const
href
=
window
.
URL
.
createObjectURL
(
blob
)
// 创建下载的链接
const
href
=
window
.
URL
.
createObjectURL
(
blob
)
// 创建下载的链接
downloadElement
.
href
=
href
downloadElement
.
href
=
href
downloadElement
.
download
=
'不良定义信息'
+
'.xls'
// 下载后文件名
downloadElement
.
download
=
'不良定义信息'
+
nowDate
+
'.xls'
// 下载后文件名
document
.
body
.
appendChild
(
downloadElement
)
document
.
body
.
appendChild
(
downloadElement
)
downloadElement
.
click
()
// 点击下载
downloadElement
.
click
()
// 点击下载
document
.
body
.
removeChild
(
downloadElement
)
// 下载完成移除元素
document
.
body
.
removeChild
(
downloadElement
)
// 下载完成移除元素
...
...
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