受试者无序阅片切换任务不切换表单
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) {
|
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()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
|
@ -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')
|
||||||
|
|
Loading…
Reference in New Issue