Commit 546d9112 by 张杰

修改工单图片导出地址

1 parent 0c3578b0
...@@ -45,8 +45,11 @@ export const GET_VEHICLE_SELECTEDTYPETREE = (params) => { ...@@ -45,8 +45,11 @@ export const GET_VEHICLE_SELECTEDTYPETREE = (params) => {
}; };
// 工单管理-工单列表-图片打包下载 // 工单管理-工单列表-图片打包下载
export const GET_WORKORDER_BATCHEXPORTPICS = //export const GET_WORKORDER_BATCHEXPORTPICS = "/trialdrive/workorder/batchExportPics";
"/trialdrive/workorder/batchExportPics"; export const GET_WORKORDER_BATCHEXPORTPICS = params => {
return request(params, "/trialdrive/workorder/batchExportPics");
}
// 工单管理-工单列表-导入工单-模板下载 // 工单管理-工单列表-导入工单-模板下载
export const GET_WORKORDER_TEMPLATEFILE = export const GET_WORKORDER_TEMPLATEFILE =
......
...@@ -375,18 +375,23 @@ export default { ...@@ -375,18 +375,23 @@ export default {
oParams.orderIds = arr.toString(); oParams.orderIds = arr.toString();
_this.iloading = true; _this.iloading = true;
_this.$Common.exportExcel({ GET_WORKORDER_BATCHEXPORTPICS(oParams).then(res => {
url: `${store.state.baseURL}${GET_WORKORDER_BATCHEXPORTPICS}`, if(res.code == 200){
method: "GET", window.open(res.data)
data: oParams, }
fileName: `图片${moment().format("YYYY-MM-DD")}.zip`, })
success: () => { // _this.$Common.exportExcel({
_this.iloading = false; // url: `${store.state.baseURL}${GET_WORKORDER_BATCHEXPORTPICS}`,
}, // method: "GET",
fail: () => { // data: oParams,
_this.iloading = false; // fileName: `图片${moment().format("YYYY-MM-DD")}.zip`,
}, // success: () => {
}); // _this.iloading = false;
// },
// fail: () => {
// _this.iloading = false;
// },
// });
}, },
// 导出excel // 导出excel
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!