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

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

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

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

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

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

Loading…
Cancel
Save