suv测量值后面补充截图

uat_us
caiyiling 2024-01-17 16:01:09 +08:00
parent d769e4ddd9
commit b5aac33e0b
3 changed files with 68 additions and 29 deletions

View File

@ -4,7 +4,7 @@ src/utils/*
public public
dist dist
src/* # src/*
src/views/trials/trials-panel/visit/* src/views/trials/trials-panel/visit/*
src/App.vue src/App.vue
src/views/trials/trials-panel/reading/global-review/* src/views/trials/trials-panel/reading/global-review/*

View File

@ -1909,7 +1909,11 @@ export default {
} }
}, },
handleCTSelectionChange(rows) { handleCTSelectionChange(rows) {
this.ctSeriesInfo = rows[0] if (rows.length > 0) {
this.ctSeriesInfo = rows[0]
} else {
this.ctSeriesInfo = {}
}
}, },
handleCTSelect(selection) { handleCTSelect(selection) {
if (selection.length > 1) { if (selection.length > 1) {
@ -1924,7 +1928,11 @@ export default {
} }
}, },
handlePTSelectionChange(rows) { handlePTSelectionChange(rows) {
this.petSeriesInfo = rows[0] if (rows.length > 0) {
this.petSeriesInfo = rows[0]
} else {
this.petSeriesInfo = {}
}
}, },
handleSubmitFusionSeries() { handleSubmitFusionSeries() {
this.$refs['fusionForm'].validate((valid) => { this.$refs['fusionForm'].validate((valid) => {

View File

@ -177,33 +177,60 @@
{{ val }} {{ val }}
</el-radio> </el-radio>
</el-radio-group> </el-radio-group>
<el-input <template v-if="qs.QuestionMark === 20">
v-if="qs.Type==='calculation'" <div style="display: flex;flex-direction: row;justify-content: flex-start;">
v-model="questionForm[qs.Id]" <el-input
disabled v-if="qs.Type==='calculation'"
@change="((val)=>{formItemChange(val, qs)})" v-model="questionForm[qs.Id]"
> disabled
<template v-if="qs.Unit" slot="append"> style="width:120px;"
{{ $fd('ValueUnit', parseInt(qs.Unit)) }} @change="((val)=>{formItemChange(val, qs)})"
</template> >
</el-input> <template v-if="qs.Unit" slot="append">
</el-form-item> {{ $fd('ValueUnit', parseInt(qs.Unit)) }}
<el-form-item </template>
v-if="answers.OtherPicturePath" </el-input>
:label="$t('trials:lugano:button:suvscreenshot')" <viewer
> v-if="answers.OtherPicturePath"
<div> ref="viewer"
<img style="margin:0 10px;"
v-if="answers.OtherPicturePath" :images="[answers.OtherPicturePath]"
v-viewer >
:options="{ toolbar: false }" <span style="color:#409eff;cursor: pointer" @click="previewImage()">
style="width: 50px; height: 50px; cursor: pointer;" {{ $t('trials:lugano:button:suvscreenshot') }}
crossorigin="anonymous" </span>
:src="answers.OtherPicturePath" <img
alt="Image" v-show="false"
class="suv_viewer" crossorigin="anonymous"
:src="answers.OtherPicturePath"
alt="Image"
>
</viewer>
<!-- <img
v-if="answers.OtherPicturePath"
v-viewer
:options="{ toolbar: false }"
style="width: 25px; height: 25px; cursor: pointer;margin-left:10px;"
crossorigin="anonymous"
:src="answers.OtherPicturePath"
alt="Image"
class="suv_viewer"
> -->
<!-- <el-link v-if="answers.OtherPicturePath" type="primary" style="margin-left:10px;" @click="previewImage(answers.OtherPicturePath)"></el-link> -->
</div>
</template>
<template v-else>
<el-input
v-if="qs.Type==='calculation'"
v-model="questionForm[qs.Id]"
disabled
@change="((val)=>{formItemChange(val, qs)})"
> >
</div> <template v-if="qs.Unit" slot="append">
{{ $fd('ValueUnit', parseInt(qs.Unit)) }}
</template>
</el-input>
</template>
</el-form-item> </el-form-item>
</div> </div>
<div <div
@ -335,6 +362,10 @@ export default {
toolbar: { zoomIn: true, zoomOut: true, rotateLeft: true, rotateRight: true, flipHorizontal: true, flipVertical: true } toolbar: { zoomIn: true, zoomOut: true, rotateLeft: true, rotateRight: true, flipHorizontal: true, flipVertical: true }
}) })
}, },
previewImage() {
console.log(this.$refs.viewer[0])
this.$refs.viewer[0].$viewer.show()
},
async initForm() { async initForm() {
const loading = this.$loading({ fullscreen: true }) const loading = this.$loading({ fullscreen: true })
this.questions.forEach(item => { this.questions.forEach(item => {