阅片页面ecrf表单保存接口更改
parent
c2aad16566
commit
91ee952707
|
@ -2810,6 +2810,15 @@ export function saveImageQuality(param) {
|
|||
data: param
|
||||
})
|
||||
}
|
||||
|
||||
export function saveTaskQuestion(saveQuestionType, param) {
|
||||
return request({
|
||||
url: `/SaveTaskQuestion/${saveQuestionType}`,
|
||||
method: 'post',
|
||||
data: param
|
||||
})
|
||||
}
|
||||
|
||||
export function deleteReadingRowAnswer(param) {
|
||||
return request({
|
||||
url: `/ReadingImageTask/deleteReadingRowAnswer`,
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
|
||||
<script>
|
||||
|
||||
import { saveImageQuality, getDicomReadingQuestionAnswer, getReadingCalculationData } from '@/api/trials'
|
||||
import { saveTaskQuestion, getDicomReadingQuestionAnswer, getReadingCalculationData } from '@/api/trials'
|
||||
import { getToken } from '@/utils/auth'
|
||||
import QuestionItem from './QuestionItem'
|
||||
import { mapGetters } from 'vuex'
|
||||
|
@ -299,7 +299,7 @@ export default {
|
|||
answers: answers
|
||||
// questionMarkInfoList
|
||||
}
|
||||
saveImageQuality(params).then(async res => {
|
||||
saveTaskQuestion(1, params).then(async res => {
|
||||
window.opener.postMessage({ type: 'petctLesionUpdate' }, window.location)
|
||||
this.loading = false
|
||||
this.questionFormChangeState = false
|
||||
|
@ -407,7 +407,8 @@ export default {
|
|||
answers,
|
||||
questionMarkInfoList
|
||||
}
|
||||
saveImageQuality(params).then(async res => {
|
||||
const qsType = question.QuestionType === 51 ? 2 : question.QuestionType === 52 ? 3 : null
|
||||
saveTaskQuestion(qsType, params).then(async res => {
|
||||
this.$set(question, 'SaveEnum', 0)
|
||||
window.opener.postMessage({ type: 'petctLesionUpdate' }, window.location)
|
||||
loading.close()
|
||||
|
|
|
@ -146,6 +146,7 @@
|
|||
:group-classify="2"
|
||||
:is-qulity-issues="false"
|
||||
style="margin-top:20px"
|
||||
:question-type="6"
|
||||
@setNonTargetMeasurementStatus="setNonTargetMeasurementStatus"
|
||||
/>
|
||||
<!-- 脾脏评估 -->
|
||||
|
@ -155,6 +156,7 @@
|
|||
:question-form-change-num="0"
|
||||
:group-classify="3"
|
||||
:is-qulity-issues="false"
|
||||
:question-type="7"
|
||||
@setNonTargetMeasurementStatus="setNonTargetMeasurementStatus"
|
||||
/>
|
||||
</div>
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
<script>
|
||||
// import { uploadPrintscreen } from '@/api/reading'
|
||||
import { saveImageQuality, getSplenicState, getSplenicVerify } from '@/api/trials'
|
||||
import { saveTaskQuestion, getSplenicState, getSplenicVerify } from '@/api/trials'
|
||||
import QuestionItem from './QuestionItem'
|
||||
import DicomEvent from './DicomEvent'
|
||||
import { mapGetters } from 'vuex'
|
||||
|
@ -60,6 +60,10 @@ export default {
|
|||
isQulityIssues: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
questionType: {
|
||||
type: Number,
|
||||
default: 0
|
||||
}
|
||||
},
|
||||
data() {
|
||||
|
@ -204,7 +208,8 @@ export default {
|
|||
}
|
||||
// this.questions = questions
|
||||
}
|
||||
if (this.spleenLengthId && this.spleenInfo) {
|
||||
|
||||
if (this.spleenLengthId && this.spleenInfo && this.readingTaskState < 2) {
|
||||
this.calculateSpleenStatus = this.setSpleenStatus(this.questionForm[this.spleenLengthId])
|
||||
this.setSpleenCommentDisplay()
|
||||
}
|
||||
|
@ -324,7 +329,7 @@ export default {
|
|||
// params.questionMarkInfoList = questionMarkInfoList
|
||||
// }
|
||||
|
||||
saveImageQuality(params).then(async res => {
|
||||
saveTaskQuestion(this.questionType, params).then(async res => {
|
||||
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||
var trialId = this.$route.query.trialId
|
||||
await store.dispatch('reading/refreshDicomReadingQuestionAnswer', { trialId: trialId, visitTaskId: this.visitTaskId })
|
||||
|
@ -505,7 +510,8 @@ export default {
|
|||
answers,
|
||||
questionMarkInfoList
|
||||
}
|
||||
saveImageQuality(params).then(async res => {
|
||||
const qsType = question.QuestionType === 60 ? 4 : question.QuestionType === 61 ? 5 : null
|
||||
saveTaskQuestion(qsType, params).then(async res => {
|
||||
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||
this.loading = false
|
||||
this.$set(question, 'SaveEnum', 0)
|
||||
|
|
Loading…
Reference in New Issue