Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-cr20g
Project
Project
Details
Activity
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
Administrator
dsk-cr20g
Commits
232852a7
Commit
232852a7
authored
Sep 15, 2023
by
danfuman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
bb3fcb8d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
10 deletions
+34
-10
performance.vue
...i/src/views/detail/groupAccount/component/performance.vue
+15
-9
zhaobiao.vue
...e-ui/src/views/detail/groupAccount/component/zhaobiao.vue
+19
-1
No files found.
dsk-operate-ui/src/views/detail/groupAccount/component/performance.vue
View file @
232852a7
...
...
@@ -271,21 +271,27 @@
this
.
dataEXCEL
.
pageSize
=
this
.
tableDataTotal
;
}
delete
this
.
dataEXCEL
.
pageNum
//exportWinBid
exportWinBid
(
this
.
dataEXCEL
).
then
(
res
=>
{
console
.
log
(
res
.
data
)
if
(
res
.
code
===
200
){
this
.
downloadFile
(
res
.
data
.
originalName
,
res
.
data
.
url
)
this
.
downloadFile
(
res
.
data
.
url
,
res
.
data
.
originalName
)
}
})
// this.$download.exportByPost('/combine/info/export/win/bid',this.dataEXCEL,'集团中标.xlsx');
},
downloadFile
(
fileName
,
fileUrl
)
{
const
link
=
document
.
createElement
(
'a'
);
link
.
href
=
fileUrl
;
link
.
setAttribute
(
'download'
,
fileName
);
link
.
click
();
},
downloadFile
(
url
,
fileName
)
{
const
x
=
new
XMLHttpRequest
()
x
.
open
(
"GET"
,
url
,
true
)
x
.
responseType
=
'blob'
x
.
onload
=
function
(
e
)
{
const
url
=
window
.
URL
.
createObjectURL
(
x
.
response
)
const
a
=
document
.
createElement
(
'a'
)
a
.
href
=
url
a
.
download
=
fileName
a
.
click
()
a
.
remove
()
}
x
.
send
()
}
}
}
</
script
>
...
...
dsk-operate-ui/src/views/detail/groupAccount/component/zhaobiao.vue
View file @
232852a7
...
...
@@ -363,7 +363,25 @@
this
.
dataEXCEL
.
pageSize
=
this
.
tableDataTotal
;
}
delete
this
.
dataEXCEL
.
pageNum
this
.
$download
.
exportByPost
(
'/combine/info/export/bid'
,
this
.
dataEXCEL
,
'集团招标.xlsx'
);
exportBid
(
this
.
dataEXCEL
).
then
(
res
=>
{
if
(
res
.
code
===
200
){
this
.
downloadFile
(
res
.
data
.
url
,
res
.
data
.
originalName
)
}
})
},
downloadFile
(
url
,
fileName
)
{
const
x
=
new
XMLHttpRequest
()
x
.
open
(
"GET"
,
url
,
true
)
x
.
responseType
=
'blob'
x
.
onload
=
function
(
e
)
{
const
url
=
window
.
URL
.
createObjectURL
(
x
.
response
)
const
a
=
document
.
createElement
(
'a'
)
a
.
href
=
url
a
.
download
=
fileName
a
.
click
()
a
.
remove
()
}
x
.
send
()
},
clickFocus
(
e
){
document
.
getElementById
(
e
).
classList
.
toggle
(
'span-ba'
)
...
...
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