Commit 546d9112 by 张杰

修改工单图片导出地址

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