|
|
@@ -70,6 +70,9 @@ import {
|
|
70
|
70
|
exportToExcelHeBing
|
|
71
|
71
|
} from '@/api/testing/reportTesting'
|
|
72
|
72
|
import Pagination from '@/components/context/Pagination' // 对el-pagination 二次封装
|
|
|
73
|
+import {
|
|
|
74
|
+ exportExcel
|
|
|
75
|
+} from '@/utils'
|
|
73
|
76
|
export default {
|
|
74
|
77
|
name: 'CallRecord',
|
|
75
|
78
|
components: {
|
|
|
@@ -174,20 +177,25 @@ export default {
|
|
174
|
177
|
},
|
|
175
|
178
|
btn_export() {
|
|
176
|
179
|
this.loading = true
|
|
177
|
|
- return new Promise((resolve) => {
|
|
178
|
|
- const params = {
|
|
179
|
|
- stime: this.ruleForm.searchDate[0],
|
|
180
|
|
- endtime: this.ruleForm.searchDate[1]
|
|
181
|
|
- }
|
|
182
|
|
- this.dataLists = []
|
|
183
|
|
- exportToExcelHeBing(params).then((response) => {
|
|
184
|
|
- this.loading = false
|
|
185
|
|
- // if (response.rows && response.rows.length) {
|
|
|
180
|
+ // return new Promise((resolve) => {
|
|
|
181
|
+ // const params = {
|
|
|
182
|
+ // stime: this.ruleForm.searchDate[0],
|
|
|
183
|
+ // endtime: this.ruleForm.searchDate[1]
|
|
|
184
|
+ // }
|
|
|
185
|
+ // exportToExcelHeBing(params).then((response) => {
|
|
|
186
|
+ // this.loading = false
|
|
|
187
|
+ // // if (response.rows && response.rows.length) {
|
|
186
|
188
|
|
|
187
|
|
- // }
|
|
188
|
|
- })
|
|
189
|
|
- resolve()
|
|
190
|
|
- })
|
|
|
189
|
+ // // }
|
|
|
190
|
+ // })
|
|
|
191
|
+ // resolve()
|
|
|
192
|
+ // })
|
|
|
193
|
+
|
|
|
194
|
+ const params = {
|
|
|
195
|
+ stime: this.ruleForm.searchDate[0],
|
|
|
196
|
+ endtime: this.ruleForm.searchDate[1]
|
|
|
197
|
+ }
|
|
|
198
|
+ exportExcel(params, exportToExcelHeBing)
|
|
191
|
199
|
}
|
|
192
|
200
|
}
|
|
193
|
201
|
}
|