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