|
@@ -747,7 +747,7 @@ export default {
|
|
|
window.AWS.config.region = 'cn-northwest-1' // 设置区域
|
|
|
|
|
|
// eslint-disable-next-line prettier/prettier
|
|
|
- var bucket = new window.AWS.S3({ params: { Bucket: 'ccrb' }}) // 选择桶
|
|
|
+ var bucket = new window.AWS.S3({ params: { Bucket: 'ccrb' } }) // 选择桶
|
|
|
var _this = this
|
|
|
_this.progress = 0
|
|
|
_this.proVisible = true
|
|
@@ -784,13 +784,13 @@ export default {
|
|
|
}
|
|
|
bucket
|
|
|
.upload(params, options)
|
|
|
- .on('httpUploadProgress', function(evt) {
|
|
|
+ .on('httpUploadProgress', function (evt) {
|
|
|
// 这里可以写进度条
|
|
|
// console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
|
|
|
_this.progress = parseInt((evt.loaded / evt.total) * 100)
|
|
|
_this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2)
|
|
|
})
|
|
|
- .send(function(err, data) {
|
|
|
+ .send(function (err, data) {
|
|
|
_this.progress = 100
|
|
|
_this.isFinishSize = _this.isAllSize
|
|
|
setTimeout(() => {
|
|
@@ -1015,7 +1015,12 @@ export default {
|
|
|
padding: 5px;
|
|
|
font-size: 14px;
|
|
|
cursor: pointer;
|
|
|
- @include textoverflow();
|
|
|
+ white-space: nowrap;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ word-break: break-word;
|
|
|
+ max-width: 70px;
|
|
|
+ // @include textoverflow();
|
|
|
}
|
|
|
}
|
|
|
}
|