| | |
| | | menu: false, |
| | | dialogClickModal: false, |
| | | column: [ |
| | | { |
| | | label: '流程标题', |
| | | prop: 'title', |
| | | }, |
| | | { |
| | | label: '图号', |
| | | prop: 'drawingNo', |
| | |
| | | prop: 'createTime', |
| | | }, |
| | | { |
| | | label: '完成时间', |
| | | label: '通过时间', |
| | | prop: 'passTime', |
| | | search: true, |
| | | hide: true, |
| | |
| | | type: 'warning', |
| | | }).then(() => { |
| | | console.log(this.selection) |
| | | if(this.selection == null || this.selection.length == 0){ |
| | | this.$message.error('请至少选择一条导出'); |
| | | return; |
| | | } |
| | | NProgress.start(); |
| | | exportBlobPost( |
| | | `/blade-mdm/program/exchange/export-dnc`, |
| | |
| | | ).then(res => { |
| | | let name = res.headers['content-disposition'].split('filename=')[1] |
| | | console.log(res.headers['content-disposition'].split('filename=')[1]); |
| | | downloadFile(res.data, `导出DNC-${name}`); |
| | | downloadFile(res.data, `${name}`); |
| | | NProgress.done(); |
| | | }); |
| | | }); |