|
|
@@ -1,10 +1,25 @@
|
|
|
import request from '@/utils/request'
|
|
|
|
|
|
// 获取3个数据
|
|
|
-export function getThreeData() {
|
|
|
+export function getThreeData(forData) {
|
|
|
+ let data = new FormData()
|
|
|
+ if (typeof forData.name_card != 'undefined') {
|
|
|
+ data.append('name_card', forData.name_card)
|
|
|
+ }
|
|
|
+ if (typeof forData.start_time != 'undefined') {
|
|
|
+ data.append('start_time', forData.start_time)
|
|
|
+ }
|
|
|
+ if (typeof forData.end_time != 'undefined') {
|
|
|
+ data.append('end_time', forData.end_time)
|
|
|
+ }
|
|
|
+ if (typeof forData.state != 'undefined') {
|
|
|
+ data.append('state', forData.state)
|
|
|
+ }
|
|
|
+ // console.log(forData);
|
|
|
return request({
|
|
|
url: '/airManage/rechargequeryTongji.action',
|
|
|
- method: 'post'
|
|
|
+ method: 'post',
|
|
|
+ data
|
|
|
})
|
|
|
}
|
|
|
|
|
|
@@ -34,9 +49,24 @@ export function getTableData(forData) {
|
|
|
|
|
|
|
|
|
// 下载
|
|
|
-export function downloadExcel() {
|
|
|
+export function downloadExcel(forData) {
|
|
|
+ let data = new FormData()
|
|
|
+ if (typeof forData.name_card != 'undefined') {
|
|
|
+ data.append('name_card', forData.name_card)
|
|
|
+ }
|
|
|
+ if (typeof forData.start_time != 'undefined') {
|
|
|
+ data.append('start_time', forData.start_time)
|
|
|
+ }
|
|
|
+ if (typeof forData.end_time != 'undefined') {
|
|
|
+ data.append('end_time', forData.end_time)
|
|
|
+ }
|
|
|
+ if (typeof forData.state != 'undefined') {
|
|
|
+ data.append('state', forData.state)
|
|
|
+ }
|
|
|
+ // console.log(forData);
|
|
|
return request({
|
|
|
url: '/airManage/rechargetoExcel.action',
|
|
|
- method: 'post'
|
|
|
+ method: 'post',
|
|
|
+ data
|
|
|
})
|
|
|
}
|