| | |
| | | :http-request="importTable" |
| | | :show-file-list="false" |
| | | :auto-upload="true" |
| | | multiple |
| | | :limit="1"> |
| | | <el-button type="primary">导入</el-button> |
| | | </el-upload> |
| | |
| | | unsame: false, |
| | | myIdx: 0, |
| | | preMyIdx: 0, |
| | | file: null, |
| | | options: [ |
| | | { |
| | | value: 0, |
| | |
| | | |
| | | // 导入 |
| | | importTable(file) { |
| | | importTeamInfo(file.file) |
| | | const formData = new FormData(); |
| | | formData.append('file', file.file); |
| | | importTeamInfo(formData) |
| | | .then(() => { |
| | | this.$message({ type: 'success', message: '操作成功' }); |
| | | this.getDepartmentList(); |
| | |
| | | }) |
| | | .catch(err => { |
| | | this.$message({ type: 'error', message: err }); |
| | | this.$refs.uploadFile.clearFiles(); |
| | | }); |
| | | }, |
| | | |