return axios.post('/chainindustryapply/applyDept', params) | return axios.post('/chainindustryapply/applyDept', params) | ||||
}, | }, | ||||
exportList(params){ | exportList(params){ | ||||
return axios.get('/chainindustryapply/export',{params}) | |||||
return axios.get('/chainindustry/export',{params}) | |||||
}, | }, | ||||
} | } |
exportData(data){ | exportData(data){ | ||||
this.loading=true; | this.loading=true; | ||||
api.exportList(Object.assign({sheetName:"链长制配合申请列表", isApply: 1},data)).then(res=>{ | 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=>{ | }).catch(e=>{ | ||||
this.$message.error("导出失败") | this.$message.error("导出失败") | ||||
}).finally(()=>{ | }).finally(()=>{ |
methods: { | methods: { | ||||
exportData(data){ | exportData(data){ | ||||
this.loading=true; | 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); | window.open(res.data.data); | ||||
this.$message({ | this.$message({ | ||||
type:"success", | type:"success", |