Compare commits
2 Commits
d96822818c
...
e295bff859
Author | SHA1 | Date |
---|---|---|
|
e295bff859 | |
|
7a53a75038 |
|
@ -449,12 +449,12 @@ export default {
|
|||
const res = await saveTaskQuestion(0, params)
|
||||
if (res.IsSuccess) {
|
||||
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||
if (!this.isBaseLineTask && (this.criterionType === 1 || this.criterionType === 2 || this.criterionType === 3 || this.criterionType === 17)) {
|
||||
if (!this.isBaseLineTask) {
|
||||
if (parseInt(imageQuality) === 2) {
|
||||
this.$confirm(this.$t('trials:reading:warnning:unableEvaluate'), '', {
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
this.changeLesionState(2)
|
||||
this.changeLesionState()
|
||||
}).catch(() => {
|
||||
|
||||
})
|
||||
|
@ -1703,9 +1703,16 @@ export default {
|
|||
this.activeName = ''
|
||||
}
|
||||
},
|
||||
changeLesionState(state) {
|
||||
changeLesionState() {
|
||||
Object.values(this.innerFormData).forEach(i => {
|
||||
console.log(i)
|
||||
if (isNaN(parseInt(i.LesionState)) && i.IsCurrentTaskAdd === 'False') {
|
||||
i.LesionState = 2
|
||||
const targetTable = this.tableQuestions[0].Childrens.find(
|
||||
child => child.Id === i.TableId
|
||||
)
|
||||
const stateId = this.getQuestionId(7, targetTable.TableQuestions.Questions)
|
||||
i[stateId] = 2
|
||||
}
|
||||
})
|
||||
},
|
||||
removeAnswer(tableId, rowIndex) {
|
||||
|
|
|
@ -455,12 +455,12 @@ export default {
|
|||
const res = await saveTaskQuestion(0, params)
|
||||
if (res.IsSuccess) {
|
||||
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||
if (!this.isBaseLineTask && (this.criterionType === 1 || this.criterionType === 2 || this.criterionType === 3 || this.criterionType === 17)) {
|
||||
if (!this.isBaseLineTask) {
|
||||
if (parseInt(imageQuality) === 2) {
|
||||
this.$confirm(this.$t('trials:reading:warnning:unableEvaluate'), '', {
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
this.changeLesionState(2)
|
||||
this.changeLesionState()
|
||||
}).catch(() => {
|
||||
|
||||
})
|
||||
|
@ -1830,9 +1830,16 @@ export default {
|
|||
this.activeName = ''
|
||||
}
|
||||
},
|
||||
changeLesionState(state) {
|
||||
changeLesionState() {
|
||||
Object.values(this.innerFormData).forEach(i => {
|
||||
console.log(i)
|
||||
if (isNaN(parseInt(i.LesionState)) && i.IsCurrentTaskAdd === 'False') {
|
||||
i.LesionState = 2
|
||||
const targetTable = this.tableQuestions[0].Childrens.find(
|
||||
child => child.Id === i.TableId
|
||||
)
|
||||
const stateId = this.getQuestionId(7, targetTable.TableQuestions.Questions)
|
||||
i[stateId] = 2
|
||||
}
|
||||
})
|
||||
},
|
||||
removeAnswer(tableId, rowIndex) {
|
||||
|
|
Loading…
Reference in New Issue