| | |
| | | </template> |
| | | </avue-crud> |
| | | <el-dialog title="DNC文件导入" append-to-body v-model="excelBox" width="555px"> |
| | | <avue-form :option="excelOption" v-model="excelForm" :upload-after="uploadAfter"> |
| | | <avue-form :option="excelOption" v-model="excelForm" :upload-after="uploadAfter" :upload-error="uploadError"> |
| | | <!-- <template #excelTemplate> |
| | | <el-button type="primary" @click="handleTemplate"> |
| | | 点击下载<i class="el-icon-download el-icon--right"></i> |
| | |
| | | // hide: true |
| | | // }, |
| | | { |
| | | label: '任务编号', |
| | | label: '程序编号', |
| | | prop: 'programNo' |
| | | }, |
| | | { |
| | |
| | | // label: '处理人', |
| | | // prop: '' |
| | | // }, |
| | | { |
| | | label: 'MD5值', |
| | | prop: 'md5', |
| | | } |
| | | //{ |
| | | // label: 'MD5值', |
| | | // prop: 'md5', |
| | | //} |
| | | ], |
| | | }, |
| | | data: [], |
| | |
| | | this.excelBox = true; |
| | | }, |
| | | uploadAfter(res, done, loading, column) { |
| | | window.console.log(column); |
| | | console.log(res, done, loading, column,2233) |
| | | this.excelBox = false; |
| | | console.log('data', res); |
| | | this.data = res || [] |
| | | done(); |
| | | }, |
| | | uploadError(error,column) { |
| | | |
| | | }, |
| | | handleWarehouse(row,index) { |
| | | if(this.selection.length == 0) { |
| | | this.$message.error("请选择数据") |
| | | }else { |
| | | var selection = []; |
| | | this.selection.forEach(item=> { |
| | | selection.push(item.id); |
| | | }) |
| | |
| | | this.loading = false; |
| | | this.data = [] |
| | | } else { |
| | | this.$message.success(res.data.msg || "操作失败"); |
| | | this.$message.error(res.data.msg || "操作失败"); |
| | | this.loading = false; |
| | | } |
| | | |
| | | } |