后处理上传问题修改
continuous-integration/drone/push Build encountered an error
Details
continuous-integration/drone/push Build encountered an error
Details
parent
474c0dca70
commit
342f833eb8
|
@ -116,7 +116,7 @@ export default {
|
||||||
components: { DicomTags },
|
components: { DicomTags },
|
||||||
computed: {
|
computed: {
|
||||||
NSTip() {
|
NSTip() {
|
||||||
return `${this.$store.state.trials.uploadSize}, NS: ${this.$store.state.trials.uploadTip}`
|
return `${this.$store.state.trials.downloadSize}, NS: ${this.$store.state.trials.downloadTip}`
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
|
|
@ -646,6 +646,7 @@ export default {
|
||||||
resolve()
|
resolve()
|
||||||
})
|
})
|
||||||
var validFilesCount = 0
|
var validFilesCount = 0
|
||||||
|
scope.uploadQueues = []
|
||||||
for (var i = 0; i < checkFiles.length; ++i) {
|
for (var i = 0; i < checkFiles.length; ++i) {
|
||||||
; (function (index) {
|
; (function (index) {
|
||||||
p = p.then(function () {
|
p = p.then(function () {
|
||||||
|
|
|
@ -10,7 +10,8 @@ const getDefaultState = () => {
|
||||||
unlock: false,
|
unlock: false,
|
||||||
config: {},
|
config: {},
|
||||||
uploadTip: '0.00KB/s',
|
uploadTip: '0.00KB/s',
|
||||||
uploadSize: '',
|
downloadTip: '0.00KB/s',
|
||||||
|
downloadSize: '',
|
||||||
timer: null,
|
timer: null,
|
||||||
whiteList: [],
|
whiteList: [],
|
||||||
checkTaskId: null
|
checkTaskId: null
|
||||||
|
|
|
@ -123,7 +123,7 @@ export function getNetWorkSpeed() {
|
||||||
totalBytes = totalBytes / 1024;
|
totalBytes = totalBytes / 1024;
|
||||||
unit = "MB/s";
|
unit = "MB/s";
|
||||||
}
|
}
|
||||||
store.state.trials.uploadTip = totalBytes.toFixed(3) + unit;
|
store.state.trials.downloadTip = totalBytes.toFixed(3) + unit;
|
||||||
}
|
}
|
||||||
if (timeList.length >= 5) {
|
if (timeList.length >= 5) {
|
||||||
delete bytesReceivedPerSecond[timeList[0]]
|
delete bytesReceivedPerSecond[timeList[0]]
|
||||||
|
@ -189,8 +189,8 @@ export function workSpeedclose(isForce = false) {
|
||||||
if (timer) {
|
if (timer) {
|
||||||
clearInterval(timer);
|
clearInterval(timer);
|
||||||
timer = null;
|
timer = null;
|
||||||
store.state.trials.uploadTip = '0KB/s'
|
store.state.trials.downloadTip = '0KB/s'
|
||||||
store.state.trials.uploadSize = ''
|
store.state.trials.downloadSize = ''
|
||||||
}
|
}
|
||||||
bytesReceivedPerSecond = {};
|
bytesReceivedPerSecond = {};
|
||||||
lastPercentage = 0;
|
lastPercentage = 0;
|
||||||
|
|
|
@ -299,7 +299,7 @@ export default {
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters(['visitTaskList', 'currentReadingTaskState']),
|
...mapGetters(['visitTaskList', 'currentReadingTaskState']),
|
||||||
NSTip() {
|
NSTip() {
|
||||||
return `NS: ${this.$store.state.trials.uploadTip}`
|
return `NS: ${this.$store.state.trials.downloadTip}`
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
|
|
@ -297,7 +297,7 @@ export default {
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters(['visitTaskList', 'currentReadingTaskState']),
|
...mapGetters(['visitTaskList', 'currentReadingTaskState']),
|
||||||
NSTip() {
|
NSTip() {
|
||||||
return `NS: ${this.$store.state.trials.uploadTip}`
|
return `NS: ${this.$store.state.trials.downloadTip}`
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
|
|
@ -542,7 +542,7 @@ export default {
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
NSTip() {
|
NSTip() {
|
||||||
return `NS: ${this.$store.state.trials.uploadTip}`
|
return `NS: ${this.$store.state.trials.downloadTip}`
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue