质控非dicom添加预览阅片影像功能
continuous-integration/drone/push Build is passing Details

uat
wangxiaoshuang 2025-03-07 12:23:40 +08:00
parent 5b8716f9ae
commit 278c051f51
3 changed files with 24 additions and 12 deletions

View File

@ -1378,9 +1378,9 @@ export function getForwardList(param) {
}) })
} }
export function getNoneDicomStudyList(subjectVisitId, sudyId = '', isFilterZip = false, visitTaskId = '') { export function getNoneDicomStudyList(subjectVisitId, sudyId = '', isFilterZip = false, visitTaskId = '', IsReading) {
return request({ return request({
url: `/NoneDicomStudy/getNoneDicomStudyList?subjectVisitId=${subjectVisitId}&nonedicomStudyId=${sudyId}&isFilterZip=${isFilterZip}&visitTaskId=${visitTaskId}`, url: `/NoneDicomStudy/getNoneDicomStudyList?subjectVisitId=${subjectVisitId}&nonedicomStudyId=${sudyId}&isFilterZip=${isFilterZip}&visitTaskId=${visitTaskId}&IsReading=${IsReading}`,
method: 'get' method: 'get'
}) })
} }

View File

@ -141,7 +141,6 @@ export default {
async created() { async created() {
this.bp = await this.$getBodyPart(this.$route.query.trialId) this.bp = await this.$getBodyPart(this.$route.query.trialId)
this.isQcCheck = !!this.$route.query.isQcCheck this.isQcCheck = !!this.$route.query.isQcCheck
console.log(this.isQcCheck)
}, },
async mounted() { async mounted() {
if (this.$router.currentRoute.query.TokenKey) { if (this.$router.currentRoute.query.TokenKey) {
@ -244,7 +243,6 @@ export default {
.catch(() => {}) .catch(() => {})
}, },
getBodyPart(bodyPart) { getBodyPart(bodyPart) {
console.log(bodyPart)
if (!bodyPart) return '' if (!bodyPart) return ''
var separator = ',' var separator = ','
if (bodyPart.indexOf('|') > -1) { if (bodyPart.indexOf('|') > -1) {
@ -264,7 +262,6 @@ export default {
'Name' 'Name'
) )
}) })
console.log(newArr, this.bp)
return newArr.join(' | ') return newArr.join(' | ')
}, },
// Dicom // Dicom
@ -274,7 +271,8 @@ export default {
this.subjectVisitId, this.subjectVisitId,
this.studyId, this.studyId,
false, false,
this.$route.query.visitTaskId this.$route.query.visitTaskId,
!!this.$route.query.isReading
) )
.then((res) => { .then((res) => {
this.studyList = res.Result this.studyList = res.Result

View File

@ -14,7 +14,7 @@
<el-tabs v-model="activeName" type="card"> <el-tabs v-model="activeName" type="card">
<!-- DICOM影像 data.DicomStudyCount > 0--> <!-- DICOM影像 data.DicomStudyCount > 0-->
<el-tab-pane <el-tab-pane
v-if="studyList.length>0" v-if="studyList.length > 0"
:label="$t('trials:audit:tab:dicoms')" :label="$t('trials:audit:tab:dicoms')"
name="dicom" name="dicom"
> >
@ -433,13 +433,23 @@
> >
{{ $t('trials:audit:button:downLoadAllNonDiocms') }} {{ $t('trials:audit:button:downLoadAllNonDiocms') }}
</el-button> </el-button>
<!-- 预览阅片 -->
<el-button
size="small"
:disabled="noneDicomStudyList.length === 0"
type="primary"
style="margin-left: 10px"
@click="handleViewAllNoneDicoms(true)"
>
{{ $t('trials:audit:tip:nonDicomsPreviewAllReading') }}
</el-button>
<!-- 预览 --> <!-- 预览 -->
<el-button <el-button
size="small" size="small"
:disabled="noneDicomStudyList.length === 0" :disabled="noneDicomStudyList.length === 0"
type="primary" type="primary"
style="margin-left: 10px" style="margin-left: 10px"
@click="handleViewAllNoneDicoms" @click="handleViewAllNoneDicoms(false)"
> >
{{ $t('trials:audit:tip:nonDicomsPreviewAll') }} {{ $t('trials:audit:tip:nonDicomsPreviewAll') }}
</el-button> </el-button>
@ -2697,16 +2707,20 @@ export default {
} }
}, },
// Dicom // Dicom
handleViewAllNoneDicoms() { handleViewAllNoneDicoms(isReading = false) {
if (this.open) { if (this.open) {
this.open.close() this.open.close()
} }
// this.previewAllNoneDicomVisible = true // this.previewAllNoneDicomVisible = true
let trialId = this.$route.query.trialId let trialId = this.$route.query.trialId
var token = getToken() var token = getToken()
const routeData = this.$router.resolve({ const routeData = isReading
path: `/showNoneDicoms?trialId=${trialId}&subjectVisitId=${this.data.Id}&TokenKey=${token}&isQcCheck=1`, ? this.$router.resolve({
}) path: `/showNoneDicoms?trialId=${trialId}&subjectVisitId=${this.data.Id}&TokenKey=${token}&isReading=1`,
})
: this.$router.resolve({
path: `/showNoneDicoms?trialId=${trialId}&subjectVisitId=${this.data.Id}&TokenKey=${token}&isQcCheck=1`,
})
this.open = window.open(routeData.href, '_blank') this.open = window.open(routeData.href, '_blank')
}, },
// Dicom // Dicom