受试者无序阅片切换任务不切换表单
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
84f5f5430c
commit
4ea73a455e
|
@ -891,7 +891,12 @@ const actions = {
|
|||
},
|
||||
setLastCanvasTaskId({ state }, taskId) {
|
||||
return new Promise(resolve => {
|
||||
state.lastCanvasTaskId = taskId
|
||||
var isReadingTaskViewInOrder = localStorage.getItem('isReadingTaskViewInOrder')
|
||||
if (parseInt(isReadingTaskViewInOrder) === 2) {
|
||||
if (!state.lastCanvasTaskId) state.lastCanvasTaskId = taskId
|
||||
} else {
|
||||
state.lastCanvasTaskId = taskId
|
||||
}
|
||||
resolve()
|
||||
})
|
||||
},
|
||||
|
|
|
@ -1045,7 +1045,11 @@ export default {
|
|||
if (this.petctWindow) {
|
||||
this.petctWindow.close()
|
||||
}
|
||||
window.removeEventListener('beforeunload')
|
||||
window.removeEventListener('beforeunload', () => {
|
||||
if (this.petctWindow) {
|
||||
this.petctWindow.close()
|
||||
}
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
getWwcTpl() {
|
||||
|
|
|
@ -265,6 +265,7 @@ export default {
|
|||
this.readingTool = this.$router.currentRoute.query.readingTool
|
||||
this.TrialReadingCriterionId = this.$router.currentRoute.query.TrialReadingCriterionId
|
||||
this.isNewSubject = this.$router.currentRoute.query.isNewSubject
|
||||
localStorage.setItem('isReadingTaskViewInOrder', this.isReadingTaskViewInOrder)
|
||||
if (this.isNewSubject && this.isReadingTaskViewInOrder !== 0) {
|
||||
// 已开始受试者${this.subjectCode}阅片任务
|
||||
var msg = this.$t('trials:reading:warnning:msg1')
|
||||
|
|
Loading…
Reference in New Issue