|
|
@@ -257,7 +257,7 @@ export default { |
|
|
if (this.isTimeReload) { |
|
|
if (this.isTimeReload) { |
|
|
this.autoUpdateSamples(); |
|
|
this.autoUpdateSamples(); |
|
|
} |
|
|
} |
|
|
this.updateAllData(); |
|
|
|
|
|
|
|
|
this.updateAllData(false); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
/** |
|
|
/** |
|
|
@@ -274,7 +274,10 @@ export default { |
|
|
this.stopUpdateSamples(); |
|
|
this.stopUpdateSamples(); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
timeReloadValue(newVal) { |
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
*The refresh time is changed |
|
|
|
|
|
*/ |
|
|
|
|
|
timeReloadValue() { |
|
|
this.autoUpdateSamples(); |
|
|
this.autoUpdateSamples(); |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
@@ -295,6 +298,10 @@ export default { |
|
|
mounted() { |
|
|
mounted() { |
|
|
this.getCharMainContentwidth(); |
|
|
this.getCharMainContentwidth(); |
|
|
this.getTagAndRunList(); |
|
|
this.getTagAndRunList(); |
|
|
|
|
|
// Automatic refresh |
|
|
|
|
|
if (this.isTimeReload) { |
|
|
|
|
|
this.autoUpdateSamples(); |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
methods: { |
|
|
methods: { |
|
|
@@ -371,11 +378,6 @@ export default { |
|
|
|
|
|
|
|
|
// Obtains data on the current page |
|
|
// Obtains data on the current page |
|
|
this.getCurPageDataArr(); |
|
|
this.getCurPageDataArr(); |
|
|
|
|
|
|
|
|
// Automatic refresh |
|
|
|
|
|
if (this.isTimeReload) { |
|
|
|
|
|
this.autoUpdateSamples(); |
|
|
|
|
|
} |
|
|
|
|
|
}, this.requestErrorCallback) |
|
|
}, this.requestErrorCallback) |
|
|
.catch((e) => { |
|
|
.catch((e) => { |
|
|
this.$message.error(this.$t('public.dataError')); |
|
|
this.$message.error(this.$t('public.dataError')); |
|
|
@@ -445,8 +447,13 @@ export default { |
|
|
]; |
|
|
]; |
|
|
} |
|
|
} |
|
|
this.$forceUpdate(); |
|
|
this.$forceUpdate(); |
|
|
}) |
|
|
|
|
|
.catch((e) => {}); |
|
|
|
|
|
|
|
|
}, (e) => { |
|
|
|
|
|
sampleItem.totalStepNum = 0; |
|
|
|
|
|
sampleItem.sliderValue = 0; |
|
|
|
|
|
sampleItem.curStep = ''; |
|
|
|
|
|
sampleItem.curImgUrl = ''; |
|
|
|
|
|
sampleItem.curTime = ''; |
|
|
|
|
|
}).catch((e) => {}); |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
/** |
|
|
/** |
|
|
@@ -880,13 +887,14 @@ export default { |
|
|
}, |
|
|
}, |
|
|
/** |
|
|
/** |
|
|
* Update all data. |
|
|
* Update all data. |
|
|
|
|
|
* @param {Boolean} ignoreError whether ignore error tip |
|
|
*/ |
|
|
*/ |
|
|
updateAllData() { |
|
|
|
|
|
|
|
|
updateAllData(ignoreError) { |
|
|
const params = { |
|
|
const params = { |
|
|
plugin_name: 'image', |
|
|
plugin_name: 'image', |
|
|
train_id: this.trainingJobId, |
|
|
train_id: this.trainingJobId, |
|
|
}; |
|
|
}; |
|
|
RequestService.getSingleTrainJob(params, true) |
|
|
|
|
|
|
|
|
RequestService.getSingleTrainJob(params, ignoreError) |
|
|
.then((res) => { |
|
|
.then((res) => { |
|
|
if (this.isReloading) { |
|
|
if (this.isReloading) { |
|
|
this.$store.commit('setIsReload', false); |
|
|
this.$store.commit('setIsReload', false); |
|
|
@@ -927,7 +935,7 @@ export default { |
|
|
} |
|
|
} |
|
|
this.autoUpdateTimer = setInterval(() => { |
|
|
this.autoUpdateTimer = setInterval(() => { |
|
|
this.$store.commit('clearToken'); |
|
|
this.$store.commit('clearToken'); |
|
|
this.updateAllData(); |
|
|
|
|
|
|
|
|
this.updateAllData(true); |
|
|
}, this.timeReloadValue * 1000); |
|
|
}, this.timeReloadValue * 1000); |
|
|
}, |
|
|
}, |
|
|
/** |
|
|
/** |
|
|
|