Compare commits

...

2 Commits

Author SHA1 Message Date
caiyiling e295bff859 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing Details
2025-05-21 14:06:54 +08:00
caiyiling 7a53a75038 影像质量不正常时维护病灶默认状态 2025-05-21 14:06:06 +08:00
2 changed files with 22 additions and 8 deletions

View File

@ -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) {

View File

@ -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) {