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.$nextTick(() => {
|
||||||
this.$refs['ecrf'].getQuestions(this.visitTaskId)
|
this.$refs['ecrf'].getQuestions(this.visitTaskId)
|
||||||
this.getTableQuestions()
|
this.getTableQuestions()
|
||||||
this.getQuestions(this.tableQuestions)
|
this.getQuestions(this.tableQuestions, false)
|
||||||
this.tableQuestions.forEach(item => {
|
this.tableQuestions.forEach(item => {
|
||||||
item.TableQuestions.Answers.forEach(i => {
|
item.TableQuestions.Answers.forEach(i => {
|
||||||
var refName = `${item.Id}_${i.RowIndex}`
|
var refName = `${item.Id}_${i.RowIndex}`
|
||||||
|
@ -287,7 +287,7 @@ export default {
|
||||||
await store.dispatch('reading/setReadingQuestionAndAnswer', { questions: this.questions, visitTaskId: this.visitTaskId })
|
await store.dispatch('reading/setReadingQuestionAndAnswer', { questions: this.questions, visitTaskId: this.visitTaskId })
|
||||||
|
|
||||||
this.getTableQuestions()
|
this.getTableQuestions()
|
||||||
this.getQuestions(this.tableQuestions)
|
this.getQuestions(this.tableQuestions, false)
|
||||||
},
|
},
|
||||||
setQuestions(questions, obj) {
|
setQuestions(questions, obj) {
|
||||||
questions.forEach(item => {
|
questions.forEach(item => {
|
||||||
|
@ -331,7 +331,7 @@ export default {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getQuestions(questions) {
|
getQuestions(questions, changeSaveTypeEnum = true) {
|
||||||
questions.forEach(item => {
|
questions.forEach(item => {
|
||||||
if (item.Type === 'table' && item.TableQuestions && item.TableQuestions.Answers.length > 0) {
|
if (item.Type === 'table' && item.TableQuestions && item.TableQuestions.Answers.length > 0) {
|
||||||
item.TableQuestions.Answers.forEach(answerObj => {
|
item.TableQuestions.Answers.forEach(answerObj => {
|
||||||
|
@ -347,6 +347,7 @@ export default {
|
||||||
var lesionState = this.getQuestionAnswer(item.TableQuestions.Questions, 7, answerObj)
|
var lesionState = this.getQuestionAnswer(item.TableQuestions.Questions, 7, answerObj)
|
||||||
lesionState = !isNaN(parseInt(lesionState)) ? parseInt(lesionState) : ''
|
lesionState = !isNaN(parseInt(lesionState)) ? parseInt(lesionState) : ''
|
||||||
this.$set(answerObj, 'lesionState', lesionState)
|
this.$set(answerObj, 'lesionState', lesionState)
|
||||||
|
if (changeSaveTypeEnum) {
|
||||||
if (answerObj.RowId) {
|
if (answerObj.RowId) {
|
||||||
var idx = item.TableQuestions.Questions.findIndex(i => i.QuestionMark === 11)
|
var idx = item.TableQuestions.Questions.findIndex(i => i.QuestionMark === 11)
|
||||||
if (idx > -1) {
|
if (idx > -1) {
|
||||||
|
@ -359,10 +360,11 @@ export default {
|
||||||
} else {
|
} else {
|
||||||
this.$set(answerObj, 'saveTypeEnum', 0)
|
this.$set(answerObj, 'saveTypeEnum', 0)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (item.Childrens.length > 0) {
|
if (item.Childrens.length > 0) {
|
||||||
this.getQuestions(item.Childrens)
|
this.getQuestions(item.Childrens, changeSaveTypeEnum)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
return questions
|
return questions
|
||||||
|
@ -413,7 +415,7 @@ export default {
|
||||||
this.isCurrentTask = this.visitTaskList[idx].IsCurrentTask
|
this.isCurrentTask = this.visitTaskList[idx].IsCurrentTask
|
||||||
}
|
}
|
||||||
this.getTableQuestions()
|
this.getTableQuestions()
|
||||||
this.getQuestions(this.tableQuestions)
|
this.getQuestions(this.tableQuestions, false)
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.tableQuestions.forEach(item => {
|
this.tableQuestions.forEach(item => {
|
||||||
item.TableQuestions.Answers.forEach(i => {
|
item.TableQuestions.Answers.forEach(i => {
|
||||||
|
|
Loading…
Reference in New Issue