Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
data_management_system
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
张伯涛
data_management_system
Commits
684f01ad
Commit
684f01ad
authored
Nov 29, 2022
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
1f87f46d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
zlqk.js
ruoyi-ui/src/api/system/zlqk.js
+1
-0
index.vue
ruoyi-ui/src/views/system/zlqk/index.vue
+2
-1
No files found.
ruoyi-ui/src/api/system/zlqk.js
View file @
684f01ad
...
...
@@ -24,6 +24,7 @@ export function importExcel(data) {
return
request
({
url
:
'/system/zlqk/importData'
,
method
:
'post'
,
responseType
:
'blob'
,
data
})
}
...
...
ruoyi-ui/src/views/system/zlqk/index.vue
View file @
684f01ad
...
...
@@ -332,7 +332,8 @@ export default {
var
formData
=
new
FormData
()
// 当前为空
formData
.
append
(
'file'
,
this
.
fileList
)
importExcel
(
formData
).
then
(
res
=>
{
if
(
res
)
{
if
(
res
.
size
>
0
)
{
this
.
getList
()
const
blob
=
new
Blob
([
res
])
const
downloadElement
=
document
.
createElement
(
'a'
)
const
href
=
window
.
URL
.
createObjectURL
(
blob
)
// 创建下载的链接
...
...
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