@@ -1295,6 +1298,16 @@ export default {
margin-top: 30vh !important;
}
+ ::v-deep .el-select .el-input__prefix {
+ left: calc(100% - 50px);
+ cursor: pointer;
+ }
+
+ ::v-deep .el-select .el-input__inner {
+ padding-left: 15px;
+ padding-right: 50px;
+ }
+
::v-deep .el-dialog__wrapper {
pointer-events: none;
}
diff --git a/src/views/trials/trials-panel/reading/dicoms3D/components/customize/QuestionList.vue b/src/views/trials/trials-panel/reading/dicoms3D/components/customize/QuestionList.vue
index 519a2f81..f4d62d6f 100644
--- a/src/views/trials/trials-panel/reading/dicoms3D/components/customize/QuestionList.vue
+++ b/src/views/trials/trials-panel/reading/dicoms3D/components/customize/QuestionList.vue
@@ -587,7 +587,23 @@ export default {
item.MeasureData = item.MeasureData ? JSON.stringify(item.MeasureData) : ''
markInfo.push(item)
}
-
+ let annotation = null
+ if (!this.operateRowId && obj.rowId) {
+ this.operateRowId = obj.rowId
+ // this.updateQuestionsMarkStatus(obj)
+ }
+ annotation = this.getAnnotationByRow(obj.question.Id, false)
+ // 截图上传
+ let picturePath = ''
+ if (annotation) {
+ const base64Str = await this.getScreenshots({
+ visitTaskId: this.visitTaskId,
+ annotation
+ })
+ const pictureObj = await this.uploadScreenshots(`${Date.now()}`, base64Str)
+ picturePath = pictureObj.isSuccess ? this.$getObjectName(pictureObj.result.url) : ''
+ markInfo[0].PicturePath = picturePath
+ }
await saveTaskQuestion(-10, {
visitTaskId: this.visitTaskId,
answers,
@@ -688,10 +704,18 @@ export default {
}
})
},
- getAnnotationByRow(rowId) {
- const index = this.questionMarkInfoList.findIndex(
- i => i.RowId === rowId && i.TableQuestionId === this.operateQuestionId
- )
+ getAnnotationByRow(rowId, isTable = true) {
+ console.log(this.questionMarkInfoList, 'this.questionMarkInfoList')
+ let index = -1;
+ if (isTable) {
+ index = this.questionMarkInfoList.findIndex(
+ i => i.RowId === rowId && i.TableQuestionId === this.operateQuestionId
+ )
+ } else {
+ index = this.questionMarkInfoList.findIndex(
+ i => i.QuestionId === rowId
+ )
+ }
return index > -1 ? this.questionMarkInfoList[index].MeasureData : null
},
async bindAnnotationToQuestion(annotation) {
diff --git a/src/views/trials/trials-panel/reading/dicoms3D/components/customize/QuestionTableFormItem.vue b/src/views/trials/trials-panel/reading/dicoms3D/components/customize/QuestionTableFormItem.vue
index 73081443..a1f63b50 100644
--- a/src/views/trials/trials-panel/reading/dicoms3D/components/customize/QuestionTableFormItem.vue
+++ b/src/views/trials/trials-panel/reading/dicoms3D/components/customize/QuestionTableFormItem.vue
@@ -134,14 +134,21 @@