后端Springboot前端VUE实现Excel导入功能
功能描述:做的是物联网的项目,Excel导入实现的功能是将Excel中的数据批量的导入AEP系统,再导入我们系统中。目前已经完成该功能,前端还会添加进度条优化。Excel模板: 前端向后端传递的参数: 前端代码: <Upload name="wlwDeviceFile" ref="upload" :action="pathUrl" :on-success="handleSuccess" :on-error="handleError" :format="['xls','xlsx']" :max-size="5120" :on-format-error="handleFormatError" :on-exceeded-size="handleMaxSize" :before-upload="handleBeforeUpload" :data="extraData" :disabled="!isLock"> <Button type="primary">选择文件</Button></Upload> data() { return { isLock: true, mesg: false, extraData: { aepProductId: localStorage.productId, productId: localStorage.productItemId, projectId: