| | |
| | | <template #menu-left> |
| | | <!-- <el-button type="primary" plain @click="exportWebSite">导出回传涉密网</el-button> --> |
| | | <!-- <el-button type="primary" plain @click="reassign">挂载车床程序库</el-button> --> |
| | | <el-button type="primary" plain @click="exportExcel">导出</el-button> |
| | | <el-button type="primary" :disabled="this.selection.length==0" plain @click="exportExcel">导出</el-button> |
| | | </template> |
| | | <template #menu="scope"> |
| | | <!-- <el-button type="primary" text size="default" |
| | |
| | | <template #menu-left> |
| | | <!-- <el-button type="primary" plain @click="exportWebSite">导出回传涉密网</el-button> --> |
| | | <!-- <el-button type="primary" plain @click="reassign">挂载车床程序库</el-button> --> |
| | | <el-button type="primary" plain @click="exportExcel">导出</el-button> |
| | | <el-button type="primary" :disabled="this.selection.length==0" plain @click="exportExcel">导出</el-button> |
| | | </template> |
| | | <template #menu="scope"> |
| | | <!-- <el-button type="primary" text size="default" |
| | |
| | | import NProgress from 'nprogress'; |
| | | import { exportBlobPost } from '@/api/common'; |
| | | import { getToken } from '@/utils/auth'; |
| | | import {todoChangeNotify} from '@/api/flow/todolist'; |
| | | import { downloadFile } from '@/utils/util'; |
| | | export default { |
| | | name: 'programexport', |
| | |
| | | with: 85 |
| | | }, |
| | | { |
| | | label: '图号版次', |
| | | label: '图纸版次', |
| | | prop: 'drawingNoEdition', |
| | | with: 85 |
| | | }, |
| | |
| | | width: 85 |
| | | }, |
| | | { |
| | | label: '图号版次', |
| | | label: '图纸版次', |
| | | prop: 'drawingNoEdition', |
| | | width: 85 |
| | | }, |
| | |
| | | ).then(res => { |
| | | console.log('status='+res.status) |
| | | if(res.status == 200){ |
| | | //console.log(res.data); |
| | | |
| | | let name = res.headers['content-disposition'].split('filename=')[1] |
| | | name = decodeURI(name) |
| | | //console.log(res.headers['content-disposition'].split('filename=')[1]); |
| | |
| | | this.$message.error('导出错误'); |
| | | console.log(res); |
| | | } |
| | | todoChangeNotify(); |
| | | NProgress.done(); |
| | | this.onLoad(this.page, this.query); |
| | | }); |