Browse Source

导出

master
YF-yuan 3 years ago
parent
commit
c6208ba68a
3 changed files with 11 additions and 7 deletions
  1. +1
    -1
      src/api/chain/coordinationManage/applyCooperation.js
  2. +9
    -5
      src/views/chain/coordinationManage/applyCooperation.vue
  3. +1
    -1
      src/views/chain/coordinationManage/approvalCooperation.vue

+ 1
- 1
src/api/chain/coordinationManage/applyCooperation.js View File

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})
}, },
} }

+ 9
- 5
src/views/chain/coordinationManage/applyCooperation.vue View File

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(()=>{

+ 1
- 1
src/views/chain/coordinationManage/approvalCooperation.vue View File

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",

Loading…
Cancel
Save