| | |
| | | }, |
| | | // 对话框确认 |
| | | dialogVisibleConfirm() { |
| | | console.log(this.$refs.uploadFileRef.uploadFiles[0]) |
| | | // console.log(this.$refs.uploadFileRef.uploadFiles[0]) |
| | | if (!this.$refs.uploadFileRef.uploadFiles[0]) { |
| | | this.$message.info('请选择文件上传!') |
| | | return this.$message.info('请选择文件上传!') |
| | | } |
| | | |
| | | const isLt100M = this.$refs.uploadFileRef.uploadFiles[0].size / 1024 / 1024 <= 1024 |
| | | const isLt100M = this.$refs.uploadFileRef.uploadFiles[0].size / 1024 / 1024 <= 10 |
| | | if (!isLt100M) { |
| | | return this.$message.info('请检查,上传文件大小不能超过1024MB!') |
| | | return this.$message.info('请检查,上传文件大小不能超过10MB!') |
| | | } |
| | | |
| | | this.$refs.dialogForm.validate(valid => { |