| | |
| | | </div> |
| | | </template> |
| | | </avue-crud> |
| | | <el-dialog title="DNC文件导入" append-to-body v-model="excelBox" width="555px"> |
| | | <el-dialog title="工控网文件导入" append-to-body v-model="excelBox" width="555px"> |
| | | <avue-form :option="excelOption" v-model="excelForm" :upload-after="uploadAfter" :upload-error="uploadError"> |
| | | <!-- <template #excelTemplate> |
| | | <el-button type="primary" @click="handleTemplate"> |
| | |
| | | |
| | | }, |
| | | handleWarehouse() { |
| | | if (this.selection.length == 0) { |
| | | return this.$message.error("请选择数据") |
| | | } |
| | | // if (this.selection.length == 0) { |
| | | // return this.$message.error("请选择数据") |
| | | // } |
| | | let selection = []; |
| | | this.selection.forEach(item => { |
| | | selection.push(item.id); |
| | |
| | | } |
| | | |
| | | } |
| | | ); |
| | | ).finally(() => { |
| | | this.loading = false; |
| | | }); |
| | | } |
| | | }, |
| | | }; |