Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mining-manager
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
Mining
mining-manager
Commits
7e3d1e8f
Commit
7e3d1e8f
authored
Feb 11, 2022
by
mxm-web-develop
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
321
parent
884c4477
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
index.ts
src/api/index.ts
+4
-0
workspace.vue
src/components/workspace.vue
+6
-0
No files found.
src/api/index.ts
View file @
7e3d1e8f
...
@@ -65,6 +65,10 @@ export const downloadTxt = async(params:GetTransListParams)=>{
...
@@ -65,6 +65,10 @@ export const downloadTxt = async(params:GetTransListParams)=>{
}).
then
(
async
res
=>
{
}).
then
(
async
res
=>
{
try
{
try
{
await
downloadjs
(
res
.
data
)
await
downloadjs
(
res
.
data
)
return
{
status
:
'success'
,
message
:
'download action is finished'
}
}
catch
(
err
){
}
catch
(
err
){
console
.
log
(
'下载出错了'
,
err
);
console
.
log
(
'下载出错了'
,
err
);
}
}
...
...
src/components/workspace.vue
View file @
7e3d1e8f
...
@@ -93,6 +93,12 @@ const download = async()=> {
...
@@ -93,6 +93,12 @@ const download = async()=> {
message
:
res
.
message
,
message
:
res
.
message
,
type
:
'error'
type
:
'error'
})
})
}
else
if
(
res
.
status
===
'success'
){
downloadModal
.
value
=
false
;
ElMessage
({
message
:
'下载已完成'
,
type
:
'success'
})
}
}
}
}
const
dateFilter
=
computed
(()
=>
{
const
dateFilter
=
computed
(()
=>
{
...
...
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