|
@@ -240,6 +240,7 @@ import { getEmployeeOrgan } from '@/api/buildTeam'
|
|
|
import QRCode from 'qrcodejs2'
|
|
|
import store from '@/store'
|
|
|
import axios from 'axios'
|
|
|
+import qs from 'qs'
|
|
|
import { getToken } from '@/utils/auth'
|
|
|
export default {
|
|
|
name: 'studentList',
|
|
@@ -354,12 +355,19 @@ export default {
|
|
|
},
|
|
|
downLoadStudent () {
|
|
|
let url = '/api-web/export/studentHasCourse'
|
|
|
+
|
|
|
+ let searchForm = this.searchForm
|
|
|
+ let data = {}
|
|
|
+ if(searchForm.organId) {
|
|
|
+ data.organId = searchForm.organId
|
|
|
+ }
|
|
|
const options = {
|
|
|
method: 'POST',
|
|
|
headers: {
|
|
|
'Authorization': getToken()
|
|
|
},
|
|
|
url,
|
|
|
+ data: qs.stringify(data),
|
|
|
responseType: 'blob'
|
|
|
}
|
|
|
|