|
@@ -1,5 +1,6 @@
|
|
import request from '@/utils/request'
|
|
import request from '@/utils/request'
|
|
import constant from '@/constant'
|
|
import constant from '@/constant'
|
|
|
|
+import { getToken } from '@/utils/auth' // get token from cookie
|
|
|
|
|
|
function pageList(formData) {
|
|
function pageList(formData) {
|
|
return request.post(constant.serverUrl + "/base/employeeInfo/pageList", formData);
|
|
return request.post(constant.serverUrl + "/base/employeeInfo/pageList", formData);
|
|
@@ -42,7 +43,8 @@ function batchRemove(idList) {
|
|
}
|
|
}
|
|
|
|
|
|
function downloadZip(idList, localPath) {
|
|
function downloadZip(idList, localPath) {
|
|
- window.open(constant.serverUrl + "/base/employeeInfo/downloadZip?ids=" + idList + "&localPath=" + localPath);
|
|
|
|
|
|
+ window.open(constant.serverUrl + "/base/employeeInfo/downloadZip?ids=" + idList +
|
|
|
|
+ "&localPath=" + encodeURIComponent(localPath) + "&token=" + getToken());
|
|
}
|
|
}
|
|
|
|
|
|
export default {
|
|
export default {
|