|
|
@@ -309,15 +309,7 @@ export default {
|
|
|
},
|
|
|
// ****************************************************************************************************************
|
|
|
showUploadDialog: false,
|
|
|
- options: {
|
|
|
- target: '',
|
|
|
- // 分块大小 10MB
|
|
|
- chunkSize: 1024 * 1024 * 10,
|
|
|
- // 失败自动重传次数
|
|
|
- maxChunkRetries: 3,
|
|
|
- fileParameterName: 'file',
|
|
|
- testChunks: true
|
|
|
- },
|
|
|
+ options: null,
|
|
|
attrs: {
|
|
|
accept: '*'
|
|
|
}
|
|
|
@@ -395,7 +387,6 @@ export default {
|
|
|
this.showUploadDialog = false
|
|
|
},
|
|
|
onClickUpload() {
|
|
|
- this.showUploadDialog = true
|
|
|
getDiskChannelInfo().then(resp => {
|
|
|
if (resp.code === 0) {
|
|
|
const respData = resp.data
|
|
|
@@ -433,17 +424,17 @@ export default {
|
|
|
} else {
|
|
|
this.$notify({
|
|
|
title: '提示',
|
|
|
- message: '获取 OSS 服务器地址失败, 暂时无法上传视频文件',
|
|
|
+ message: '获取 OSS 服务器地址失败, 暂时无法上传文件',
|
|
|
type: 'error',
|
|
|
- duration: 3000
|
|
|
+ duration: 1000
|
|
|
})
|
|
|
}
|
|
|
}).catch(error => {
|
|
|
this.$notify({
|
|
|
- title: '获取 OSS 服务器地址失败, 暂时无法上传视频文件',
|
|
|
+ title: '获取 OSS 服务器地址失败, 暂时无法上传文件',
|
|
|
message: error.message,
|
|
|
type: 'warning',
|
|
|
- duration: 3000
|
|
|
+ duration: 1000
|
|
|
})
|
|
|
})
|
|
|
},
|