@@ -4,6 +4,6 @@ export default { | |||
return axios.post('/chainindustryapply/applyDept', params) | |||
}, | |||
exportList(params){ | |||
return axios.get('/chainindustryapply/export',{params}) | |||
return axios.get('/chainindustry/export',{params}) | |||
}, | |||
} |
@@ -175,11 +175,15 @@ export default { | |||
exportData(data){ | |||
this.loading=true; | |||
api.exportList(Object.assign({sheetName:"链长制配合申请列表", isApply: 1},data)).then(res=>{ | |||
window.open(res.data.data); | |||
this.$message({ | |||
type:"success", | |||
message:"导出成功" | |||
}) | |||
if(res.code == 0) { | |||
window.open(res.data.data); | |||
this.$message({ | |||
type:"success", | |||
message:"导出成功" | |||
}) | |||
} else { | |||
this.$message.error("暂无数据") | |||
} | |||
}).catch(e=>{ | |||
this.$message.error("导出失败") | |||
}).finally(()=>{ |
@@ -183,7 +183,7 @@ export default { | |||
methods: { | |||
exportData(data){ | |||
this.loading=true; | |||
api.exportList(Object.assign({sheetName:"链长制配合申请审核记录"},data)).then(res=>{ | |||
api.exportList(Object.assign({sheetName:"链长制配合申请审核记录", isChecked: 1},data)).then(res=>{ | |||
window.open(res.data.data); | |||
this.$message({ | |||
type:"success", |