ir上传文件初始化问题
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
7c77a42e90
commit
c2aa83f4b8
|
@ -98,8 +98,8 @@
|
||||||
/>
|
/>
|
||||||
<input
|
<input
|
||||||
type="file"
|
type="file"
|
||||||
:name="`file_${scope.row.Id}`"
|
:name="`file_${scope.row.VisitTaskId}`"
|
||||||
:ref="`pathClear_${scope.row.Id}`"
|
:ref="`pathClear_${scope.row.VisitTaskId}`"
|
||||||
:disabled="btnLoading"
|
:disabled="btnLoading"
|
||||||
webkitdirectory
|
webkitdirectory
|
||||||
multiple
|
multiple
|
||||||
|
@ -1078,7 +1078,8 @@ export default {
|
||||||
})
|
})
|
||||||
this.$refs.pathClear.value = ''
|
this.$refs.pathClear.value = ''
|
||||||
this.list.forEach((item) => {
|
this.list.forEach((item) => {
|
||||||
this.$refs[`pathClear_${item.Id}`].value = ''
|
this.$refs[`pathClear_${item.VisitTaskId}`].value = ''
|
||||||
|
console.log(this.$refs[`pathClear_${item.VisitTaskId}`])
|
||||||
})
|
})
|
||||||
this.btnLoading = false
|
this.btnLoading = false
|
||||||
if (this.studyErrorList.length > 0) {
|
if (this.studyErrorList.length > 0) {
|
||||||
|
|
|
@ -59,7 +59,7 @@ async function multipartUpload(OSSclient, partSize, saveFileId, uploadFile, data
|
||||||
if (bytesTime) {
|
if (bytesTime) {
|
||||||
bytesReceivedPerSecond[bytesTime] += data.file.size * (percentage - checkData[saveFileId]);
|
bytesReceivedPerSecond[bytesTime] += data.file.size * (percentage - checkData[saveFileId]);
|
||||||
} else {
|
} else {
|
||||||
console.log("未查询到时间")
|
// console.log("未查询到时间")
|
||||||
if (timeList.length > 0) {
|
if (timeList.length > 0) {
|
||||||
bytesReceivedPerSecond[timeList[timeList.length - 1]] += data.file.size * (percentage - checkData[saveFileId]);
|
bytesReceivedPerSecond[timeList[timeList.length - 1]] += data.file.size * (percentage - checkData[saveFileId]);
|
||||||
} else {
|
} else {
|
||||||
|
@ -136,7 +136,7 @@ function initPage() {
|
||||||
function setTimer() {
|
function setTimer() {
|
||||||
if (timer) return false;
|
if (timer) return false;
|
||||||
timer = setInterval(() => {
|
timer = setInterval(() => {
|
||||||
console.log(Object.assign({}, bytesReceivedPerSecond))
|
// console.log(Object.assign({}, bytesReceivedPerSecond))
|
||||||
let timeList = Object.keys(bytesReceivedPerSecond).sort((a, b) => a - b);
|
let timeList = Object.keys(bytesReceivedPerSecond).sort((a, b) => a - b);
|
||||||
if (timeList.length > 0) {
|
if (timeList.length > 0) {
|
||||||
let totalBytes = timeList.reduce((sum, bytes) => sum + bytesReceivedPerSecond[bytes], 0) / (5 * 1024);
|
let totalBytes = timeList.reduce((sum, bytes) => sum + bytesReceivedPerSecond[bytes], 0) / (5 * 1024);
|
||||||
|
|
|
@ -272,7 +272,7 @@ function getSTSToken(credentials) {
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
console.log("凭证未过期");
|
// console.log("凭证未过期");
|
||||||
resolve(false)
|
resolve(false)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue