mrecist分裂数据未显示感叹号
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
bc85230ddc
commit
e09decd900
|
@ -272,7 +272,7 @@ export default {
|
|||
this.$nextTick(() => {
|
||||
this.$refs['ecrf'].getQuestions(this.visitTaskId)
|
||||
this.getTableQuestions()
|
||||
this.getQuestions(this.tableQuestions)
|
||||
this.getQuestions(this.tableQuestions, false)
|
||||
this.tableQuestions.forEach(item => {
|
||||
item.TableQuestions.Answers.forEach(i => {
|
||||
var refName = `${item.Id}_${i.RowIndex}`
|
||||
|
@ -287,7 +287,7 @@ export default {
|
|||
await store.dispatch('reading/setReadingQuestionAndAnswer', { questions: this.questions, visitTaskId: this.visitTaskId })
|
||||
|
||||
this.getTableQuestions()
|
||||
this.getQuestions(this.tableQuestions)
|
||||
this.getQuestions(this.tableQuestions, false)
|
||||
},
|
||||
setQuestions(questions, obj) {
|
||||
questions.forEach(item => {
|
||||
|
@ -331,7 +331,7 @@ export default {
|
|||
}
|
||||
})
|
||||
},
|
||||
getQuestions(questions) {
|
||||
getQuestions(questions, changeSaveTypeEnum = true) {
|
||||
questions.forEach(item => {
|
||||
if (item.Type === 'table' && item.TableQuestions && item.TableQuestions.Answers.length > 0) {
|
||||
item.TableQuestions.Answers.forEach(answerObj => {
|
||||
|
@ -347,22 +347,24 @@ export default {
|
|||
var lesionState = this.getQuestionAnswer(item.TableQuestions.Questions, 7, answerObj)
|
||||
lesionState = !isNaN(parseInt(lesionState)) ? parseInt(lesionState) : ''
|
||||
this.$set(answerObj, 'lesionState', lesionState)
|
||||
if (answerObj.RowId) {
|
||||
var idx = item.TableQuestions.Questions.findIndex(i => i.QuestionMark === 11)
|
||||
if (idx > -1) {
|
||||
var lesionNum = this.getQuestionAnswer(item.TableQuestions.Questions, 11, answerObj)
|
||||
lesionNum = !isNaN(parseInt(lesionNum)) ? parseInt(lesionNum) : ''
|
||||
this.$set(answerObj, 'saveTypeEnum', isNaN(parseInt(lesionNum)) ? 1 : 2)
|
||||
if (changeSaveTypeEnum) {
|
||||
if (answerObj.RowId) {
|
||||
var idx = item.TableQuestions.Questions.findIndex(i => i.QuestionMark === 11)
|
||||
if (idx > -1) {
|
||||
var lesionNum = this.getQuestionAnswer(item.TableQuestions.Questions, 11, answerObj)
|
||||
lesionNum = !isNaN(parseInt(lesionNum)) ? parseInt(lesionNum) : ''
|
||||
this.$set(answerObj, 'saveTypeEnum', isNaN(parseInt(lesionNum)) ? 1 : 2)
|
||||
} else {
|
||||
this.$set(answerObj, 'saveTypeEnum', isNaN(parseInt(lesionState)) ? 1 : 2)
|
||||
}
|
||||
} else {
|
||||
this.$set(answerObj, 'saveTypeEnum', isNaN(parseInt(lesionState)) ? 1 : 2)
|
||||
this.$set(answerObj, 'saveTypeEnum', 0)
|
||||
}
|
||||
} else {
|
||||
this.$set(answerObj, 'saveTypeEnum', 0)
|
||||
}
|
||||
})
|
||||
}
|
||||
if (item.Childrens.length > 0) {
|
||||
this.getQuestions(item.Childrens)
|
||||
this.getQuestions(item.Childrens, changeSaveTypeEnum)
|
||||
}
|
||||
})
|
||||
return questions
|
||||
|
@ -413,7 +415,7 @@ export default {
|
|||
this.isCurrentTask = this.visitTaskList[idx].IsCurrentTask
|
||||
}
|
||||
this.getTableQuestions()
|
||||
this.getQuestions(this.tableQuestions)
|
||||
this.getQuestions(this.tableQuestions, false)
|
||||
this.$nextTick(() => {
|
||||
this.tableQuestions.forEach(item => {
|
||||
item.TableQuestions.Answers.forEach(i => {
|
||||
|
|
Loading…
Reference in New Issue