Commit 85ceac4c by 张杰

增加图片导出失败提示语

1 parent 501792f9
...@@ -375,14 +375,20 @@ export default { ...@@ -375,14 +375,20 @@ export default {
oParams.orderIds = arr.toString(); oParams.orderIds = arr.toString();
_this.iloading = true; _this.iloading = true;
GET_WORKORDER_BATCHEXPORTPICS(oParams).then(res => { GET_WORKORDER_BATCHEXPORTPICS(oParams)
_this.iloading = false; .then((res) => {
if(res.code == 200){ _this.iloading = false;
window.open(res.data) if (res.code != 200) {
} showToast({
}).catch(error => { message: res.message,
_this.iloading = false; });
}) return false;
}
window.open(res.data);
})
.catch((error) => {
_this.iloading = false;
});
// _this.$Common.exportExcel({ // _this.$Common.exportExcel({
// url: `${store.state.baseURL}${GET_WORKORDER_BATCHEXPORTPICS}`, // url: `${store.state.baseURL}${GET_WORKORDER_BATCHEXPORTPICS}`,
// method: "GET", // method: "GET",
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!