ir上传文件初始化问题
continuous-integration/drone/push Build is passing Details

uat_us
DESKTOP-6C3NK6N\WXS 2024-09-09 16:55:33 +08:00
parent 7c77a42e90
commit c2aa83f4b8
3 changed files with 7 additions and 6 deletions

View File

@ -98,8 +98,8 @@
/>
<input
type="file"
:name="`file_${scope.row.Id}`"
:ref="`pathClear_${scope.row.Id}`"
:name="`file_${scope.row.VisitTaskId}`"
:ref="`pathClear_${scope.row.VisitTaskId}`"
:disabled="btnLoading"
webkitdirectory
multiple
@ -1078,7 +1078,8 @@ export default {
})
this.$refs.pathClear.value = ''
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
if (this.studyErrorList.length > 0) {

View File

@ -59,7 +59,7 @@ async function multipartUpload(OSSclient, partSize, saveFileId, uploadFile, data
if (bytesTime) {
bytesReceivedPerSecond[bytesTime] += data.file.size * (percentage - checkData[saveFileId]);
} else {
console.log("未查询到时间")
// console.log("未查询到时间")
if (timeList.length > 0) {
bytesReceivedPerSecond[timeList[timeList.length - 1]] += data.file.size * (percentage - checkData[saveFileId]);
} else {
@ -136,7 +136,7 @@ function initPage() {
function setTimer() {
if (timer) return false;
timer = setInterval(() => {
console.log(Object.assign({}, bytesReceivedPerSecond))
// console.log(Object.assign({}, bytesReceivedPerSecond))
let timeList = Object.keys(bytesReceivedPerSecond).sort((a, b) => a - b);
if (timeList.length > 0) {
let totalBytes = timeList.reduce((sum, bytes) => sum + bytesReceivedPerSecond[bytes], 0) / (5 * 1024);

View File

@ -272,7 +272,7 @@ function getSTSToken(credentials) {
}
} else {
console.log("凭证未过期");
// console.log("凭证未过期");
resolve(false)
}