受试者无序阅片切换任务不切换表单
continuous-integration/drone/push Build is passing Details

uat_us
caiyiling 2024-05-31 10:35:19 +08:00
parent 84f5f5430c
commit 4ea73a455e
3 changed files with 12 additions and 2 deletions

View File

@ -891,7 +891,12 @@ const actions = {
}, },
setLastCanvasTaskId({ state }, taskId) { setLastCanvasTaskId({ state }, taskId) {
return new Promise(resolve => { return new Promise(resolve => {
var isReadingTaskViewInOrder = localStorage.getItem('isReadingTaskViewInOrder')
if (parseInt(isReadingTaskViewInOrder) === 2) {
if (!state.lastCanvasTaskId) state.lastCanvasTaskId = taskId
} else {
state.lastCanvasTaskId = taskId state.lastCanvasTaskId = taskId
}
resolve() resolve()
}) })
}, },

View File

@ -1045,7 +1045,11 @@ export default {
if (this.petctWindow) { if (this.petctWindow) {
this.petctWindow.close() this.petctWindow.close()
} }
window.removeEventListener('beforeunload') window.removeEventListener('beforeunload', () => {
if (this.petctWindow) {
this.petctWindow.close()
}
})
}, },
methods: { methods: {
getWwcTpl() { getWwcTpl() {

View File

@ -265,6 +265,7 @@ export default {
this.readingTool = this.$router.currentRoute.query.readingTool this.readingTool = this.$router.currentRoute.query.readingTool
this.TrialReadingCriterionId = this.$router.currentRoute.query.TrialReadingCriterionId this.TrialReadingCriterionId = this.$router.currentRoute.query.TrialReadingCriterionId
this.isNewSubject = this.$router.currentRoute.query.isNewSubject this.isNewSubject = this.$router.currentRoute.query.isNewSubject
localStorage.setItem('isReadingTaskViewInOrder', this.isReadingTaskViewInOrder)
if (this.isNewSubject && this.isReadingTaskViewInOrder !== 0) { if (this.isNewSubject && this.isReadingTaskViewInOrder !== 0) {
// ${this.subjectCode} // ${this.subjectCode}
var msg = this.$t('trials:reading:warnning:msg1') var msg = this.$t('trials:reading:warnning:msg1')