Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZiBoYingJI
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
Kimber
ZiBoYingJI
Commits
b2958976
Commit
b2958976
authored
Sep 30, 2024
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
温度、风速、降雨、边坡监测 数据列表 导出功能添加
parent
06ed9355
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
107 additions
and
0 deletions
+107
-0
data.vue
src/views/newResource/displace/data.vue
+26
-0
data.vue
src/views/newResource/temperature/data.vue
+27
-0
data.vue
src/views/newResource/windspeed/data.vue
+27
-0
data.vue
src/views/newWater/precipitation/data.vue
+27
-0
No files found.
src/views/newResource/displace/data.vue
View file @
b2958976
...
...
@@ -28,6 +28,9 @@
@
click=
"clearSearch"
>
重置
</el-button
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"按当前查询条件导出"
placement=
"top"
>
<el-button
:loading=
"exporting"
class=
"filter-item"
size=
"mini"
type=
"info"
plain
icon=
"el-icon-download"
@
click=
"exportSubmit"
>
导出
</el-button>
</el-tooltip>
</div>
</div>
...
...
@@ -89,6 +92,8 @@ import API from "@/api/newResource/data.js";
import
{
getToken
}
from
"
@/utils/auth
"
;
import
{
mapGetters
}
from
"
vuex
"
;
import
DateRangePicker
from
'
@/components/DateRangePicker
'
import
{
downloadFile
}
from
'
@/utils
'
import
request
from
'
@/utils/request
'
export
default
{
name
:
"
newResourceDisplaceMachine
"
,
// 本页面名
...
...
@@ -104,6 +109,7 @@ export default {
size
:
10
,
// 当前页码
page
:
1
,
exporting
:
false
};
},
components
:
{
DateRangePicker
},
...
...
@@ -111,6 +117,26 @@ export default {
this
.
search
()
},
methods
:
{
exportSubmit
()
{
if
(
this
.
exporting
){
return
}
this
.
exporting
=
true
request
({
url
:
'
data/mp/download
'
,
method
:
'
get
'
,
params
:
{
time
:
this
.
datarealtime
&&
this
.
datarealtime
.
join
(
'
,
'
)
||
''
,
sensorname
:
this
.
equipname
,
},
responseType
:
'
blob
'
}).
then
(
response
=>
{
downloadFile
(
response
,
'
边坡监测
'
,
'
xlsx
'
)
this
.
exporting
=
false
}).
catch
(()
=>
{
this
.
exporting
=
false
})
},
getData
()
{
this
.
loading
=
true
;
API
.
getDataList
({
...
...
src/views/newResource/temperature/data.vue
View file @
b2958976
...
...
@@ -28,6 +28,9 @@
@
click=
"clearSearch"
>
重置
</el-button
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"按当前查询条件导出"
placement=
"top"
>
<el-button
:loading=
"exporting"
class=
"filter-item"
size=
"mini"
type=
"info"
plain
icon=
"el-icon-download"
@
click=
"exportSubmit"
>
导出
</el-button>
</el-tooltip>
</div>
</div>
...
...
@@ -75,6 +78,8 @@
<
script
>
import
API
from
"
@/api/newResource/data.js
"
;
import
DateRangePicker
from
'
@/components/DateRangePicker
'
import
{
downloadFile
}
from
'
@/utils
'
import
request
from
'
@/utils/request
'
export
default
{
name
:
"
newResourceDisplaceMachine
"
,
// 本页面名
...
...
@@ -90,6 +95,7 @@ export default {
size
:
10
,
// 当前页码
page
:
1
,
exporting
:
false
};
},
components
:
{
DateRangePicker
},
...
...
@@ -97,6 +103,27 @@ export default {
this
.
search
()
},
methods
:
{
exportSubmit
()
{
if
(
this
.
exporting
){
return
}
this
.
exporting
=
true
request
({
url
:
'
data/sz/download/wen
'
,
method
:
'
get
'
,
params
:
{
time
:
this
.
datarealtime
&&
this
.
datarealtime
.
join
(
'
,
'
)
||
''
,
sensorname
:
this
.
equipname
,
different
:
'
温度
'
},
responseType
:
'
blob
'
}).
then
(
response
=>
{
downloadFile
(
response
,
'
温度监测
'
,
'
xlsx
'
)
this
.
exporting
=
false
}).
catch
(()
=>
{
this
.
exporting
=
false
})
},
getData
()
{
this
.
loading
=
true
;
API
.
getDataList4windSpeed
({
...
...
src/views/newResource/windspeed/data.vue
View file @
b2958976
...
...
@@ -28,6 +28,9 @@
@
click=
"clearSearch"
>
重置
</el-button
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"按当前查询条件导出"
placement=
"top"
>
<el-button
:loading=
"exporting"
class=
"filter-item"
size=
"mini"
type=
"info"
plain
icon=
"el-icon-download"
@
click=
"exportSubmit"
>
导出
</el-button>
</el-tooltip>
</div>
</div>
...
...
@@ -75,6 +78,8 @@
<
script
>
import
API
from
"
@/api/newResource/data.js
"
;
import
DateRangePicker
from
'
@/components/DateRangePicker
'
import
{
downloadFile
}
from
'
@/utils
'
import
request
from
'
@/utils/request
'
export
default
{
name
:
"
newResourceDisplaceMachine
"
,
// 本页面名
...
...
@@ -90,6 +95,7 @@ export default {
size
:
10
,
// 当前页码
page
:
1
,
exporting
:
false
};
},
components
:
{
DateRangePicker
},
...
...
@@ -97,6 +103,27 @@ export default {
this
.
search
()
},
methods
:
{
exportSubmit
()
{
if
(
this
.
exporting
){
return
}
this
.
exporting
=
true
request
({
url
:
'
data/sz/download/feng
'
,
method
:
'
get
'
,
params
:
{
time
:
this
.
datarealtime
&&
this
.
datarealtime
.
join
(
'
,
'
)
||
''
,
sensorname
:
this
.
equipname
,
different
:
'
风速
'
},
responseType
:
'
blob
'
}).
then
(
response
=>
{
downloadFile
(
response
,
'
风速监测
'
,
'
xlsx
'
)
this
.
exporting
=
false
}).
catch
(()
=>
{
this
.
exporting
=
false
})
},
getData
()
{
this
.
loading
=
true
;
API
.
getDataList4windSpeed
({
...
...
src/views/newWater/precipitation/data.vue
View file @
b2958976
...
...
@@ -28,6 +28,9 @@
@
click=
"clearSearch"
>
重置
</el-button
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"按当前查询条件导出"
placement=
"top"
>
<el-button
:loading=
"exporting"
class=
"filter-item"
size=
"mini"
type=
"info"
plain
icon=
"el-icon-download"
@
click=
"exportSubmit"
>
导出
</el-button>
</el-tooltip>
</div>
</div>
...
...
@@ -81,6 +84,8 @@
<
script
>
import
API
from
"
@/api/newResource/data.js
"
;
import
DateRangePicker
from
'
@/components/DateRangePicker
'
import
{
downloadFile
}
from
'
@/utils
'
import
request
from
'
@/utils/request
'
export
default
{
name
:
"
waterPrecipitation
"
,
// 本页面名
...
...
@@ -96,6 +101,7 @@ export default {
size
:
10
,
// 当前页码
page
:
1
,
exporting
:
false
};
},
components
:
{
DateRangePicker
},
...
...
@@ -103,6 +109,27 @@ export default {
this
.
search
()
},
methods
:
{
exportSubmit
()
{
if
(
this
.
exporting
){
return
}
this
.
exporting
=
true
request
({
url
:
'
data/rg/download
'
,
method
:
'
get
'
,
params
:
{
time
:
this
.
datarealtime
&&
this
.
datarealtime
.
join
(
'
,
'
)
||
''
,
sensorname
:
this
.
equipname
,
different
:
'
温度
'
},
responseType
:
'
blob
'
}).
then
(
response
=>
{
downloadFile
(
response
,
'
降水监测
'
,
'
xlsx
'
)
this
.
exporting
=
false
}).
catch
(()
=>
{
this
.
exporting
=
false
})
},
getData
()
{
this
.
loading
=
true
;
API
.
getDataList4waterPrecipitation
({
...
...
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