| | |
| | | <el-button type="primary" plain size="default">导入</el-button> |
| | | </el-upload> --> |
| | | <el-button type="primary" plain @click="importAction">导入</el-button> |
| | | <el-button type="primary" plain @click="downloadTemplate">下载模板 |
| | | </el-button> |
| | | <el-button type="primary" size="default" icon="el-icon-circle-plus" plain @click="handleAdd">新增</el-button> |
| | | </div> |
| | | |
| | | </template> |
| | | <template #menu="scope"> |
| | | <el-button type="primary" text size="default" icon="el-icon-edit" @click.stop="handleEdit(scope.row, scope.index)">编辑</el-button> |
| | |
| | | }); |
| | | }); |
| | | }, |
| | | downloadTemplate() { |
| | | NProgress.start(); |
| | | exportBlob( |
| | | `/blade-mdm/machine/download-template` |
| | | ).then(res => { |
| | | downloadXls(res.data, `机床导入模版.xlsx`); |
| | | NProgress.done(); |
| | | }); |
| | | }, |
| | | formSubmit(params, done) { |
| | | var obj = {...params}; |
| | | if(params.status.length == 0) { |