Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
V
V3-TailingPond
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
xinzhedeai
V3-TailingPond
Commits
54e7c590
Commit
54e7c590
authored
Dec 19, 2024
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
西沟 导出日报表
parent
621a3923
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
0 deletions
+52
-0
httpApi.js
src/assets/js/httpApi.js
+2
-0
index.vue
src/views/dataMonitor/bmwy/history/index.vue
+50
-0
No files found.
src/assets/js/httpApi.js
View file @
54e7c590
...
...
@@ -452,6 +452,8 @@ var reqApis = function () {
rightBtn
:
[
{
type
:
'
warning
'
,
icon
:
'
el-icon-document
'
,
name
:
'
导出日报表
'
,
'
callback
'
:
function
(){
this
.
exportFile
()
return
var
loading
=
this
.
$loading
({
lock
:
true
,
text
:
'
请稍后.....
'
,
...
...
src/views/dataMonitor/bmwy/history/index.vue
View file @
54e7c590
...
...
@@ -59,6 +59,23 @@
:cancel=
"cancelForm"
:watchKeys=
"['paperfilename']"
/>
<el-dialog
:visible.sync=
"dialogVisible"
width=
"300px"
title=
"导出日报表"
@
close=
"resetDate"
>
<el-date-picker
v-model=
"selectedDate"
type=
"date"
placeholder=
"选择日期"
format=
"yyyy-MM-dd"
value-format=
"yyyy-MM-dd"
style=
"width: 100%;"
/>
<div
slot=
"footer"
>
<el-button
@
click=
"dialogVisible = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"downloadFileDay"
>
确 定
</el-button>
</div>
</el-dialog>
</div>
</
template
>
...
...
@@ -80,6 +97,10 @@ export default {
},
data
()
{
return
{
// 导入日报表
dialogVisible
:
false
,
selectedDate
:
null
,
refreshInterval
:
null
,
Dict
:
{
selectList
:
[]
},
table
:
{
...
...
@@ -135,6 +156,35 @@ export default {
this
.
clearRefreshInterval
();
// 清除定时器
},
methods
:
{
resetDate
()
{
this
.
selectedDate
=
null
;
},
downloadFileDay
()
{
if
(
!
this
.
selectedDate
)
{
this
.
$message
.
error
(
'
请先选择日期
'
);
return
;
}
var
loading
=
this
.
$loading
({
lock
:
true
,
text
:
'
请稍后.....
'
,
spinner
:
'
el-icon-loading
'
,
background
:
'
rgba(0, 0, 0, 0.7)
'
});
this
.
pageApi
.
download1
({
date
:
this
.
selectedDate
}).
then
((
res
)
=>
{
loading
.
close
();
var
name
=
this
.
selectedDate
+
'
GNSS日报表
'
;
Tools
.
downloadFile
(
res
,
name
,
'
docx
'
)
this
.
dialogVisible
=
false
;
// 关闭弹窗
})
},
exportFile
(){
this
.
dialogVisible
=
true
this
.
selectedDate
=
null
},
// 定时刷新开始
startRefreshInterval
()
{
this
.
refreshInterval
=
setInterval
(()
=>
{
...
...
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