Compare commits

..

No commits in common. "abb224a8fb44f201f37926e42065ea27668ab635" and "754fe5f7975422df3f5ceb1341772447964638c6" have entirely different histories.

57 changed files with 1100 additions and 2052 deletions

View File

@ -239,14 +239,6 @@ export function getPatientList_Export(data) {
data data
}) })
} }
export function getTumor_CDISC_Export(data) {
return requestDownload({
url: `/IVUS_OCTExport/getTumor_CDISC_Export`,
responseType: 'blob',
method: 'post',
data
})
}
export function getCommonEvaluationList_Export(data) { export function getCommonEvaluationList_Export(data) {
return requestDownload({ return requestDownload({
url: `/ExcelExport/getCommonEvaluationList_Export`, url: `/ExcelExport/getCommonEvaluationList_Export`,

View File

@ -318,4 +318,4 @@ export function getReportsChartData(param) {
method: 'post', method: 'post',
data: param data: param
}) })
} }

View File

@ -1411,9 +1411,9 @@ export function getForwardList(param) {
}) })
} }
export function getNoneDicomStudyList(subjectVisitId, sudyId = '', isFilterZip = false, visitTaskId = '', IsReading = false, isImageSegmentLabel = '') { export function getNoneDicomStudyList(subjectVisitId, sudyId = '', isFilterZip = false, visitTaskId = '', IsReading = false) {
return request({ return request({
url: `/NoneDicomStudy/getNoneDicomStudyList?isImageSegmentLabel=${isImageSegmentLabel}&subjectVisitId=${subjectVisitId}&nonedicomStudyId=${sudyId}&isFilterZip=${isFilterZip}&visitTaskId=${visitTaskId}&IsReading=${IsReading}`, url: `/NoneDicomStudy/getNoneDicomStudyList?subjectVisitId=${subjectVisitId}&nonedicomStudyId=${sudyId}&isFilterZip=${isFilterZip}&visitTaskId=${visitTaskId}&IsReading=${IsReading}`,
method: 'get' method: 'get'
}) })
} }
@ -4406,12 +4406,4 @@ export function getTrialEfficacyEvaluationStatList(data) {
method: 'post', method: 'post',
data data
}) })
}
// 靶段标注列表
export function getTrialSubjectVisitMarkList(data) {
return request({
url: `/DownloadAndUpload/getTrialSubjectVisitMarkList`,
method: 'post',
data
})
} }

View File

@ -34,11 +34,9 @@
<!--受试者--> <!--受试者-->
<el-table-column :label="$t('download:table:subjectCode')" min-width="130" prop="SubjectCode" <el-table-column :label="$t('download:table:subjectCode')" min-width="130" prop="SubjectCode"
show-overflow-tooltip /> show-overflow-tooltip />
<!--访视名称-->
<el-table-column prop="VisitName" :label="$t('download:table:VisitName')" sortable v-if="IsImageSegment" />
<!--任务名称--> <!--任务名称-->
<el-table-column :label="$t('download:table:taskName')" min-width="130" show-overflow-tooltip prop="TaskBlindName" <el-table-column :label="$t('download:table:taskName')" min-width="130" show-overflow-tooltip prop="TaskBlindName"
sortable v-else /> sortable />
<!--检查类型--> <!--检查类型-->
<el-table-column :label="$t('download:table:studyType')" min-width="130" show-overflow-tooltip prop="IsDicom" <el-table-column :label="$t('download:table:studyType')" min-width="130" show-overflow-tooltip prop="IsDicom"
sortable> sortable>
@ -77,8 +75,7 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<study-view v-if="model_cfg.visible" :model_cfg="model_cfg" :modelList="modelList" :bodyPart="bodyPart" <study-view v-if="model_cfg.visible" :model_cfg="model_cfg" :modelList="modelList" :bodyPart="bodyPart"
:subjectVisitId="modelSubjectVisitId" :IsDicom="IsDicom" :isDownload="true" :visitTaskId="modelTaskId" :IsDicom="IsDicom" :visitTaskId="modelTaskId" />
:IsImageSegment="IsImageSegment" :Criterion="Criterion" />
</el-dialog> </el-dialog>
</template> </template>
<script> <script>
@ -129,10 +126,6 @@ export default {
return {} return {}
}, },
}, },
IsImageSegment: {
type: Boolean,
default: false,
}
}, },
data() { data() {
return { return {
@ -158,14 +151,12 @@ export default {
IsReadingTaskViewInOrder: 0, // IsReadingTaskViewInOrder: 0, //
bodyPart: {}, bodyPart: {},
modelTaskId: null, modelTaskId: null,
modelSubjectVisitId: null,
} }
}, },
async mounted() { async mounted() {
this.bodyPart.Bodypart = await this.$getBodyPart(this.$route.query.trialId) this.bodyPart.Bodypart = await this.$getBodyPart(this.$route.query.trialId)
this.getList() this.getList()
this.title = `Download Images${this.SubjectCode}${this.Criterion.TrialReadingCriterionName}` this.title = `Download Images${this.SubjectCode}${this.Criterion.TrialReadingCriterionName}`
if (this.IsImageSegment) this.title = `Download Images${this.SubjectCode}`
}, },
beforeDestroy() { beforeDestroy() {
store.dispatch('trials/setUnLock', false) store.dispatch('trials/setUnLock', false)
@ -184,12 +175,6 @@ export default {
if (this.TaskId) { if (this.TaskId) {
this.searchData.VisitTaskId = this.TaskId this.searchData.VisitTaskId = this.TaskId
} }
if (this.IsImageSegment) {
this.searchData.IsImageSegmentLabel = true
}
else if (this.Criterion.CriterionType == 19 || this.Criterion.CriterionType == 20) {
this.searchData.IsImageSegmentLabel = false
}
this.loading = true this.loading = true
let res = await getSubjectImageDownloadSelectList(this.searchData) let res = await getSubjectImageDownloadSelectList(this.searchData)
this.loading = false this.loading = false
@ -272,12 +257,6 @@ export default {
data.NoneDicomStudyIdList = [...data.NoneDicomStudyIdList, ...arr] data.NoneDicomStudyIdList = [...data.NoneDicomStudyIdList, ...arr]
} }
} }
if (this.IsImageSegment) {
data.IsImageSegmentLabel = true
}
else if (this.Criterion.CriterionType == 19 || this.Criterion.CriterionType == 20) {
data.IsImageSegmentLabel = false
}
this.btnLoading = true this.btnLoading = true
let res = await getIRReadingDownloadStudyInfo(data) let res = await getIRReadingDownloadStudyInfo(data)
this.btnLoading = false this.btnLoading = false
@ -307,18 +286,13 @@ export default {
formatDownloadFile(list) { formatDownloadFile(list) {
let files = [], let files = [],
name = `${list[0].SubjectCode}_${new Date().getTime()}.zip` name = `${list[0].SubjectCode}_${new Date().getTime()}.zip`
if (this.IsImageSegment) { if (this.IsReadingTaskViewInOrder === 1) {
name = `${list[0].SubjectCode}.zip` name = `${list[0].SubjectCode}_${list[0].TaskBlindName}.zip`
} else { }
if (this.IsReadingTaskViewInOrder === 1) { if (this.IsReadingTaskViewInOrder === 0) {
name = `${list[0].SubjectCode}_${list[0].TaskBlindName}.zip` // name = `${list[0].TaskBlindName}.zip`
} name = `${list[0].SubjectCode}_${list[0].TaskBlindName}.zip`
if (this.IsReadingTaskViewInOrder === 0) {
// name = `${list[0].TaskBlindName}.zip`
name = `${list[0].SubjectCode}_${list[0].TaskBlindName}.zip`
}
} }
list.forEach((data) => { list.forEach((data) => {
if (data.StudyList && data.StudyList.length > 0) { if (data.StudyList && data.StudyList.length > 0) {
let StudyList = data.StudyList let StudyList = data.StudyList
@ -330,14 +304,7 @@ export default {
}/DICOMDIR`, }/DICOMDIR`,
url: this.OSSclientConfig.basePath + study.StudyDIRPath, url: this.OSSclientConfig.basePath + study.StudyDIRPath,
} }
if (this.IsImageSegment) { if (this.IsReadingTaskViewInOrder === 0) {
obj = {
name: `${data.SubjectCode}/${data.VisitName
}/${this.$fd('IsDicom', true)}/${study.StudyCode
}/DICOMDIR`,
url: this.OSSclientConfig.basePath + study.StudyDIRPath,
}
} else if (this.IsReadingTaskViewInOrder === 0) {
obj = { obj = {
name: `${data.TaskBlindName}/${this.$fd( name: `${data.TaskBlindName}/${this.$fd(
'IsDicom', 'IsDicom',
@ -363,15 +330,7 @@ export default {
url: this.OSSclientConfig.basePath + instance.Path, url: this.OSSclientConfig.basePath + instance.Path,
IsEncapsulated: instance.IsEncapsulated IsEncapsulated: instance.IsEncapsulated
} }
if (this.IsImageSegment) { if (this.IsReadingTaskViewInOrder === 0) {
obj = {
name: `${data.SubjectCode}/${data.VisitName
}/${this.$fd('IsDicom', true)}/${study.StudyCode
}/IMAGE/${fileName}`,
url: this.OSSclientConfig.basePath + instance.Path,
IsEncapsulated: instance.IsEncapsulated
}
} else if (this.IsReadingTaskViewInOrder === 0) {
obj = { obj = {
name: `${data.TaskBlindName}/${this.$fd( name: `${data.TaskBlindName}/${this.$fd(
'IsDicom', 'IsDicom',
@ -401,16 +360,7 @@ export default {
)}/${study.StudyCode}/${item.FileName}`, )}/${study.StudyCode}/${item.FileName}`,
url: this.OSSclientConfig.basePath + item.Path, url: this.OSSclientConfig.basePath + item.Path,
} }
if (this.IsImageSegment) { if (this.IsReadingTaskViewInOrder === 0) {
obj = {
name: `${data.SubjectCode}/${data.VisitName}/${this.$fd(
'IsDicom',
false
)}/${study.StudyCode}/${item.FileName}`,
url: this.OSSclientConfig.basePath + item.Path,
}
}
else if (this.IsReadingTaskViewInOrder === 0) {
obj = { obj = {
name: `${data.TaskBlindName}/${this.$fd( name: `${data.TaskBlindName}/${this.$fd(
'IsDicom', 'IsDicom',
@ -440,9 +390,6 @@ export default {
}, },
handleOpenDialog(item) { handleOpenDialog(item) {
this.model_cfg.title = `${item.SubjectCode || ''} > ${item.TaskBlindName}` this.model_cfg.title = `${item.SubjectCode || ''} > ${item.TaskBlindName}`
if (this.IsImageSegment) {
this.model_cfg.title = `${item.SubjectCode || ''} > ${item.VisitName}`
}
if (item.IsDicom) { if (item.IsDicom) {
this.modelList = item.DicomStudyList this.modelList = item.DicomStudyList
} else { } else {
@ -452,7 +399,6 @@ export default {
}) })
} }
this.modelTaskId = item.VisitTaskId this.modelTaskId = item.VisitTaskId
this.modelSubjectVisitId = item.SourceSubjectVisitId
this.IsDicom = item.IsDicom this.IsDicom = item.IsDicom
this.model_cfg.visible = true this.model_cfg.visible = true
}, },
@ -481,16 +427,9 @@ export default {
} }
let trialId = this.$route.query.trialId let trialId = this.$route.query.trialId
var token = getToken() var token = getToken()
let routeData = null const routeData = this.$router.resolve({
if (!this.IsImageSegment && (this.Criterion.CriterionType == 19 || this.Criterion.CriterionType == 20)) { path: `/showNoneDicoms?trialId=${trialId}&subjectVisitId=${row.SourceSubjectVisitId}&TokenKey=${token}&isReading=true`,
routeData = this.$router.resolve({ })
path: `/showNoneDicoms?trialId=${trialId}&isImageSegmentLabel=${false}&visitTaskId=${row.VisitTaskId}&subjectVisitId=${row.SourceSubjectVisitId}&TokenKey=${token}&isReading=true`,
})
} else {
routeData = this.$router.resolve({
path: `/showNoneDicoms?trialId=${trialId}&visitTaskId=${row.VisitTaskId}&subjectVisitId=${row.SourceSubjectVisitId}&TokenKey=${token}&isReading=true`,
})
}
this.open = window.open(routeData.href, '_blank') this.open = window.open(routeData.href, '_blank')
}, },
// //

View File

@ -10,11 +10,9 @@
<!--检查列表--> <!--检查列表-->
<el-table :data="list" style="width: 100%" height="300" :loading="loading"> <el-table :data="list" style="width: 100%" height="300" :loading="loading">
<!--受试者--> <!--受试者-->
<el-table-column prop="SubjectCode" :label="$t('upload:dicom:table:subjectCode')" sortable /> <el-table-column prop="SubjectCode" :label="$t('upload:dicom:table:subjectCode')" />
<!--访视名称-->
<el-table-column prop="VisitName" :label="$t('download:table:VisitName')" v-if="IsImageSegment" sortable />
<!--任务名称--> <!--任务名称-->
<el-table-column prop="TaskBlindName" :label="$t('upload:dicom:table:taskBlindName')" v-else sortable /> <el-table-column prop="TaskBlindName" :label="$t('upload:dicom:table:taskBlindName')" />
<!--原始检查数--> <!--原始检查数-->
<el-table-column prop="OrginalStudyList" :label="$t('upload:dicom:table:orginalStudyListNum')"> <el-table-column prop="OrginalStudyList" :label="$t('upload:dicom:table:orginalStudyListNum')">
<template slot-scope="scope"> <template slot-scope="scope">
@ -301,8 +299,7 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<study-view v-if="model_cfg.visible" :model_cfg="model_cfg" :IsDicom="true" :bodyPart="bodyPart" <study-view v-if="model_cfg.visible" :model_cfg="model_cfg" :IsDicom="true" :bodyPart="bodyPart"
:subjectVisitId="openSubjectVisitId" :modelList="modelList" :isUpload="openIsUpload" :modelList="modelList" :isUpload="openIsUpload" :TrialModality="TrialModality" @getList="getList" />
:visitTaskId="openVisitTaskId" :TrialModality="TrialModality" @getList="getList" />
</div> </div>
</template> </template>
<script> <script>
@ -366,17 +363,12 @@ export default {
type: Number, type: Number,
default: 0, default: 0,
}, },
IsImageSegment: {
type: Boolean,
default: false,
}
}, },
components: { components: {
'study-view': studyView, 'study-view': studyView,
}, },
data() { data() {
return { return {
loading: false,
list: [], list: [],
StudyInstanceUidList: [], StudyInstanceUidList: [],
SopInstanceUidList: [], SopInstanceUidList: [],
@ -416,8 +408,6 @@ export default {
open: null, open: null,
bodyPart: {}, bodyPart: {},
openIsUpload: false, openIsUpload: false,
openSubjectVisitId: null,
openVisitTaskId: null,
TrialModality: [], TrialModality: [],
} }
}, },
@ -449,12 +439,6 @@ export default {
if (this.TaskId) { if (this.TaskId) {
params.VisitTaskId = this.TaskId params.VisitTaskId = this.TaskId
} }
if (this.IsImageSegment) {
params.IsImageSegmentLabel = true
}
else if (this.Criterion.CriterionType == 19 || this.Criterion.CriterionType == 20) {
params.IsImageSegmentLabel = false
}
this.loading = true this.loading = true
let res = await getSubjectImageUploadList(params) let res = await getSubjectImageUploadList(params)
this.loading = false this.loading = false
@ -470,7 +454,7 @@ export default {
data.SubjectId = item.SubejctId data.SubjectId = item.SubejctId
data.VisitTaskId = item.VisitTaskId data.VisitTaskId = item.VisitTaskId
data.SourceSubjectVisitId = item.SourceSubjectVisitId data.SourceSubjectVisitId = item.SourceSubjectVisitId
// this.subjectVisitId = item.SourceSubjectVisitId this.subjectVisitId = item.SourceSubjectVisitId
this.StudyInstanceUidList.push(data) this.StudyInstanceUidList.push(data)
}) })
} }
@ -504,7 +488,6 @@ export default {
if (confirm !== 'confirm') return if (confirm !== 'confirm') return
let params = { let params = {
VisitTaskId: item.VisitTaskId, VisitTaskId: item.VisitTaskId,
SubjectVisitId: item.SourceSubjectVisitId || item.SubjectVisitId,
IsDicom: true, IsDicom: true,
} }
let res = await deleteTaskStudy(params) let res = await deleteTaskStudy(params)
@ -537,9 +520,7 @@ export default {
// //
handleOpenDialog(item, list, isUpload = false) { handleOpenDialog(item, list, isUpload = false) {
this.openIsUpload = isUpload this.openIsUpload = isUpload
this.openSubjectVisitId = item.SubjectVisitId || item.SourceSubjectVisitId this.model_cfg.title = `${item.SubjectCode || ''} > ${item.TaskBlindName}`
this.openVisitTaskId = item.VisitTaskId
this.model_cfg.title = `${item.SubjectCode || ''} > ${this.IsImageSegment ? item.VisitName : item.TaskBlindName}`
this.modelList = item[list] this.modelList = item[list]
this.model_cfg.visible = true this.model_cfg.visible = true
}, },
@ -555,9 +536,6 @@ export default {
if (this.VisitTaskId) { if (this.VisitTaskId) {
data.VisitTaskId = this.VisitTaskId data.VisitTaskId = this.VisitTaskId
} }
if (this.IsImageSegment) {
data.IsImageSegmentLabel = true
}
let res = await verifyIRStudyAllowUpload(data) let res = await verifyIRStudyAllowUpload(data)
if (res.IsSuccess) { if (res.IsSuccess) {
return res.Result return res.Result
@ -584,9 +562,8 @@ export default {
confirmMessage = null confirmMessage = null
for (let i = 0; i < checkFiles.length; i++) { for (let i = 0; i < checkFiles.length; i++) {
let item = checkFiles[i] let item = checkFiles[i]
var dicom = await parseDicom(item, ['StudyInstanceUid', 'Modality']) var dicom = await parseDicom(item, 'StudyInstanceUid')
if (!dicom.StudyInstanceUid) continue if (!dicom.StudyInstanceUid) continue
if (this.IsImageSegment && dicom.Modality !== 'IVUS') continue
let has = true, let has = true,
has2 = false, has2 = false,
has3 = false has3 = false
@ -640,8 +617,8 @@ export default {
if (this.errStudyUidList && this.errStudyUidList.length > 0) { if (this.errStudyUidList && this.errStudyUidList.length > 0) {
for (let i = 0; i < checkFiles.length; i++) { for (let i = 0; i < checkFiles.length; i++) {
let item = checkFiles[i] let item = checkFiles[i]
var dicom = await parseDicom(item, ['StudyInstanceUid', 'Modality']) var dicom = await parseDicom(item, 'StudyInstanceUid')
if (!!~this.errStudyUidList.indexOf(dicom.StudyInstanceUid) || (this.IsImageSegment && dicom.Modality !== 'IVUS')) { if (!!~this.errStudyUidList.indexOf(dicom.StudyInstanceUid)) {
this.hasOtherStudy = true this.hasOtherStudy = true
checkFiles.splice(i, 1) checkFiles.splice(i, 1)
i-- i--
@ -1081,25 +1058,10 @@ export default {
var scope = this var scope = this
return new Promise(function (resolve, reject) { return new Promise(function (resolve, reject) {
try { try {
let subjectVisitId = null;
if (scope.VisitTaskId) {
scope.StudyInstanceUidList.forEach(item => {
if (item.VisitTaskId === scope.VisitTaskId) {
subjectVisitId = item.SourceSubjectVisitId
}
})
} else {
scope.StudyInstanceUidList.forEach(item => {
if (item.StudyInstanceUid === scope.uploadQueues[index].dicomInfo.studyUid) {
subjectVisitId = item.SourceSubjectVisitId
}
})
}
if (!subjectVisitId) return reject('subjectVisitId is notFind')
preArchiveDicomStudy({ preArchiveDicomStudy({
trialId: scope.trialId, trialId: scope.trialId,
subjectId: scope.SubjectId, subjectId: scope.SubjectId,
subjectVisitId: subjectVisitId, subjectVisitId: scope.subjectVisitId,
fileSize: scope.uploadQueues[index].dicomInfo.fileSize, fileSize: scope.uploadQueues[index].dicomInfo.fileSize,
fileCount: scope.uploadQueues[index].dicomInfo.fileCount, fileCount: scope.uploadQueues[index].dicomInfo.fileCount,
IsDicomReUpload: IsDicomReUpload:
@ -1115,7 +1077,7 @@ export default {
dicomInfo.seriesNum = seriesNum dicomInfo.seriesNum = seriesNum
dicomInfo.fileNum = fileNum dicomInfo.fileNum = fileNum
dicomInfo.subjectId = scope.SubjectId dicomInfo.subjectId = scope.SubjectId
dicomInfo.subjectVisitId = subjectVisitId dicomInfo.subjectVisitId = scope.subjectVisitId
let t = setInterval(() => { let t = setInterval(() => {
dicomUploadInProgress({ dicomUploadInProgress({
trialId: scope.trialId, trialId: scope.trialId,
@ -1135,7 +1097,7 @@ export default {
let params = { let params = {
trialId: scope.trialId, trialId: scope.trialId,
subjectId: scope.SubjectId, subjectId: scope.SubjectId,
subjectVisitId: subjectVisitId, subjectVisitId: scope.subjectVisitId,
studyMonitorId: res.Result, studyMonitorId: res.Result,
failedFileCount: 0, failedFileCount: 0,
RecordPath: null, RecordPath: null,
@ -1236,16 +1198,6 @@ export default {
o.instanceUid + o.instanceUid +
params.trialId params.trialId
)}` )}`
if (scope.IsImageSegment) {
path = `/${params.trialId}/Image/${params.subjectId
}/${params.subjectVisitId}/AnnotationImage/${dicomInfo.visitTaskId
}/${scope.getGuid(
dicomInfo.studyUid +
v.seriesUid +
o.instanceUid +
params.trialId
)}`
}
if (scope.isClose) return if (scope.isClose) return
let res = await dcmUpload( let res = await dcmUpload(
{ {
@ -1279,9 +1231,6 @@ export default {
o.imageRows o.imageRows
) )
let thumbnailPath = `/${params.trialId}/Image/${params.subjectId}/${params.subjectVisitId}/${dicomInfo.visitTaskId}/${dicomInfo.studyUid}/${v.seriesUid}.jpg` let thumbnailPath = `/${params.trialId}/Image/${params.subjectId}/${params.subjectVisitId}/${dicomInfo.visitTaskId}/${dicomInfo.studyUid}/${v.seriesUid}.jpg`
if (scope.IsImageSegment) {
thumbnailPath = `/${params.trialId}/Image/${params.subjectId}/${params.subjectVisitId}/AnnotationImage/${dicomInfo.visitTaskId}/${dicomInfo.studyUid}/${v.seriesUid}.jpg`
}
let OSSclient = scope.OSSclient let OSSclient = scope.OSSclient
let seriesRes = await OSSclient.put( let seriesRes = await OSSclient.put(
thumbnailPath, thumbnailPath,
@ -1390,9 +1339,6 @@ export default {
let text = JSON.stringify(Record) let text = JSON.stringify(Record)
let logJsonBlob = scope.generateTxtFile(text) let logJsonBlob = scope.generateTxtFile(text)
let logJsonObjectName = `/${params.trialId}/Image/${params.subjectId}/${params.subjectVisitId}/${dicomInfo.visitTaskId}/${dicomInfo.studyUid}/${params.studyMonitorId}.txt` let logJsonObjectName = `/${params.trialId}/Image/${params.subjectId}/${params.subjectVisitId}/${dicomInfo.visitTaskId}/${dicomInfo.studyUid}/${params.studyMonitorId}.txt`
if (scope.IsImageSegment) {
logJsonObjectName = `/${params.trialId}/Image/${params.subjectId}/${params.subjectVisitId}/AnnotationImage/${dicomInfo.visitTaskId}/${dicomInfo.studyUid}/${params.studyMonitorId}.txt`
}
let logRes let logRes
try { try {
logRes = await scope.OSSclient.put( logRes = await scope.OSSclient.put(
@ -1421,9 +1367,6 @@ export default {
v.instanceList[0].imageRows v.instanceList[0].imageRows
) )
let thumbnailPath = `/${params.trialId}/Image/${params.subjectId}/${params.subjectVisitId}/${dicomInfo.studyUid}/${v.seriesUid}.jpg` let thumbnailPath = `/${params.trialId}/Image/${params.subjectId}/${params.subjectVisitId}/${dicomInfo.studyUid}/${v.seriesUid}.jpg`
if (scope.IsImageSegment) {
thumbnailPath = `/${params.trialId}/Image/${params.subjectId}/${params.subjectVisitId}/AnnotationImage/${dicomInfo.studyUid}/${v.seriesUid}.jpg`
}
let OSSclient = scope.OSSclient let OSSclient = scope.OSSclient
try { try {
let seriesRes = await OSSclient.put(thumbnailPath, blob) let seriesRes = await OSSclient.put(thumbnailPath, blob)
@ -1441,9 +1384,6 @@ export default {
if (scope.isClose) return false if (scope.isClose) return false
console.log(params) console.log(params)
params.VisitTaskId = dicomInfo.visitTaskId params.VisitTaskId = dicomInfo.visitTaskId
if (scope.IsImageSegment) {
params.IsImageSegmentLabel = true
}
addOrUpdateArchiveTaskStudy(params) addOrUpdateArchiveTaskStudy(params)
.then((res) => { .then((res) => {
if (dicomInfo.failedFileCount === dicomInfo.fileCount) { if (dicomInfo.failedFileCount === dicomInfo.fileCount) {
@ -1538,7 +1478,7 @@ export default {
var token = getToken() var token = getToken()
let trialId = this.$route.query.trialId let trialId = this.$route.query.trialId
const routeData = this.$router.resolve({ const routeData = this.$router.resolve({
path: `/showvisitdicoms?page=upload&trialId=${trialId}&visitTaskId=${this.IsImageSegment ? 'undefined' : row.VisitTaskId}&subjectVisitId=${row.SourceSubjectVisitId}&isReading=1&TokenKey=${token}`, path: `/showvisitdicoms?page=upload&trialId=${trialId}&visitTaskId=${row.VisitTaskId}&subjectVisitId=${row.SourceSubjectVisitId}&isReading=1&TokenKey=${token}`,
}) })
this.open = window.open(routeData.href, '_blank') this.open = window.open(routeData.href, '_blank')
}, },

View File

@ -1,17 +1,40 @@
<template> <template>
<el-dialog :visible.sync="visible" :fullscreen="true" :close-on-click-modal="false" :before-close="beforeClose" <el-dialog
:append-to-body="true" class="uploadDicomAndNonedicom"> :visible.sync="visible"
:fullscreen="true"
:close-on-click-modal="false"
:before-close="beforeClose"
:append-to-body="true"
class="uploadDicomAndNonedicom"
>
<span slot="title">{{ title }}</span> <span slot="title">{{ title }}</span>
<el-tabs type="border-card" v-model="activeName"> <el-tabs type="border-card" v-model="activeName">
<el-tab-pane :label="$t('uploadDicomAndNonedicom:label:dicom')" name="dicom"> <el-tab-pane
<dicomFile v-if="activeName === 'dicom'" :SubjectId="SubjectId" :SubjectCode="SubjectCode" :label="$t('uploadDicomAndNonedicom:label:dicom')"
:Criterion="Criterion" :TaskId="VisitTaskId" :isUpload.sync="isUpload" name="dicom"
:isReadingTaskViewInOrder="isReadingTaskViewInOrder" :IsImageSegment="IsImageSegment" /> >
<dicomFile
v-if="activeName === 'dicom'"
:SubjectId="SubjectId"
:SubjectCode="SubjectCode"
:Criterion="Criterion"
:TaskId="VisitTaskId"
:isUpload.sync="isUpload"
:isReadingTaskViewInOrder="isReadingTaskViewInOrder"
/>
</el-tab-pane> </el-tab-pane>
<el-tab-pane :label="$t('uploadDicomAndNonedicom:label:nonedicom')" name="nonedicom"> <el-tab-pane
<nonedicomFile v-if="activeName === 'nonedicom'" :SubjectId="SubjectId" :SubjectCode="SubjectCode" :label="$t('uploadDicomAndNonedicom:label:nonedicom')"
:Criterion="Criterion" :VisitTaskId="VisitTaskId" :isUpload.sync="isUpload" name="nonedicom"
:IsImageSegment="IsImageSegment" /> >
<nonedicomFile
v-if="activeName === 'nonedicom'"
:SubjectId="SubjectId"
:SubjectCode="SubjectCode"
:Criterion="Criterion"
:VisitTaskId="VisitTaskId"
:isUpload.sync="isUpload"
/>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</el-dialog> </el-dialog>
@ -51,10 +74,6 @@ export default {
type: Number, type: Number,
default: 0, default: 0,
}, },
IsImageSegment: {
type: Boolean,
default: false,
}
}, },
data() { data() {
return { return {
@ -65,7 +84,6 @@ export default {
}, },
mounted() { mounted() {
this.title = `Upload Images${this.SubjectCode}${this.Criterion.TrialReadingCriterionName}` this.title = `Upload Images${this.SubjectCode}${this.Criterion.TrialReadingCriterionName}`
if (this.IsImageSegment) this.title = `Upload Images${this.SubjectCode}`
store.dispatch('trials/setUnLock', true) store.dispatch('trials/setUnLock', true)
}, },
methods: { methods: {
@ -85,13 +103,11 @@ export default {
::v-deep.el-tabs--left .el-tabs__header.is-left { ::v-deep.el-tabs--left .el-tabs__header.is-left {
margin-right: 0; margin-right: 0;
} }
.uploadDicomAndNonedicom { .uploadDicomAndNonedicom {
::v-deep.el-tabs--border-card>.el-tabs__header .el-tabs__item { ::v-deep.el-tabs--border-card > .el-tabs__header .el-tabs__item {
color: #909399; color: #909399;
} }
::v-deep.el-tabs--border-card > .el-tabs__header .el-tabs__item.is-active {
::v-deep.el-tabs--border-card>.el-tabs__header .el-tabs__item.is-active {
color: #428bca; color: #428bca;
background-color: #fff; background-color: #fff;
border-right-color: #dcdfe6; border-right-color: #dcdfe6;

View File

@ -4,27 +4,21 @@
<span>{{ $t('upload:nonedicom:title') }}</span> <span>{{ $t('upload:nonedicom:title') }}</span>
<div class="tip"> <div class="tip">
<i class="el-icon-warning-outline"></i> <i class="el-icon-warning-outline"></i>
<div v-html="$t('upload:nonedicom:tip:message').replace( <div v-html="$t('upload:nonedicom:tip:message')"></div>
'xxx',
relationInfo.ImageFormatList.join('、')
)"></div>
</div> </div>
</div> </div>
<!--检查列表 @sort-change="handleSortByColumn"--> <!--检查列表-->
<el-table :data="list" style="width: 100%" v-adaptive="{ bottomOffset: 60 }" :loading="loading" <el-table :data="list" style="width: 100%" v-adaptive="{ bottomOffset: 60 }" :loading="loading"
:default-sort="{ prop: 'TaskBlindName', order: 'descending' }"> @sort-change="handleSortByColumn" :default-sort="{ prop: 'TaskBlindName', order: 'descending' }">
<!--受试者 sortable="custom"--> <!--受试者-->
<el-table-column prop="SubjectCode" :label="$t('upload:nonedicom:table:subject')" /> <el-table-column prop="SubjectCode" :label="$t('upload:nonedicom:table:subject')" />
<!--访视名称-->
<el-table-column prop="VisitName" :label="$t('upload:nonedicom:table:VisitName')" sortable
v-if="IsImageSegment" />
<!--任务名称--> <!--任务名称-->
<el-table-column prop="TaskBlindName" :label="$t('upload:nonedicom:table:taskName')" sortable v-else /> <el-table-column prop="TaskBlindName" :label="$t('upload:nonedicom:table:taskName')" sortable="custom" />
<!--检查类型--> <!--检查类型-->
<el-table-column prop="Modality" :label="$t('upload:nonedicom:table:molityType')" sortable> <el-table-column prop="Modality" :label="$t('upload:nonedicom:table:molityType')" sortable="custom">
</el-table-column> </el-table-column>
<!--检查部位--> <!--检查部位-->
<el-table-column prop="BodyPart" :label="$t('upload:nonedicom:table:bodyPart')" sortable> <el-table-column prop="BodyPart" :label="$t('upload:nonedicom:table:bodyPart')" sortable="custom">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ getBodyPart(scope.row.BodyPart, scope.row.BodyPartForEditOther) }}</span> <span>{{ getBodyPart(scope.row.BodyPart, scope.row.BodyPartForEditOther) }}</span>
</template> </template>
@ -134,10 +128,7 @@
<!-- 多文件上传 --> <!-- 多文件上传 -->
<form id="inputForm" ref="uploadForm"> <form id="inputForm" ref="uploadForm">
<el-divider content-position="left">{{ <el-divider content-position="left">{{
$t('trials:uploadNonDicoms:label:fileType').replace( $t('trials:uploadNonDicoms:label:fileType')
'xxx',
relationInfo.ImageFormatList.join('、')
)
}}</el-divider> }}</el-divider>
<div class="form-group"> <div class="form-group">
<div class="upload" style="margin-right: 10px"> <div class="upload" style="margin-right: 10px">
@ -228,8 +219,8 @@ let defaultSearchData = () => {
SubjectId: null, SubjectId: null,
TrialReadingCriterionId: null, TrialReadingCriterionId: null,
SubjectCode: null, SubjectCode: null,
// Asc: false, Asc: false,
// SortField: 'TaskBlindName', SortField: 'TaskBlindName',
} }
} }
export default { export default {
@ -257,10 +248,6 @@ export default {
type: Boolean, type: Boolean,
default: false, default: false,
}, },
IsImageSegment: {
type: Boolean,
default: false,
},
}, },
data() { data() {
return { return {
@ -279,10 +266,7 @@ export default {
currentRow: {}, currentRow: {},
studyMonitorId: null, studyMonitorId: null,
open: null, open: null,
BodyPart: {}, BodyPart: {}
relationInfo: {
ImageFormatList: []
}
} }
}, },
watch: { watch: {
@ -327,22 +311,11 @@ export default {
if (this.VisitTaskId) { if (this.VisitTaskId) {
this.searchData.VisitTaskId = this.VisitTaskId this.searchData.VisitTaskId = this.VisitTaskId
} }
if (this.IsImageSegment) {
this.searchData.IsImageSegmentLabel = true
}
else if (this.Criterion.CriterionType == 19 || this.Criterion.CriterionType == 20) {
this.searchData.IsImageSegmentLabel = false
}
this.loading = true this.loading = true
let res = await getIRUploadTaskNoneDicomStudyList(this.searchData) let res = await getIRUploadTaskNoneDicomStudyList(this.searchData)
this.loading = false this.loading = false
if (res.IsSuccess) { if (res.IsSuccess) {
this.list = res.Result this.list = res.Result
this.relationInfo = res.OtherInfo
this.faccept = []
this.relationInfo.ImageFormatList.forEach((item) => {
this.faccept.push(`.${item}`)
})
} }
} catch (err) { } catch (err) {
this.loading = false this.loading = false
@ -506,16 +479,16 @@ export default {
} }
}, },
// //
// handleSortByColumn(column) { handleSortByColumn(column) {
// if (column.order === 'ascending') { if (column.order === 'ascending') {
// this.searchData.Asc = true this.searchData.Asc = true
// } else { } else {
// this.searchData.Asc = false this.searchData.Asc = false
// } }
// this.searchData.SortField = column.prop this.searchData.SortField = column.prop
// this.searchData.PageIndex = 1 this.searchData.PageIndex = 1
// this.getList() this.getList()
// }, },
// //
handleSelectionChange(selection) { handleSelectionChange(selection) {
this.selectArr = selection this.selectArr = selection
@ -561,15 +534,9 @@ export default {
let file = this.fileList.filter((item) => item.id === arr[index].id)[0] let file = this.fileList.filter((item) => item.id === arr[index].id)[0]
file.status = 1 file.status = 1
let path = `/${this.$route.query.trialId}/TaskImage/${this.currentRow.SubjectId let path = `/${this.$route.query.trialId}/TaskImage/${this.currentRow.SubjectId
}/${this.currentRow.SourceSubjectVisitId}/${this.currentRow.VisitTaskId}/${this.$guid()}${file.name }/${this.currentRow.VisitTaskId}/${this.$guid()}${file.name
.substring(file.name.lastIndexOf('.')) .substring(file.name.lastIndexOf('.'))
.toLocaleLowerCase()}` .toLocaleLowerCase()}`
if (this.IsImageSegment) {
path = `/${this.$route.query.trialId}/TaskImage/${this.currentRow.SubjectId
}/${this.currentRow.SourceSubjectVisitId}/AnnotationImage/${this.currentRow.VisitTaskId}/${this.$guid()}${file.name
.substring(file.name.lastIndexOf('.'))
.toLocaleLowerCase()}`
}
file.curPath = path file.curPath = path
const fileData = await this.fileToBlob(file.file) const fileData = await this.fileToBlob(file.file)
let res = await this.fileToOss(path, fileData, file) let res = await this.fileToOss(path, fileData, file)
@ -653,9 +620,6 @@ export default {
params.RecordPath = RecordPath.path params.RecordPath = RecordPath.path
params.FailedFileCount = RecordPath.Record.Failed.length params.FailedFileCount = RecordPath.Record.Failed.length
} }
if (this.IsImageSegment) {
params.IsImageSegmentLabel = true
}
uploadNoneDicomFile(params) uploadNoneDicomFile(params)
.then((res) => { .then((res) => {
if (!isReLoad) { if (!isReLoad) {
@ -694,10 +658,7 @@ export default {
}) })
let text = JSON.stringify(Record) let text = JSON.stringify(Record)
let logJsonBlob = this.generateTxtFile(text) let logJsonBlob = this.generateTxtFile(text)
let logJsonObjectName = `/${this.$route.query.trialId}/TaskImage/${this.currentRow.SubjectId}/${this.currentRow.SourceSubjectVisitId}/${this.currentRow.VisitTaskId}/${this.studyMonitorId}.txt` let logJsonObjectName = `/${this.$route.query.trialId}/TaskImage/${this.currentRow.SubjectId}/${this.currentRow.VisitTaskId}/${this.studyMonitorId}.txt`
if (this.IsImageSegment) {
logJsonObjectName = `/${this.$route.query.trialId}/TaskImage/${this.currentRow.SubjectId}/${this.currentRow.SourceSubjectVisitId}/AnnotationImage/${this.currentRow.VisitTaskId}/${this.studyMonitorId}.txt`
}
let logRes let logRes
try { try {
logRes = await this.OSSclient.put(logJsonObjectName, logJsonBlob) logRes = await this.OSSclient.put(logJsonObjectName, logJsonBlob)

View File

@ -2,9 +2,6 @@
<div v-if="model_cfg.visible"> <div v-if="model_cfg.visible">
<base-model :config="model_cfg"> <base-model :config="model_cfg">
<div slot="dialog-body"> <div slot="dialog-body">
<el-button v-if="!isUpload && !isDownload" type='primary' size="small" style="float:right;" @click="preview">
{{ $t("common:button:preview") }}
</el-button>
<el-table :data="modelList" style="width: 100%" height="300"> <el-table :data="modelList" style="width: 100%" height="300">
<!--检查编号--> <!--检查编号-->
<el-table-column prop="StudyCode" :label="$t('trials:uploadImage:table:StudyCode')" /> <el-table-column prop="StudyCode" :label="$t('trials:uploadImage:table:StudyCode')" />
@ -42,13 +39,13 @@
<!--检查时间--> <!--检查时间-->
<el-table-column prop="ImageDate" :label="$t('trials:uploadImage:table:StudyTime')" v-if="!IsDicom" <el-table-column prop="ImageDate" :label="$t('trials:uploadImage:table:StudyTime')" v-if="!IsDicom"
min-width="130" /> min-width="130" />
<el-table-column :label="$t('common:action:action')" fixed="right" width="80" v-if="isUpload"> <el-table-column :label="$t('common:action:action')" fixed="right" width="80">
<template slot-scope="scope"> <template slot-scope="scope">
<!--预览---> <!--预览--->
<!-- <el-button circle icon="el-icon-view" :title="$t('trials:uploadImage:button:preview')" v-if="!isUpload" <el-button circle icon="el-icon-view" :title="$t('trials:uploadImage:button:preview')" v-if="!isUpload"
@click.stop="preview(scope.row)" /> --> @click.stop="preview(scope.row)" />
<!--编辑---> <!--编辑--->
<el-button circle icon="el-icon-edit-outline" :title="$t('trials:uploadImage:button:edit')" <el-button circle icon="el-icon-edit-outline" :title="$t('trials:uploadImage:button:edit')" v-else
@click.stop="openEdit(scope.row)" /> @click.stop="openEdit(scope.row)" />
</template> </template>
</el-table-column> </el-table-column>
@ -112,10 +109,6 @@ export default {
visitTaskId: { visitTaskId: {
type: String, type: String,
}, },
subjectVisitId: {
type: String,
default: ''
},
IsDicom: { IsDicom: {
required: true, required: true,
type: Boolean, type: Boolean,
@ -125,20 +118,6 @@ export default {
type: Boolean, type: Boolean,
default: false, default: false,
}, },
IsImageSegment: {
type: Boolean,
default: false,
},
isDownload: {
type: Boolean,
default: false,
},
Criterion: {
type: Object,
default: () => {
return {}
},
},
}, },
components: { components: {
'base-model': baseModel, 'base-model': baseModel,
@ -174,23 +153,15 @@ export default {
let routeData = null let routeData = null
if (this.IsDicom) { if (this.IsDicom) {
var token = getToken() var token = getToken()
let trialId = this.$route.query.trialId
routeData = this.$router.resolve({ routeData = this.$router.resolve({
path: `/showvisitdicoms?trialId=${trialId}&visitTaskId=${this.visitTaskId}&subjectVisitId=${this.subjectVisitId}&isReading=1&TokenKey=${token}`, path: `/showdicom?studyId=${row.Id}&TokenKey=${token}&type=Study&visitTaskId=${this.visitTaskId}&isReading=true`,
}) })
} else { } else {
let trialId = this.$route.query.trialId let trialId = this.$route.query.trialId
var token = getToken() var token = getToken()
if (!this.IsImageSegment && (this.Criterion.CriterionType == 19 || this.Criterion.CriterionType == 20)) { routeData = this.$router.resolve({
routeData = this.$router.resolve({ path: `/showNoneDicoms?trialId=${trialId}&subjectVisitId=${row.SourceSubjectVisitId}&studyId=${row.Id}&TokenKey=${token}&isReading=true`,
path: `/showNoneDicoms?trialId=${trialId}&isImageSegmentLabel=${false}&visitTaskId=${this.visitTaskId}&subjectVisitId=${this.subjectVisitId}&TokenKey=${token}&isReading=true`, })
})
} else {
routeData = this.$router.resolve({
path: `/showNoneDicoms?trialId=${trialId}&visitTaskId=${this.visitTaskId}&subjectVisitId=${this.subjectVisitId}&TokenKey=${token}&isReading=true`,
})
}
} }
window.open(routeData.href, '_blank') window.open(routeData.href, '_blank')
}, },

View File

@ -40,13 +40,6 @@ function getQuestions(questions) {
const criterionType = parseInt(localStorage.getItem('CriterionType')) const criterionType = parseInt(localStorage.getItem('CriterionType'))
questions.forEach(item => { questions.forEach(item => {
if ((item.Type === 'table' || item.Type === 'basicTable') && item.TableQuestions && item.TableQuestions.Answers.length > 0) { if ((item.Type === 'table' || item.Type === 'basicTable') && item.TableQuestions && item.TableQuestions.Answers.length > 0) {
item.TableQuestions.Questions.forEach(question => {
if (question.Type === 'select' && question.OptionTypeEnum === 1) {
item.TableQuestions.Answers.forEach((answer) => {
answer[question.Id] = answer[question.Id] ? JSON.parse(answer[question.Id]) : []
})
}
})
item.TableQuestions.Answers.forEach(answerObj => { item.TableQuestions.Answers.forEach(answerObj => {
answerObj.isDicomReading = answerObj.IsDicomReading === 'True' answerObj.isDicomReading = answerObj.IsDicomReading === 'True'

View File

@ -1,346 +0,0 @@
class FileNameSorter {
/**
* 判断是否为纯数字字符串
* @param {any} value - 要检查的值
* @returns {boolean} 是否为纯数字
*/
static isPureNumber(value) {
if (typeof value !== 'string') return false;
return /^\d+$/.test(value);
}
/**
* 获取排序键值
* @param {any} item - 要排序的项目
* @returns {Array} 排序键值数组
*/
static getSortKey(item) {
const str = String(item);
const isNumber = this.isPureNumber(str);
// 排序优先级: [类型优先级, 数字值/字符串值]
if (isNumber) {
// 纯数字: 类型优先级为0, 使用数字值排序
return [0, BigInt(str)];
} else {
// 非纯数字: 类型优先级为1, 使用字符串排序
return [1, str.toLowerCase()];
}
}
/**
* 文件名排序
* @param {Array} arr - 要排序的数组
* @param {Object} options - 排序选项
* @returns {Array} 排序后的数组
*/
static sortFileNames(arr, options = {}) {
if (!Array.isArray(arr)) {
throw new TypeError('输入必须是一个数组');
}
const {
direction = 'asc', // 'asc' 升序, 'desc' 降序
caseSensitive = false, // 是否区分大小写
trim = true, // 是否去除前后空格
key = null
} = options;
// 创建数组的副本
const result = [...arr];
return result.sort((a, b) => {
let aStr = key ? String(a[key]).split(".")[0] : String(a);
let bStr = key ? String(b[key]).split(".")[0] : String(b);
// 处理空格
if (trim) {
aStr = aStr.trim();
bStr = bStr.trim();
}
// 处理大小写
if (!caseSensitive) {
aStr = aStr.toLowerCase();
bStr = bStr.toLowerCase();
}
// 获取排序键值
const aKey = this.getSortKey(aStr);
const bKey = this.getSortKey(bStr);
// 比较类型优先级
if (aKey[0] !== bKey[0]) {
// 纯数字(0) < 非纯数字(1)
return direction === 'asc' ? aKey[0] - bKey[0] : bKey[0] - aKey[0];
}
// 相同类型下的比较
if (aKey[0] === 0) {
// 都是纯数字,按数字大小比较
if (aKey[1] < bKey[1]) return direction === 'asc' ? -1 : 1;
if (aKey[1] > bKey[1]) return direction === 'asc' ? 1 : -1;
return 0;
} else {
// 都是非纯数字,按字符串比较
if (aStr < bStr) return direction === 'asc' ? -1 : 1;
if (aStr > bStr) return direction === 'asc' ? 1 : -1;
return 0;
}
});
}
/**
* 自然排序 - 处理文件名中的数字序列
* 例如: file1, file2, file10
* @param {Array} arr - 要排序的数组
* @param {Object} options - 排序选项
* @returns {Array} 排序后的数组
*/
static naturalSort(arr, options = {}) {
const {
direction = 'asc',
caseSensitive = false
} = options;
return [...arr].sort((a, b) => {
const aStr = String(a);
const bStr = String(b);
// 检查是否都是纯数字
const aIsPureNumber = this.isPureNumber(aStr);
const bIsPureNumber = this.isPureNumber(bStr);
// 如果一个纯数字,一个非纯数字
if (aIsPureNumber && !bIsPureNumber) {
return direction === 'asc' ? -1 : 1;
}
if (!aIsPureNumber && bIsPureNumber) {
return direction === 'asc' ? 1 : -1;
}
// 都是纯数字,按数字比较
if (aIsPureNumber && bIsPureNumber) {
const aNum = BigInt(aStr);
const bNum = BigInt(bStr);
if (aNum < bNum) return direction === 'asc' ? -1 : 1;
if (aNum > bNum) return direction === 'asc' ? 1 : -1;
return 0;
}
// 都是非纯数字,使用自然排序算法
return this.naturalCompare(aStr, bStr, direction, caseSensitive);
});
}
/**
* 自然比较算法
* @private
*/
static naturalCompare(a, b, direction = 'asc', caseSensitive = false) {
let aStr = caseSensitive ? a : a.toLowerCase();
let bStr = caseSensitive ? b : b.toLowerCase();
const regex = /(\d+|\D+)/g;
const aParts = aStr.match(regex) || [];
const bParts = bStr.match(regex) || [];
const maxLength = Math.max(aParts.length, bParts.length);
for (let i = 0; i < maxLength; i++) {
const aPart = aParts[i] || '';
const bPart = bParts[i] || '';
const aIsNumber = /^\d+$/.test(aPart);
const bIsNumber = /^\d+$/.test(bPart);
// 如果都是数字,按数字比较
if (aIsNumber && bIsNumber) {
const aNum = BigInt(aPart);
const bNum = BigInt(bPart);
if (aNum < bNum) return direction === 'asc' ? -1 : 1;
if (aNum > bNum) return direction === 'asc' ? 1 : -1;
continue;
}
// 都是文本,按字符串比较
if (aPart < bPart) return direction === 'asc' ? -1 : 1;
if (aPart > bPart) return direction === 'asc' ? 1 : -1;
}
return 0;
}
/**
* 分组排序 - 将纯数字和非纯数字分开显示
* @param {Array} arr - 要排序的数组
* @param {Object} options - 排序选项
* @returns {Array} 排序后的数组
*/
static groupSort(arr, options = {}) {
const {
direction = 'asc',
groupOrder = 'numbers-first' // 'numbers-first' 或 'names-first'
} = options;
// 分组
const numbers = [];
const names = [];
arr.forEach(item => {
const str = String(item);
if (this.isPureNumber(str)) {
numbers.push(item);
} else {
names.push(item);
}
});
// 对各组排序
const sortedNumbers = this.sortFileNames(numbers, { direction });
const sortedNames = this.sortFileNames(names, { direction });
// 按指定顺序合并
if (groupOrder === 'numbers-first') {
return [...sortedNumbers, ...sortedNames];
} else {
return [...sortedNames, ...sortedNumbers];
}
}
/**
* 文件扩展名排序 - 先按扩展名排序再按文件名排序
* @param {Array} arr - 要排序的数组
* @param {Object} options - 排序选项
* @returns {Array} 排序后的数组
*/
static sortByExtension(arr, options = {}) {
const {
direction = 'asc',
extensionsFirst = false // 扩展名优先还是文件名优先
} = options;
return [...arr].sort((a, b) => {
const aStr = String(a);
const bStr = String(b);
// 分离文件名和扩展名
const getFileParts = (str) => {
const lastDotIndex = str.lastIndexOf('.');
if (lastDotIndex > 0) {
return {
name: str.substring(0, lastDotIndex),
ext: str.substring(lastDotIndex + 1)
};
}
return { name: str, ext: '' };
};
const aParts = getFileParts(aStr);
const bParts = getFileParts(bStr);
let compareResult;
if (extensionsFirst) {
// 先比较扩展名
compareResult = this.sortFileNames([aParts.ext, bParts.ext], { direction })[0] === aParts.ext ? -1 : 1;
if (compareResult !== 0) return compareResult;
// 扩展名相同,再比较文件名
return this.sortFileNames([aParts.name, bParts.name], { direction })[0] === aParts.name ? -1 : 1;
} else {
// 先比较文件名
compareResult = this.sortFileNames([aParts.name, bParts.name], { direction })[0] === aParts.name ? -1 : 1;
if (compareResult !== 0) return compareResult;
// 文件名相同,再比较扩展名
return this.sortFileNames([aParts.ext, bParts.ext], { direction })[0] === aParts.ext ? -1 : 1;
}
});
}
/**
* 测试和演示函数
*/
static demonstrate() {
const testData = [
'100',
'23',
'1',
'003',
'file.txt',
'10',
'5',
'alpha',
'beta',
'gamma',
'00100',
'zebra',
'apple',
'banana',
'123',
'file10.txt',
'file2.txt',
'File1.txt',
'file20.txt',
'image.jpg',
'document.pdf',
'data.xlsx'
];
console.log('=== 文件名排序演示 ===\n');
console.log('原始数据:');
console.log(testData);
console.log('\n1. 基本排序 (纯数字 < 非纯数字):');
const basicSorted = this.sortFileNames(testData);
console.log(basicSorted);
console.log('\n2. 自然排序 (智能数字识别):');
const naturalSorted = this.naturalSort(testData);
console.log(naturalSorted);
console.log('\n3. 分组排序 (数字组和文件组):');
const groupSorted = this.groupSort(testData);
console.log(groupSorted);
console.log('\n4. 降序排序:');
const descSorted = this.sortFileNames(testData, { direction: 'desc' });
console.log(descSorted);
console.log('\n5. 按扩展名排序:');
const extSorted = this.sortByExtension(testData);
console.log(extSorted);
console.log('\n6. 大小写敏感排序:');
const caseSensitiveSorted = this.sortFileNames(testData, { caseSensitive: true });
console.log(caseSensitiveSorted);
// 验证排序规则
console.log('\n=== 排序规则验证 ===');
const validationData = ['100', '23', 'file.txt', '1', 'alpha', '003', '10'];
console.log('验证数据:', validationData);
console.log('排序结果:', this.sortFileNames(validationData));
console.log('规则验证:');
console.log(' - 纯数字: 1, 3(003), 10, 23, 100 (按数字大小)');
console.log(' - 非纯数字: alpha, file.txt (按字母顺序)');
console.log(' - 非纯数字 > 纯数字');
return {
basic: basicSorted,
natural: naturalSorted,
group: groupSorted,
descending: descSorted,
byExtension: extSorted,
caseSensitive: caseSensitiveSorted
};
}
}
if (typeof module !== 'undefined' && module.exports) {
module.exports = FileNameSorter;
} else if (typeof window !== 'undefined') {
window.FileNameSorter = FileNameSorter;
}

View File

@ -8508,8 +8508,6 @@
var binaryStream; var binaryStream;
var _writeOptions$fragmen = writeOptions.fragmentMultiframe, var _writeOptions$fragmen = writeOptions.fragmentMultiframe,
fragmentMultiframe = _writeOptions$fragmen === void 0 ? true : _writeOptions$fragmen; fragmentMultiframe = _writeOptions$fragmen === void 0 ? true : _writeOptions$fragmen;
var _writeOptions$offset = writeOptions.startOffset,
isNeedStartOffset = _writeOptions$offset === void 0 ? true : _writeOptions$offset;
value = value === null || value === undefined ? [] : value; value = value === null || value === undefined ? [] : value;
if (isEncapsulated) { if (isEncapsulated) {
@ -8537,9 +8535,7 @@
for (i = 0; i < frames; i++) { for (i = 0; i < frames; i++) {
var _needsPadding = Boolean(value[i].byteLength & 1); var _needsPadding = Boolean(value[i].byteLength & 1);
if (isNeedStartOffset) { startOffset.push(binaryStream.size);
startOffset.push(binaryStream.size);
}
var frameBuffer = value[i], var frameBuffer = value[i],
frameStream = new ReadBufferStream(frameBuffer); frameStream = new ReadBufferStream(frameBuffer);
var fragmentsLength = 1; var fragmentsLength = 1;

View File

@ -112,7 +112,7 @@ function downloadFileToUrl(url) {
xhr.onload = function () { xhr.onload = function () {
const arraybuffer = xhr.response; const arraybuffer = xhr.response;
let dataset = dcmjs.data.DicomMessage.readFile(arraybuffer) let dataset = dcmjs.data.DicomMessage.readFile(arraybuffer)
let newDicomFile = dataset.write({ fragmentMultiframe: false, startOffset: false }) // fragmentMultiframe 原始数据是否进行分割 let newDicomFile = dataset.write({ fragmentMultiframe: false }) // fragmentMultiframe 原始数据是否进行分割
const bufferArray = new Uint8Array(newDicomFile) const bufferArray = new Uint8Array(newDicomFile)
const blob = new Blob([bufferArray], { type: 'application/octet-stream' }) const blob = new Blob([bufferArray], { type: 'application/octet-stream' })
const href = URL.createObjectURL(blob) const href = URL.createObjectURL(blob)

View File

@ -364,14 +364,11 @@ export default {
try { try {
let res = null let res = null
if (this.page === 'upload') { if (this.page === 'upload') {
res = await getTaskUploadedDicomStudyList({ visitTaskId: this.visitTaskId !== 'undefined' ? this.visitTaskId : null, subjectVisitId: this.subjectVisitId }) res = await getTaskUploadedDicomStudyList({ visitTaskId: this.visitTaskId })
} } else if (this.page === 'download') {
// else if (this.page === 'download') { res = await getVisitStudyList(this.trialId, this.subjectVisitId, this.isReading, this.visitTaskId)
// res = await getVisitStudyList(this.trialId, this.subjectVisitId, this.isReading, this.visitTaskId) } else {
// } res = await getVisitStudyList(this.trialId, this.subjectVisitId, this.isReading)
else {
// res = await getVisitStudyList(this.trialId, this.subjectVisitId, this.isReading)
res = await getVisitStudyList(this.trialId, this.subjectVisitId, this.isReading, this.visitTaskId !== 'undefined' ? this.visitTaskId : null)
} }
if (res.IsSuccess) { if (res.IsSuccess) {
res.Result.forEach((study, studyIndex) => { res.Result.forEach((study, studyIndex) => {

View File

@ -237,17 +237,6 @@
</el-form-item> </el-form-item>
<!-- 私有属性 --> <!-- 私有属性 -->
<el-divider content-position="left">{{ $t('trials:readingUnit:title:privateProperties') }}</el-divider> <el-divider content-position="left">{{ $t('trials:readingUnit:title:privateProperties') }}</el-divider>
<!-- 下拉框单选或多选 -->
<el-form-item v-if="form.Type === 'select'" :label="$t('trials:readingUnit:qsList:title:MultipleSelect')"
prop="OptionTypeEnum" :rules="[
{ required: true, message: this.$t('common:ruleMessage:specify') }
]">
<el-radio-group v-model="form.OptionTypeEnum">
<el-radio v-for="item of $d.OptionType" :key="item.id" :label="item.value">
{{ item.label }}
</el-radio>
</el-radio-group>
</el-form-item>
<!-- 选项类型 --> <!-- 选项类型 -->
<el-form-item v-if=" <el-form-item v-if="
form.Type === 'select' || form.Type === 'select' ||
@ -559,8 +548,7 @@ export default {
FileType: [], FileType: [],
ClassifyQuestionId: null, ClassifyQuestionId: null,
ClassifyAlgorithms: null, ClassifyAlgorithms: null,
ShowChartTypeEnum: 0, ShowChartTypeEnum: 0
OptionTypeEnum: 0
}, },
rules: { rules: {
Type: [{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }], Type: [{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }],
@ -891,7 +879,6 @@ export default {
data.FileType = [] data.FileType = []
data.ClassifyQuestionId = null data.ClassifyQuestionId = null
data.ClassifyAlgorithms = null data.ClassifyAlgorithms = null
data.OptionTypeEnum = 0
}, },
isShowQuestionChange(val, form) { isShowQuestionChange(val, form) {

View File

@ -154,17 +154,6 @@
</el-form-item> </el-form-item>
<!-- 私有属性 --> <!-- 私有属性 -->
<el-divider content-position="left">{{ $t('trials:readingUnit:title:privateProperties') }}</el-divider> <el-divider content-position="left">{{ $t('trials:readingUnit:title:privateProperties') }}</el-divider>
<!-- 下拉框单选或多选 -->
<el-form-item v-if="form.Type === 'select'" :label="$t('trials:readingUnit:qsList:title:MultipleSelect')"
prop="OptionTypeEnum" :rules="[
{ required: true, message: this.$t('common:ruleMessage:specify') }
]">
<el-radio-group v-model="form.OptionTypeEnum">
<el-radio v-for="item of $d.OptionType" :key="item.id" :label="item.value">
{{ item.label }}
</el-radio>
</el-radio-group>
</el-form-item>
<!-- 选项类型 --> <!-- 选项类型 -->
<el-form-item v-if="form.Type === 'select' || form.Type === 'radio' || form.Type === 'input'" <el-form-item v-if="form.Type === 'select' || form.Type === 'radio' || form.Type === 'input'"
:label="$t('trials:readingUnit:label:QuestionGenre')" prop="TableQuestionType" :rules="[ :label="$t('trials:readingUnit:label:QuestionGenre')" prop="TableQuestionType" :rules="[
@ -449,8 +438,7 @@ export default {
// ExportIdentification: 0, // ExportIdentification: 0,
ExportResult: [], ExportResult: [],
DefaultValue: null, DefaultValue: null,
ShowChartTypeEnum: 0, ShowChartTypeEnum: 0
OptionTypeEnum: 0
// IsEnable: true // IsEnable: true
}, },
rules: { rules: {
@ -778,7 +766,6 @@ export default {
form.ExportResult = [] form.ExportResult = []
form.DefaultValue = null form.DefaultValue = null
form.ShowChartTypeEnum = 0 form.ShowChartTypeEnum = 0
form.OptionTypeEnum = 0
}, },
close() { close() {
this.$emit('close') this.$emit('close')

View File

@ -2,8 +2,13 @@
<template> <template>
<div style="width: 100%; height: 100%"> <div style="width: 100%; height: 100%">
<transition name="viewer-fade"> <transition name="viewer-fade">
<div v-show="urlList.length > 0" ref="image-viewer__wrapper" tabindex="-1" class="image-viewer__wrapper" <div
:style="{ 'z-index': 5 }"> v-show="urlList.length > 0"
ref="image-viewer__wrapper"
tabindex="-1"
class="image-viewer__wrapper"
:style="{ 'z-index': 5 }"
>
<span class="image-viewer_desc"> <span class="image-viewer_desc">
<!-- <span v-if="studyCode">NST00006</span> <!-- <span v-if="studyCode">NST00006</span>
<span v-if="modality">CT</span> <span v-if="modality">CT</span>
@ -16,12 +21,18 @@
</span> </span>
<!-- Arrow --> <!-- Arrow -->
<template v-if="!isSingle"> <template v-if="!isSingle">
<span class="image-viewer__btn image-viewer__prev" :class="{ 'is-disabled': !infinite && isFirst }" <span
@click="prev"> class="image-viewer__btn image-viewer__prev"
:class="{ 'is-disabled': !infinite && isFirst }"
@click="prev"
>
<i class="el-icon-arrow-left" /> <i class="el-icon-arrow-left" />
</span> </span>
<span class="el-image-viewer__btn el-image-viewer__next" :class="{ 'is-disabled': !infinite && isLast }" <span
@click="next"> class="el-image-viewer__btn el-image-viewer__next"
:class="{ 'is-disabled': !infinite && isLast }"
@click="next"
>
<i class="el-icon-arrow-right" /> <i class="el-icon-arrow-right" />
</span> </span>
</template> </template>
@ -33,19 +44,36 @@
<i class="el-image-viewer__actions__divider" /> <i class="el-image-viewer__actions__divider" />
<i class="el-icon-c-scale-to-original" @click="toggleMode" /> <i class="el-icon-c-scale-to-original" @click="toggleMode" />
<i class="el-image-viewer__actions__divider" /> <i class="el-image-viewer__actions__divider" />
<i class="el-icon-refresh-left" @click="handleActions('anticlocelise')" /> <i
<i class="el-icon-refresh-right" @click="handleActions('clocelise')" /> class="el-icon-refresh-left"
@click="handleActions('anticlocelise')"
/>
<i
class="el-icon-refresh-right"
@click="handleActions('clocelise')"
/>
</div> </div>
</div> </div>
<!-- 图片 --> <!-- 图片 -->
<div id="image-viewer__canvas" class="image-viewer__canvas"> <div id="image-viewer__canvas" class="image-viewer__canvas">
<template v-for="(item, i) in urlList"> <template v-for="(item, i) in urlList">
<img v-if="!~item.FileType.indexOf('pdf')" v-show="i === index" :ref="`img${i}`" :key="item.Id" <img
crossorigin="anonymous" :src="item.FileType && item.FileType.indexOf('zip') >= 0 v-if="!~item.FileType.indexOf('pdf')"
? zipImg v-show="i === index"
: `${OSSclientConfig.basePath}${item.Path}` :ref="`img${i}`"
" :style="imgStyle" style="max-width: 100%; max-height: 100%" @load="handleImgLoad" :key="item.Id"
@error="handleImgError" @mousedown="handleMouseDown" /> crossorigin="anonymous"
:src="
item.FileType && item.FileType.indexOf('zip') >= 0
? zipImg
: `${OSSclientConfig.basePath}${item.Path}`
"
:style="imgStyle"
style="max-width: 100%; max-height: 100%"
@load="handleImgLoad"
@error="handleImgError"
@mousedown="handleMouseDown"
/>
</template> </template>
</div> </div>
</div> </div>
@ -80,11 +108,11 @@ export default {
}, },
onSwitch: { onSwitch: {
type: Function, type: Function,
default: () => { }, default: () => {},
}, },
onClose: { onClose: {
type: Function, type: Function,
default: () => { }, default: () => {},
}, },
initialIndex: { initialIndex: {
type: Number, type: Number,
@ -144,9 +172,7 @@ export default {
immediate: true, immediate: true,
handler(val) { handler(val) {
this.reset() this.reset()
if (val >= 0) { this.onSwitch(val)
this.onSwitch(this.urlList[val].Id)
}
}, },
}, },
}, },
@ -323,7 +349,6 @@ export default {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.image-viewer__btn { .image-viewer__btn {
position: absolute; position: absolute;
z-index: 1; z-index: 1;
@ -345,7 +370,6 @@ export default {
height: 40px; height: 40px;
font-size: 40px; font-size: 40px;
} }
.image-viewer_desc { .image-viewer_desc {
position: absolute; position: absolute;
top: 40px; top: 40px;
@ -363,7 +387,6 @@ export default {
border-radius: 17px; border-radius: 17px;
// border-radius: 2%; // border-radius: 2%;
} }
.image-viewer__canvas { .image-viewer__canvas {
position: absolute; position: absolute;
top: 50%; top: 50%;
@ -374,7 +397,6 @@ export default {
justify-content: center; justify-content: center;
align-items: center; align-items: center;
} }
.image-viewer__actions { .image-viewer__actions {
left: 50%; left: 50%;
bottom: 30px; bottom: 30px;
@ -386,7 +408,6 @@ export default {
border-color: #fff; border-color: #fff;
border-radius: 22px; border-radius: 22px;
} }
.image-viewer__actions__inner { .image-viewer__actions__inner {
width: 100%; width: 100%;
height: 100%; height: 100%;
@ -398,7 +419,6 @@ export default {
align-items: center; align-items: center;
justify-content: space-around; justify-content: space-around;
} }
.image-viewer__next, .image-viewer__next,
.image-viewer__prev { .image-viewer__prev {
top: 50%; top: 50%;
@ -409,18 +429,15 @@ export default {
background-color: #606266; background-color: #606266;
border-color: #fff; border-color: #fff;
} }
.image-viewer__prev { .image-viewer__prev {
transform: translateY(-50%); transform: translateY(-50%);
left: 40px; left: 40px;
} }
.image-viewer__next { .image-viewer__next {
transform: translateY(-50%); transform: translateY(-50%);
right: 40px; right: 40px;
text-indent: 2px; text-indent: 2px;
} }
.image-viewer__mask { .image-viewer__mask {
position: absolute; position: absolute;
width: 100%; width: 100%;
@ -430,11 +447,9 @@ export default {
opacity: 0.5; opacity: 0.5;
// background:#000 // background:#000
} }
.viewer-fade-enter-active { .viewer-fade-enter-active {
animation: viewer-fade-in 0.3s; animation: viewer-fade-in 0.3s;
} }
.viewer-fade-leave-active { .viewer-fade-leave-active {
animation: viewer-fade-out 0.3s; animation: viewer-fade-out 0.3s;
} }
@ -444,7 +459,6 @@ export default {
transform: translate3d(0, -20px, 0); transform: translate3d(0, -20px, 0);
opacity: 0; opacity: 0;
} }
100% { 100% {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
opacity: 1; opacity: 1;
@ -456,7 +470,6 @@ export default {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
opacity: 1; opacity: 1;
} }
100% { 100% {
transform: translate3d(0, -20px, 0); transform: translate3d(0, -20px, 0);
opacity: 0; opacity: 0;

View File

@ -2,29 +2,56 @@
<div class="none-dicom_preview-wrapper"> <div class="none-dicom_preview-wrapper">
<div class="image-viewer-wrapper"> <div class="image-viewer-wrapper">
<!-- 预览图像 --> <!-- 预览图像 -->
<ImageViewer v-if="previewVisible" :on-switch="(index) => { <ImageViewer
selected(index) v-if="previewVisible"
} :on-switch="
" :initial-index="previewImage.index" :url-list="previewImage.imgList" :study-code="previewImage.studyCode" (index) => {
:body-part="previewImage.bodyPart" :modality="previewImage.modality" :zip-img="zipImg" /> selected(index)
}
"
:initial-index="previewImage.index"
:url-list="previewImage.imgList"
:study-code="previewImage.studyCode"
:body-part="previewImage.bodyPart"
:modality="previewImage.modality"
:zip-img="zipImg"
/>
</div> </div>
<div class="thumbnail-wrapper" style="z-index: 999; background-color: #fff"> <div class="thumbnail-wrapper" style="z-index: 999; background-color: #fff">
<div class=""> <div class="">
<div class="img-wrapper"> <div class="img-wrapper">
<el-button icon="el-icon-d-arrow-left" plain class="left to" :disabled="disabledPrev" @click="toRight" /> <el-button
icon="el-icon-d-arrow-left"
plain
class="left to"
:disabled="disabledPrev"
@click="toRight"
/>
<div ref="imagesWrapper" class="images"> <div ref="imagesWrapper" class="images">
<div v-if="noData" class="empty-text"> <div v-if="noData" class="empty-text">
<slot name="empty">暂无数据</slot> <slot name="empty">暂无数据</slot>
</div> </div>
<div v-show="!noData" class="items" :style="itemsStyle"> <div v-show="!noData" class="items" :style="itemsStyle">
<template v-for="(item, index) in previewImage.imgList"> <template v-for="(item, index) in previewImage.imgList">
<div v-if="!~item.FileType.indexOf('pdf')" :key="index" class="item-img" :style="imgSize" :class="{ <div
'is-active': item.Id === currentFileId, v-if="!~item.FileType.indexOf('pdf')"
}" @click="selected(item.Id)"> :key="index"
<img :title="item.FileName" crossorigin="anonymous" :src="item.FileType && item.FileType.indexOf('zip') >= 0 class="item-img"
? zipImg :style="imgSize"
: `${OSSclientConfig.basePath}${item.Path}` :class="{
" /> 'is-active': index === currentIndex,
}"
@click="selected(index)"
>
<img
:title="item.FileName"
crossorigin="anonymous"
:src="
item.FileType && item.FileType.indexOf('zip') >= 0
? zipImg
: `${OSSclientConfig.basePath}${item.Path}`
"
/>
<p v-if="item.FileName" class="item-date"> <p v-if="item.FileName" class="item-date">
{{ `${index + 1}` }} {{ `${index + 1}` }}
</p> </p>
@ -32,7 +59,13 @@
</template> </template>
</div> </div>
</div> </div>
<el-button icon="el-icon-d-arrow-right" :disabled="disabledNext" plain class="right to" @click="Left" /> <el-button
icon="el-icon-d-arrow-right"
:disabled="disabledNext"
plain
class="right to"
@click="Left"
/>
</div> </div>
</div> </div>
</div> </div>
@ -60,10 +93,6 @@ export default {
type: Number, type: Number,
default: null, default: null,
}, },
currentFileId: {
type: String,
default: ''
},
previewImage: { previewImage: {
type: Object, type: Object,
default: () => { default: () => {
@ -138,7 +167,7 @@ export default {
const scope = this const scope = this
window.onresize = function () { window.onresize = function () {
scope.pageSize = scope.wrapperWidth() / scope.itemWidth scope.pageSize = scope.wrapperWidth() / scope.itemWidth
scope.selected(scope.currentFileId) scope.selected(scope.currentIndex)
} }
}, },
methods: { methods: {
@ -156,8 +185,7 @@ export default {
this.translateX = maxTrans this.translateX = maxTrans
} }
}, },
selected(id) { selected(index) {
let index = this.previewImage.imgList.findIndex(item => item.Id === id)
const center = this.pageSize >> 1 const center = this.pageSize >> 1
// //
const lastCenter = this.dataLength - center const lastCenter = this.dataLength - center
@ -174,7 +202,7 @@ export default {
if (this.currentIndex !== index) { if (this.currentIndex !== index) {
this.currentIndex = index this.currentIndex = index
} }
this.$emit('selectedImg', id) this.$emit('selectedImg', index)
}, },
wrapperWidth() { wrapperWidth() {
if (this.$refs.imagesWrapper) { if (this.$refs.imagesWrapper) {
@ -196,30 +224,25 @@ export default {
.image-viewer-wrapper { .image-viewer-wrapper {
flex: 1; flex: 1;
} }
.thumbnail-wrapper { .thumbnail-wrapper {
height: 130px; height: 130px;
} }
.img-content { .img-content {
position: absolute; position: absolute;
left: 0; left: 0;
bottom: 10px; bottom: 10px;
width: 100%; width: 100%;
} }
.img-wrapper { .img-wrapper {
display: flex; display: flex;
position: relative; position: relative;
margin: 0 20px; margin: 0 20px;
height: 120px; height: 120px;
.to { .to {
width: 32px; width: 32px;
height: 100%; height: 100%;
padding: 0; padding: 0;
} }
.images::before { .images::before {
position: absolute; position: absolute;
z-index: 5; z-index: 5;
@ -228,15 +251,16 @@ export default {
width: 84px; width: 84px;
content: ''; content: '';
pointer-events: none; pointer-events: none;
background: -webkit-gradient(linear, background: -webkit-gradient(
left top, linear,
right top, left top,
from(#fff), right top,
color-stop(50%, rgba(0, 0, 0, 0))); from(#fff),
color-stop(50%, rgba(0, 0, 0, 0))
);
background: -o-linear-gradient(left, #fff, rgba(0, 0, 0, 0) 50%); background: -o-linear-gradient(left, #fff, rgba(0, 0, 0, 0) 50%);
background: linear-gradient(90deg, #fff, rgba(0, 0, 0, 0) 50%); background: linear-gradient(90deg, #fff, rgba(0, 0, 0, 0) 50%);
} }
.images::after { .images::after {
position: absolute; position: absolute;
z-index: 5; z-index: 5;
@ -246,22 +270,22 @@ export default {
width: 84px; width: 84px;
content: ''; content: '';
pointer-events: none; pointer-events: none;
background: -webkit-gradient(linear, background: -webkit-gradient(
right top, linear,
left top, right top,
from(#fff), left top,
color-stop(50%, rgba(0, 0, 0, 0))); from(#fff),
color-stop(50%, rgba(0, 0, 0, 0))
);
background: -o-linear-gradient(right, #fff, rgba(0, 0, 0, 0) 50%); background: -o-linear-gradient(right, #fff, rgba(0, 0, 0, 0) 50%);
background: linear-gradient(270deg, #fff, rgba(0, 0, 0, 0) 50%); background: linear-gradient(270deg, #fff, rgba(0, 0, 0, 0) 50%);
} }
.images { .images {
position: relative; position: relative;
overflow: hidden; overflow: hidden;
width: 100%; width: 100%;
height: 100%; height: 100%;
margin: 0 2px; margin: 0 2px;
.empty-text { .empty-text {
color: rgb(158, 158, 158); color: rgb(158, 158, 158);
height: 100%; height: 100%;
@ -269,7 +293,6 @@ export default {
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.items { .items {
position: absolute; position: absolute;
top: 0; top: 0;
@ -279,7 +302,6 @@ export default {
height: 100%; height: 100%;
align-items: center; align-items: center;
transition: transform 0.25s ease; transition: transform 0.25s ease;
.item-img { .item-img {
display: inline-block; display: inline-block;
box-sizing: border-box; box-sizing: border-box;
@ -287,7 +309,6 @@ export default {
margin-right: 8px; margin-right: 8px;
border: 2px solid rgba(0, 0, 0, 0); border: 2px solid rgba(0, 0, 0, 0);
cursor: pointer; cursor: pointer;
.item-date { .item-date {
bottom: 0px; bottom: 0px;
position: absolute; position: absolute;
@ -298,18 +319,15 @@ export default {
line-height: 24px; line-height: 24px;
color: white; color: white;
} }
img { img {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
} }
.item-img:hover::after { .item-img:hover::after {
// border-color: #409EFF; // border-color: #409EFF;
opacity: 0; opacity: 0;
} }
.item-img::after { .item-img::after {
position: absolute; position: absolute;
top: 0; top: 0;
@ -324,11 +342,9 @@ export default {
transition: opacity 0.3s ease; transition: opacity 0.3s ease;
background-color: #fff; background-color: #fff;
} }
.is-active { .is-active {
border-color: #409eff; border-color: #409eff;
} }
.is-active:after { .is-active:after {
opacity: 0; opacity: 0;
} }

View File

@ -1,13 +1,7 @@
<template> <template>
<div v-loading="loading" class="img-container"> <div v-loading="loading" class="img-container">
<el-card class="box-card left"> <el-card class="box-card left">
<div class="title" style="display: flex;align-items: center;"> <div class="title">
<div style="margin-right: 5px;cursor: pointer;" @click.stop="sortFile">
<i :class="['el-icon-caret-top', Asc === false || Asc === null ? '' : 'icon_check']"
style="display: block;margin-bottom: -5px;"></i>
<i :class="['el-icon-caret-bottom', Asc === true || Asc === null ? '' : 'icon_check']"
style="display: block; margin-top: -5px;"></i>
</div>
{{ $t('trials:none-dicom-show:fileList') }} {{ $t('trials:none-dicom-show:fileList') }}
</div> </div>
<div class="left-content"> <div class="left-content">
@ -83,8 +77,7 @@
<el-card class="box-card right"> <el-card class="box-card right">
<div style="width: 100%; height: 100%" v-if="!showPDF"> <div style="width: 100%; height: 100%" v-if="!showPDF">
<Preview v-if="previewImage.imgList.length > 0" ref="previewImage" style="width: 100%" <Preview v-if="previewImage.imgList.length > 0" ref="previewImage" style="width: 100%"
:preview-image="previewImage" :value="currentStudyFileIndex" @selectedImg="selectedImg" :preview-image="previewImage" :value="currentStudyFileIndex" @selectedImg="selectedImg" />
:currentFileId="currentFileId" />
</div> </div>
<div style="width: 100%; height: 100%" v-else> <div style="width: 100%; height: 100%" v-else>
<PreviewFile :file-path="pdfFile.path" :file-type="pdfFile.type" /> <PreviewFile :file-path="pdfFile.path" :file-type="pdfFile.type" />
@ -105,7 +98,6 @@ import zip from '@/assets/zip.jpg'
import { changeURLStatic } from '@/utils/history.js' import { changeURLStatic } from '@/utils/history.js'
import Preview from './components/preview' import Preview from './components/preview'
import PreviewFile from '@/components/PreviewFile' import PreviewFile from '@/components/PreviewFile'
import FileNameSorter from "@/utils/customSort";
// import CheckForm from './components/form' // import CheckForm from './components/form'
export default { export default {
name: 'Notice', name: 'Notice',
@ -148,7 +140,6 @@ export default {
isAudit: false, isAudit: false,
activeNames: [], activeNames: [],
Asc: false
} }
}, },
async created() { async created() {
@ -165,30 +156,7 @@ export default {
this.getNoneDicomList() this.getNoneDicomList()
// //
}, },
computed: {
CriterionType() {
return this.OtherInfo.CriterionType ? this.OtherInfo.CriterionType : 0
}
},
methods: { methods: {
sortFile() {
if (this.Asc) {
this.Asc = false
} else {
this.Asc = true
}
console.log(this.Asc, 'this.Asc')
this.studyList.forEach(study => {
if (study.NoneDicomStudyFileList.length > 0) {
study.NoneDicomStudyFileList = FileNameSorter.sortFileNames(study.NoneDicomStudyFileList, {
direction: this.Asc ? 'asc' : 'desc',
key: 'FileName'
})
}
})
this.previewImage.imgList = this.studyList[this.currentStudyIndex].NoneDicomStudyFileList
this.previewImage.index = this.studyList[this.currentStudyIndex].NoneDicomStudyFileList.findIndex(item => item.Id === this.currentFileId)
},
handleChange() { }, handleChange() { },
changeReadingStatus(callback, row, file) { changeReadingStatus(callback, row, file) {
let statusStr = '' let statusStr = ''
@ -310,8 +278,7 @@ export default {
this.studyId, this.studyId,
false, false,
this.$route.query.visitTaskId, this.$route.query.visitTaskId,
!!this.$route.query.isReading, !!this.$route.query.isReading
this.$route.query.isImageSegmentLabel,
) )
.then((res) => { .then((res) => {
this.studyList = res.Result this.studyList = res.Result
@ -322,13 +289,11 @@ export default {
return item.NoneDicomStudyFileList.length > 0 return item.NoneDicomStudyFileList.length > 0
}) })
this.activeNames = this.studyList.map((item) => item.CodeView) this.activeNames = this.studyList.map((item) => item.CodeView)
console.log(this.activeNames)
if (studyIndex > -1) { if (studyIndex > -1) {
var fileObj = this.studyList[studyIndex]['NoneDicomStudyFileList'] var fileObj = this.studyList[studyIndex]['NoneDicomStudyFileList']
this.selected(fileObj[0], studyIndex, 0, true) this.selected(fileObj[0], studyIndex, 0, true)
} }
if (this.CriterionType === 19 || this.CriterionType === 20) {
this.sortFile()
}
}) })
.catch(() => { .catch(() => {
this.loading = false this.loading = false
@ -355,13 +320,12 @@ export default {
this.previewImage.modality = this.studyList[studyIndex].Modality this.previewImage.modality = this.studyList[studyIndex].Modality
this.$nextTick(() => { this.$nextTick(() => {
if (isChangeSub) { if (isChangeSub) {
this.$refs['previewImage'].selected(this.currentFileId) this.$refs['previewImage'].selected(fileIndex)
} }
}) })
}, },
selectedImg(id) { selectedImg(fileIndex) {
if (this.studyList.length > 0) { if (this.studyList.length > 0) {
let fileIndex = this.studyList[this.currentStudyIndex].NoneDicomStudyFileList.findIndex(item => item.Id === id)
this.currentStudyFileIndex = fileIndex this.currentStudyFileIndex = fileIndex
this.currentFileId = this.currentFileId =
this.studyList[this.currentStudyIndex].NoneDicomStudyFileList[ this.studyList[this.currentStudyIndex].NoneDicomStudyFileList[
@ -389,10 +353,6 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.icon_check {
color: #409EFF;
}
.img-container { .img-container {
position: relative; position: relative;
width: 100%; width: 100%;

View File

@ -65,25 +65,20 @@
{{ `${scope.row[q.Id]} ${$fd('ValueUnit', parseInt(q.Unit))}` }} {{ `${scope.row[q.Id]} ${$fd('ValueUnit', parseInt(q.Unit))}` }}
</span> </span>
<span v-else-if="q.DictionaryCode"> <span v-else-if="q.DictionaryCode">
{{`${scope.row[q.Id] instanceof Array ? scope.row[q.Id].map(item => $fd(q.DictionaryCode, {{ `${$fd(q.DictionaryCode, parseInt(scope.row[q.Id]))}` }}
parseInt(item))).join(',') : $fd(q.DictionaryCode, parseInt(scope.row[q.Id]))}`}}
</span>
<span v-else-if="q.OptionTypeEnum === 1">
{{ `${scope.row[q.Id] instanceof Array ? scope.row[q.Id].join(',') : scope.row[q.Id]}` }}
</span> </span>
<span v-else> <span v-else>
{{ `${scope.row[q.Id]}` }} {{ `${scope.row[q.Id]}` }}
</span> </span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column v-if="readingTaskState < 2 && (item.LesionType === 102 || item.LesionType === 103)" <el-table-column v-if="readingTaskState < 2 && item.LesionType === 102"
:label="$t('common:action:action')" width="90px" fixed="right"> :label="$t('common:action:action')" width="90px" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" size="mini" @click="handleAddOrEdit('edit', item, scope.$index)"> <el-button type="text" size="mini" @click="handleAddOrEdit('edit', item, scope.$index)">
{{ $t('common:button:edit') }} {{ $t('common:button:edit') }}
</el-button> </el-button>
<el-button type="text" size="mini" @click="handleDelete(item, scope.$index)" <el-button type="text" size="mini" @click="handleDelete(item, scope.$index)">
v-if="item.LesionType === 102">
{{ $t('common:button:delete') }} {{ $t('common:button:delete') }}
</el-button> </el-button>
</template> </template>
@ -122,7 +117,7 @@
</template> </template>
<template v-if="item.Type === 'select'"> <template v-if="item.Type === 'select'">
<el-select v-model="questionForm[item.Id]" :disabled="!isCurrentTask || readingTaskState >= 2" <el-select v-model="questionForm[item.Id]" :disabled="!isCurrentTask || readingTaskState >= 2"
:multiple="item.OptionTypeEnum === 1" @change="((val) => { formItemChange(val, item) })"> @change="((val) => { formItemChange(val, item) })">
<el-option v-for="dict of $d[item.DictionaryCode]" :key="dict.id" :value="String(dict.value)" <el-option v-for="dict of $d[item.DictionaryCode]" :key="dict.id" :value="String(dict.value)"
:label="dict.label" /> :label="dict.label" />
</el-select> </el-select>
@ -131,10 +126,10 @@
<template v-if="item.Childrens && item.Childrens.length > 0"> <template v-if="item.Childrens && item.Childrens.length > 0">
<template v-for="child in item.Childrens"> <template v-for="child in item.Childrens">
<el-form-item :key="child.Id" <el-form-item :key="child.Id"
v-if="(child.ShowQuestion === 1 && (child.ParentTriggerValueList.includes(String(questionForm[item.Id])) || (Array.isArray(questionForm[item.Id]) && child.ParentTriggerValueList.some(da => questionForm[item.Id].includes(da))))) || child.ShowQuestion === 0" v-if="(child.ShowQuestion === 1 && child.ParentTriggerValueList.includes(String(questionForm[item.Id]))) || child.ShowQuestion === 0"
:label="`${child.QuestionName}`" :prop="child.Id" :rules="[ :label="`${child.QuestionName}`" :prop="child.Id" :rules="[
{ {
required: (child.IsRequired === 0 || (child.IsRequired === 1 && child.RelevanceId && ((child.RelevanceValue.includes(questionForm[child.RelevanceId])) || (Array.isArray(questionForm[child.RelevanceId]) && child.RelevanceValueList.some(da => questionForm[child.RelevanceId].includes(da)))))) && child.Type !== 'group' && child.Type !== 'summary', required: (child.IsRequired === 0 || (child.IsRequired === 1 && child.RelevanceId && (child.RelevanceValue.includes(questionForm[child.RelevanceId])))) && child.Type !== 'group' && child.Type !== 'summary',
message: ['radio', 'select', 'checkbox'].includes(child.Type) ? $t('common:ruleMessage:select') : $t('common:ruleMessage:specify'), trigger: ['blur', 'change'] message: ['radio', 'select', 'checkbox'].includes(child.Type) ? $t('common:ruleMessage:select') : $t('common:ruleMessage:specify'), trigger: ['blur', 'change']
}, },
]"> ]">
@ -190,8 +185,7 @@
<!-- 导入 --> <!-- 导入 -->
<el-dialog v-if="upload.visible" :visible.sync="upload.visible" :close-on-click-modal="false" <el-dialog v-if="upload.visible" :visible.sync="upload.visible" :close-on-click-modal="false"
:title="upload.title" width="500px"> :title="upload.title" width="500px">
<UploadExcel :visit-task-id="visitTaskId" :TableName="upload.TableName" :lesion-type="upload.lesionType" <UploadExcel :visit-task-id="visitTaskId" :TableName="upload.TableName" @close="uploadDlgClose" />
@close="uploadDlgClose" />
</el-dialog> </el-dialog>
</div> </div>
</div> </div>
@ -249,8 +243,8 @@ export default {
questionForm: {}, questionForm: {},
formChanged: false, formChanged: false,
digitPlaces: 2, digitPlaces: 2,
addOrEdit: { visible: false, title: '', lesionType: null }, addOrEdit: { visible: false, title: '' },
upload: { visible: false, title: '', TableName: '', lesionType: null }, upload: { visible: false, title: '', TableName: '' },
qsList: [], qsList: [],
answersList: [], answersList: [],
qsForm: {}, qsForm: {},
@ -343,7 +337,7 @@ export default {
const type = ['number', 'radio', 'select', 'input', 'textarea', 'calculation'] const type = ['number', 'radio', 'select', 'input', 'textarea', 'calculation']
questions.forEach(item => { questions.forEach(item => {
if (type.includes(item.Type)) { if (type.includes(item.Type)) {
const answer = item.Type === 'select' && item.OptionTypeEnum === 1 && item.Answer ? JSON.parse(item.Answer) : item.Type === 'number' || item.Type === 'calculation' ? isNaN(parseFloat(item.Answer)) ? null : parseFloat(item.Answer) : item.Answer const answer = item.Type === 'number' || item.Type === 'calculation' ? isNaN(parseFloat(item.Answer)) ? null : parseFloat(item.Answer) : item.Answer
this.$set(this.questionForm, item.Id, answer) this.$set(this.questionForm, item.Id, answer)
} }
if (item.Childrens.length > 0) { if (item.Childrens.length > 0) {
@ -503,7 +497,7 @@ export default {
const loading = this.$loading({ fullscreen: true }) const loading = this.$loading({ fullscreen: true })
var answers = [] var answers = []
for (const k in this.questionForm) { for (const k in this.questionForm) {
answers.push({ id: k, answer: Array.isArray(this.questionForm[k]) ? JSON.stringify(this.questionForm[k]) : this.questionForm[k] }) answers.push({ id: k, answer: this.questionForm[k] })
} }
var params = { var params = {
visitTaskId: this.visitTaskId, visitTaskId: this.visitTaskId,
@ -615,7 +609,6 @@ export default {
this.$set(this.qsForm, i.Id, v) this.$set(this.qsForm, i.Id, v)
}) })
this.addOrEdit.visible = true this.addOrEdit.visible = true
this.addOrEdit.lesionType = row.LesionType
}, },
async saveFormData() { async saveFormData() {
const valid = await this.$refs.tableQsForm.validate() const valid = await this.$refs.tableQsForm.validate()
@ -627,7 +620,7 @@ export default {
for (const k in this.qsForm) { for (const k in this.qsForm) {
if (reg.test(k)) { if (reg.test(k)) {
if (answers.findIndex(i => i.tableQuestionId === k) === -1) { if (answers.findIndex(i => i.tableQuestionId === k) === -1) {
answers.push({ tableQuestionId: k, answer: Array.isArray(this.qsForm[k]) ? JSON.stringify(this.qsForm[k]) : this.qsForm[k] }) answers.push({ tableQuestionId: k, answer: this.qsForm[k] })
} }
} }
} }
@ -640,9 +633,6 @@ export default {
trialId: this.trialId, trialId: this.trialId,
answerList: answers answerList: answers
} }
if (this.addOrEdit.lesionType === 103) {
params.computationTrigger = 9
}
const res = await submitTableQuestion(params) const res = await submitTableQuestion(params)
if (res.IsSuccess) { if (res.IsSuccess) {
// this.refreshQuestions() // this.refreshQuestions()
@ -693,7 +683,6 @@ export default {
} }
}, },
uploadTpl(lesionType, TableName) { uploadTpl(lesionType, TableName) {
this.upload.lesionType = lesionType
this.upload.TableName = TableName this.upload.TableName = TableName
this.upload.title = `导入( ${this.$fd('LesionType', lesionType)} ` this.upload.title = `导入( ${this.$fd('LesionType', lesionType)} `
this.upload.visible = true this.upload.visible = true

View File

@ -25,7 +25,7 @@
<!-- 下拉框 --> <!-- 下拉框 -->
<el-select v-else-if="question.Type === 'select'" v-model="questionForm[question.Id]" <el-select v-else-if="question.Type === 'select'" v-model="questionForm[question.Id]"
:disabled="readingTaskState >= 2 || ((question.TableQuestionType === 2 || question.QuestionGenre === 2) && !!question.DictionaryCode)" :disabled="readingTaskState >= 2 || ((question.TableQuestionType === 2 || question.QuestionGenre === 2) && !!question.DictionaryCode)"
clearable :multiple="question.OptionTypeEnum === 1" @change="((val) => { formItemChange(val, question) })"> clearable @change="((val) => { formItemChange(val, question) })">
<template v-if="question.TableQuestionType === 1"> <template v-if="question.TableQuestionType === 1">
<el-option v-for="item in organList" :key="item.Id" :label="item[question.DataTableColumn]" <el-option v-for="item in organList" :key="item.Id" :label="item[question.DataTableColumn]"
:value="item[question.DataTableColumn]" /> :value="item[question.DataTableColumn]" />

View File

@ -1,15 +1,30 @@
<template> <template>
<el-form ref="uploadExcel" class="upload-excel-file"> <el-form
ref="uploadExcel"
class="upload-excel-file"
>
<!-- 文件 --> <!-- 文件 -->
<el-form-item :label="$t('trials:consistencyCheck:label:file2')"> <el-form-item :label="$t('trials:consistencyCheck:label:file2')">
<div class="upload-container"> <div class="upload-container">
<el-upload class="upload-demo" action accept=".xlsx,.xls,.csv" :before-upload="beforeUpload" <el-upload
:http-request="handleUploadFile" :on-preview="handlePreview" :show-file-list="true" :limit="1" class="upload-demo"
:on-exceed="handleExceed"> action
accept=".xlsx,.xls,.csv"
:before-upload="beforeUpload"
:http-request="handleUploadFile"
:on-preview="handlePreview"
:show-file-list="true"
:limit="1"
:on-exceed="handleExceed"
>
<el-button size="small" type="primary"> <el-button size="small" type="primary">
{{ $t('trials:consistencyCheck:dialogButton:upload') }} {{ $t('trials:consistencyCheck:dialogButton:upload') }}
</el-button> </el-button>
<span slot="tip" style="margin-left:10px;" class="el-upload__tip"> <span
slot="tip"
style="margin-left:10px;"
class="el-upload__tip"
>
({{ $t('trials:consistencyCheck:message:excelFileOnly') }}) ({{ $t('trials:consistencyCheck:message:excelFileOnly') }})
</span> </span>
</el-upload> </el-upload>
@ -25,10 +40,6 @@ export default {
type: String, type: String,
required: true required: true
}, },
lesionType: {
type: Number,
required: true
},
TableName: { TableName: {
type: String, type: String,
default: '' default: ''
@ -90,24 +101,21 @@ export default {
</script> </script>
<style lang="scss"> <style lang="scss">
.upload-excel-file { .upload-excel-file{
.upload-container .el-upload--text { .upload-container .el-upload--text {
border: none; border: none;
width: 80px; width: 80px;
height: 40px; height: 40px;
} }
.upload-container .el-input--small { .upload-container .el-input--small {
margin-bottom: 5px; margin-bottom: 5px;
} }
.upload-container .el-icon-circle-check { .upload-container .el-icon-circle-check {
color: #428bca; color: #428bca;
font-size: 13px; font-size: 13px;
} }
.account_item_clear{
.account_item_clear { .el-tag__close{
.el-tag__close {
display: none !important; display: none !important;
} }
} }

View File

@ -2,13 +2,12 @@
<template> <template>
<div v-loading="loading" style="width:100%;height:100%;"> <div v-loading="loading" style="width:100%;height:100%;">
<transition name="viewer-fade"> <transition name="viewer-fade">
<div v-show="urlList.length > 0" ref="image-viewer__wrapper" tabindex="-1" class="image-viewer__wrapper" <div v-show="urlList.length > 0" ref="image-viewer__wrapper" tabindex="-1" class="image-viewer__wrapper" :style="{ 'z-index':5 }">
:style="{ 'z-index': 5 }">
<span class="image-viewer_desc"> <span class="image-viewer_desc">
<!-- <span v-if="studyCode">NST00006</span> <!-- <span v-if="studyCode">NST00006</span>
<span v-if="modality">CT</span> <span v-if="modality">CT</span>
<span v-if="bodyPart">/</span><br> --> <span v-if="bodyPart">/</span><br> -->
{{ `${index + 1} / ${urlList.length}` }} {{ `${index+1} / ${urlList.length}` }}
</span> </span>
<!-- 关闭 --> <!-- 关闭 -->
<span class="image-viewer__btn image-viewer__close" @click="hide"> <span class="image-viewer__btn image-viewer__close" @click="hide">
@ -16,12 +15,18 @@
</span> </span>
<!-- Arrow --> <!-- Arrow -->
<template v-if="!isSingle"> <template v-if="!isSingle">
<span class="image-viewer__btn image-viewer__prev" :class="{ 'is-disabled': !infinite && isFirst }" <span
@click="prev"> class="image-viewer__btn image-viewer__prev"
:class="{ 'is-disabled': !infinite && isFirst }"
@click="prev"
>
<i class="el-icon-arrow-left" /> <i class="el-icon-arrow-left" />
</span> </span>
<span class="el-image-viewer__btn el-image-viewer__next" :class="{ 'is-disabled': !infinite && isLast }" <span
@click="next"> class="el-image-viewer__btn el-image-viewer__next"
:class="{ 'is-disabled': !infinite && isLast }"
@click="next"
>
<i class="el-icon-arrow-right" /> <i class="el-icon-arrow-right" />
</span> </span>
</template> </template>
@ -35,25 +40,34 @@
<i class="el-image-viewer__actions__divider" /> <i class="el-image-viewer__actions__divider" />
<i class="el-icon-refresh-left" @click="handleActions('anticlocelise')" /> <i class="el-icon-refresh-left" @click="handleActions('anticlocelise')" />
<i class="el-icon-refresh-right" @click="handleActions('clocelise')" /> <i class="el-icon-refresh-right" @click="handleActions('clocelise')" />
<i v-if="readingTaskState < 2" class="el-icon-bottom-right" <i
:style="{ cursor: isToolDisabled || readingTaskState >= 2 ? 'not-allowed' : 'pointer' }" v-if="readingTaskState < 2"
@click="handleDrawArrow" /> class="el-icon-bottom-right"
:style="{cursor:isToolDisabled || readingTaskState >=2 ?'not-allowed':'pointer'}"
@click="handleDrawArrow"
/>
<!-- <i <!-- <i
class="rectangle" class="rectangle"
:style="{cursor:isToolDisabled || readingTaskState >=2 ?'not-allowed':'pointer'}" :style="{cursor:isToolDisabled || readingTaskState >=2 ?'not-allowed':'pointer'}"
@click="handleDrawRectangle" @click="handleDrawRectangle"
/> --> /> -->
<svg-icon v-if="readingTaskState < 2" icon-class="rectangle" class="svg-icon" <svg-icon v-if="readingTaskState < 2" icon-class="rectangle" class="svg-icon" :style="{cursor:isToolDisabled || readingTaskState >=2 ?'not-allowed':'pointer'}" @click="handleDrawRectangle" />
:style="{ cursor: isToolDisabled || readingTaskState >= 2 ? 'not-allowed' : 'pointer' }"
@click="handleDrawRectangle" />
</div> </div>
</div> </div>
<!-- 图片 --> <!-- 图片 -->
<div id="image-viewer__canvas" class="image-viewer__canvas"> <div id="image-viewer__canvas" class="image-viewer__canvas">
<canvas v-if="canvasSize.width && canvasPosition.y" id="canvas" :height="canvasSize.height" <canvas
:width="canvasSize.width" :style="imgStyle" @mousedown="handleMouseDown" @mousemove="handleMouseMove" v-if="canvasSize.width && canvasPosition.y"
@mouseup="handleMouseUp" @contextmenu="handleContextmenu" /> id="canvas"
:height="canvasSize.height"
:width="canvasSize.width"
:style="imgStyle"
@mousedown="handleMouseDown"
@mousemove="handleMouseMove"
@mouseup="handleMouseUp"
@contextmenu="handleContextmenu"
/>
</div> </div>
</div> </div>
@ -97,11 +111,11 @@ export default {
}, },
onSwitch: { onSwitch: {
type: Function, type: Function,
default: () => { } default: () => {}
}, },
onClose: { onClose: {
type: Function, type: Function,
default: () => { } default: () => {}
}, },
initialIndex: { initialIndex: {
type: Number, type: Number,
@ -177,15 +191,11 @@ export default {
immediate: true, immediate: true,
handler(val) { handler(val) {
this.reset() this.reset()
if (val >= 0) { this.onSwitch(val)
this.imgId = this.urlList[val].Id
this.onSwitch(this.imgId)
this.imgUrl = this.urlList[val].Path
this.loadImage()
}
this.imgUrl = this.urlList[val].Path
this.imgId = this.urlList[val].Id
this.loadImage()
} }
} }
}, },
@ -349,7 +359,7 @@ export default {
y: canvasDiv.offsetHeight / 2 - img.height / 2 - 25 y: canvasDiv.offsetHeight / 2 - img.height / 2 - 25
} // } //
this.$nextTick(async () => { this.$nextTick(async() => {
ctx = document.getElementById('canvas').getContext('2d') // ctx = document.getElementById('canvas').getContext('2d') //
await ctx.drawImage(img, 0, 0, img.width, img.height) // canvas() await ctx.drawImage(img, 0, 0, img.width, img.height) // canvas()
this.drawToArr() this.drawToArr()
@ -769,43 +779,42 @@ export default {
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.image-viewer__wrapper {
position: relative; .image-viewer__wrapper{
top: 0; position: relative;
right: 0; top:0;
bottom: 0; right:0;
left: 0; bottom:0;
width: 100%; left:0;
height: 100%; width: 100%;
height: 100%;
}
.image-viewer__btn{
position:absolute;
z-index:1;
display:flex;
align-items:center;
justify-content:center;
border-radius:50%;
opacity:.8;
cursor:pointer;
box-sizing:border-box;
user-select:none
} }
.image-viewer__btn { .image-viewer__close{
position: absolute;
z-index: 1;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
opacity: .8;
cursor: pointer;
box-sizing: border-box;
user-select: none
}
.image-viewer__close {
display: none; display: none;
top: 40px; top:40px;
right: 40px; right:40px;
width: 40px; width:40px;
height: 40px; height:40px;
font-size: 40px font-size:40px
} }
.image-viewer_desc{
.image-viewer_desc { position:absolute;
position: absolute; top:40px;
top: 40px; left:40px;
left: 40px; font-size:15px;
font-size: 15px;
padding: 5px; padding: 5px;
height: 30px; height: 30px;
width: 70px; width: 70px;
@ -818,104 +827,92 @@ export default {
border-radius: 17px; border-radius: 17px;
// border-radius: 2%; // border-radius: 2%;
} }
.image-viewer__canvas{
.image-viewer__canvas { position: absolute;
position: absolute; top: 50%;
top: 50%; transform: translateY(-50%);
transform: translateY(-50%); width:100%;
width: 100%; height:100%;
height: 100%; display:flex;
display: flex; justify-content:center;
justify-content: center; align-items:center
align-items: center
} }
.image-viewer__actions{
.image-viewer__actions { left:50%;
left: 50%; bottom:30px;
bottom: 30px; transform:translateX(-50%);
transform: translateX(-50%); width:282px;
width: 282px; height:44px;
height: 44px; padding:0 23px;
padding: 0 23px; background-color:#606266;
background-color: #606266; border-color:#fff;
border-color: #fff; border-radius:22px
border-radius: 22px
} }
.image-viewer__actions__inner{
.image-viewer__actions__inner { width:100%;
width: 100%; height:100%;
height: 100%; text-align:justify;
text-align: justify; cursor:default;
cursor: default; font-size:23px;
font-size: 23px; color:#fff;
color: #fff; display:flex;
display: flex; align-items:center;
align-items: center; justify-content:space-around
justify-content: space-around
} }
.image-viewer__next,.image-viewer__prev{
.image-viewer__next, top:50%;
.image-viewer__prev { width:44px;
top: 50%; height:44px;
width: 44px; font-size:24px;
height: 44px; color:#fff;
font-size: 24px; background-color:#606266;
color: #fff; border-color:#fff
background-color: #606266;
border-color: #fff
} }
.image-viewer__prev{
.image-viewer__prev { transform:translateY(-50%);
transform: translateY(-50%); left:40px
left: 40px
} }
.image-viewer__next{
.image-viewer__next { transform:translateY(-50%);
transform: translateY(-50%); right:40px;
right: 40px; text-indent:2px
text-indent: 2px
} }
.image-viewer__mask{
.image-viewer__mask { position:absolute;
position: absolute; width:100%;
width: 100%; height:100%;
height: 100%; top:0;
top: 0; left:0;
left: 0; opacity:.5;
opacity: .5; // background:#000
// background:#000
} }
.viewer-fade-enter-active{
.viewer-fade-enter-active { animation:viewer-fade-in .3s
animation: viewer-fade-in .3s }
.viewer-fade-leave-active{
animation:viewer-fade-out .3s
} }
.viewer-fade-leave-active { @keyframes viewer-fade-in{
animation: viewer-fade-out .3s 0%{
transform:translate3d(0,-20px,0);
opacity:0
}
100%{
transform:translate3d(0,0,0);
opacity:1
}
} }
@keyframes viewer-fade-in { @keyframes viewer-fade-out{
0% { 0%{
transform: translate3d(0, -20px, 0); transform:translate3d(0,0,0);
opacity: 0 opacity:1
} }
100%{
100% { transform:translate3d(0,-20px,0);
transform: translate3d(0, 0, 0); opacity:0
opacity: 1 }
}
}
@keyframes viewer-fade-out {
0% {
transform: translate3d(0, 0, 0);
opacity: 1
}
100% {
transform: translate3d(0, -20px, 0);
opacity: 0
}
} }
</style> </style>

View File

@ -3,33 +3,61 @@
<div class="image-viewer-wrapper"> <div class="image-viewer-wrapper">
<!-- 预览图像 --> <!-- 预览图像 -->
<NoneDicomsCanvas v-if="previewVisible" :on-switch="(index) => { <NoneDicomsCanvas
selected(index) v-if="previewVisible"
} :on-switch="
" :initial-index="previewImage.index" :url-list="previewImage.imgList" :study-code="previewImage.studyCode" (index) => {
:body-part="previewImage.bodyPart" :modality="previewImage.modality" :study-id="previewImage.studyId" selected(index)
:reading-task-state="readingTaskState" /> }
"
:initial-index="previewImage.index"
:url-list="previewImage.imgList"
:study-code="previewImage.studyCode"
:body-part="previewImage.bodyPart"
:modality="previewImage.modality"
:study-id="previewImage.studyId"
:reading-task-state="readingTaskState"
/>
</div> </div>
<div class="thumbnail-wrapper" style="z-index:999;background-color:#fff;"> <div class="thumbnail-wrapper" style="z-index:999;background-color:#fff;">
<div class=""> <div class="">
<div class="img-wrapper"> <div class="img-wrapper">
<el-button icon="el-icon-d-arrow-left" plain class="left to" :disabled="disabledPrev" @click="toRight" /> <el-button
icon="el-icon-d-arrow-left"
plain
class="left to"
:disabled="disabledPrev"
@click="toRight"
/>
<div ref="imagesWrapper" class="images"> <div ref="imagesWrapper" class="images">
<div v-if="noData" class="empty-text"> <div v-if="noData" class="empty-text">
<slot name="empty">{{ $t('trial:reading:noneDicoms:noData') }}</slot> <slot name="empty">{{ $t('trial:reading:noneDicoms:noData') }}</slot>
</div> </div>
<div v-show="!noData" class="items" :style="itemsStyle"> <div v-show="!noData" class="items" :style="itemsStyle">
<div v-for="(item, index) in previewImage.imgList" :key="index" class="item-img" :style="imgSize" :class="{ <div
'is-active': item.Id === currentFileId v-for="(item, index) in previewImage.imgList"
}" @click="selected(item.Id)"> :key="index"
class="item-img"
:style="imgSize"
:class="{
'is-active': index === currentIndex
}"
@click="selected(index)"
>
<img :title="item.FileName" :src="`${OSSclientConfig.basePath + item.Path}`" crossorigin="anonymous"> <img :title="item.FileName" :src="`${OSSclientConfig.basePath + item.Path}`" crossorigin="anonymous">
<p v-if="item.FileName" class="item-date"> <p v-if="item.FileName" class="item-date">
{{ `${index + 1}` }} {{ `${index+1}` }}
</p> </p>
</div> </div>
</div> </div>
</div> </div>
<el-button icon="el-icon-d-arrow-right" :disabled="disabledNext" plain class="right to" @click="Left" /> <el-button
icon="el-icon-d-arrow-right"
:disabled="disabledNext"
plain
class="right to"
@click="Left"
/>
</div> </div>
</div> </div>
</div> </div>
@ -60,10 +88,6 @@ export default {
type: Number, type: Number,
default: null default: null
}, },
currentFileId: {
type: String,
default: ''
},
previewImage: { previewImage: {
type: Object, type: Object,
default: () => { default: () => {
@ -137,9 +161,9 @@ export default {
this.pageSize = this.wrapperWidth() / this.itemWidth this.pageSize = this.wrapperWidth() / this.itemWidth
this.urlList = this.previewImage this.urlList = this.previewImage
const scope = this const scope = this
window.onresize = function () { window.onresize = function() {
scope.pageSize = scope.wrapperWidth() / scope.itemWidth scope.pageSize = scope.wrapperWidth() / scope.itemWidth
scope.selected(scope.currentFileId) scope.selected(scope.currentIndex)
} }
}, },
methods: { methods: {
@ -157,8 +181,7 @@ export default {
this.translateX = maxTrans this.translateX = maxTrans
} }
}, },
selected(id) { selected(index) {
let index = this.previewImage.imgList.findIndex(item => item.Id === id)
const center = this.pageSize >> 1 const center = this.pageSize >> 1
// //
const lastCenter = this.dataLength - center const lastCenter = this.dataLength - center
@ -175,7 +198,7 @@ export default {
if (this.currentIndex !== index) { if (this.currentIndex !== index) {
this.currentIndex = index this.currentIndex = index
} }
this.$emit('selectedImg', id) this.$emit('selectedImg', index)
}, },
wrapperWidth() { wrapperWidth() {
if (this.$refs.imagesWrapper) { if (this.$refs.imagesWrapper) {
@ -189,40 +212,35 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.preview-wrapper { .preview-wrapper{
width: 100%; width: 100%;
height: 100%; height: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
.image-viewer-wrapper { .image-viewer-wrapper{
flex: 1; flex: 1;
} }
.thumbnail-wrapper{
.thumbnail-wrapper {
height: 130px; height: 130px;
} }
.img-content{
.img-content {
position: absolute; position: absolute;
left: 0; left: 0;
bottom: 10px; bottom: 10px;
width: 100%; width: 100%;
} }
.img-wrapper { .img-wrapper {
display: flex; display: flex;
position: relative; position: relative;
margin: 0 20px; margin: 0 20px;
height: 120px; height: 120px;
.to { .to {
width: 32px; width: 32px;
height: 100%; height: 100%;
padding: 0; padding: 0;
} }
.images::before { .images::before {
position: absolute; position: absolute;
z-index: 5; z-index: 5;
@ -231,15 +249,16 @@ export default {
width: 84px; width: 84px;
content: ''; content: '';
pointer-events: none; pointer-events: none;
background: -webkit-gradient(linear, background: -webkit-gradient(
left top, linear,
right top, left top,
from(#fff), right top,
color-stop(50%, rgba(0, 0, 0, 0))); from(#fff),
color-stop(50%, rgba(0, 0, 0, 0))
);
background: -o-linear-gradient(left, #fff, rgba(0, 0, 0, 0) 50%); background: -o-linear-gradient(left, #fff, rgba(0, 0, 0, 0) 50%);
background: linear-gradient(90deg, #fff, rgba(0, 0, 0, 0) 50%); background: linear-gradient(90deg, #fff, rgba(0, 0, 0, 0) 50%);
} }
.images::after { .images::after {
position: absolute; position: absolute;
z-index: 5; z-index: 5;
@ -249,22 +268,22 @@ export default {
width: 84px; width: 84px;
content: ''; content: '';
pointer-events: none; pointer-events: none;
background: -webkit-gradient(linear, background: -webkit-gradient(
right top, linear,
left top, right top,
from(#fff), left top,
color-stop(50%, rgba(0, 0, 0, 0))); from(#fff),
color-stop(50%, rgba(0, 0, 0, 0))
);
background: -o-linear-gradient(right, #fff, rgba(0, 0, 0, 0) 50%); background: -o-linear-gradient(right, #fff, rgba(0, 0, 0, 0) 50%);
background: linear-gradient(270deg, #fff, rgba(0, 0, 0, 0) 50%); background: linear-gradient(270deg, #fff, rgba(0, 0, 0, 0) 50%);
} }
.images { .images {
position: relative; position: relative;
overflow: hidden; overflow: hidden;
width: 100%; width: 100%;
height: 100%; height: 100%;
margin: 0 2px; margin: 0 2px;
.empty-text { .empty-text {
color: rgb(158, 158, 158); color: rgb(158, 158, 158);
height: 100%; height: 100%;
@ -272,7 +291,6 @@ export default {
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.items { .items {
position: absolute; position: absolute;
top: 0; top: 0;
@ -282,7 +300,6 @@ export default {
height: 100%; height: 100%;
align-items: center; align-items: center;
transition: transform 0.25s ease; transition: transform 0.25s ease;
.item-img { .item-img {
display: inline-block; display: inline-block;
box-sizing: border-box; box-sizing: border-box;
@ -290,7 +307,6 @@ export default {
margin-right: 8px; margin-right: 8px;
border: 2px solid rgba(0, 0, 0, 0); border: 2px solid rgba(0, 0, 0, 0);
cursor: pointer; cursor: pointer;
.item-date { .item-date {
bottom: 0px; bottom: 0px;
position: absolute; position: absolute;
@ -301,18 +317,15 @@ export default {
line-height: 24px; line-height: 24px;
color: white; color: white;
} }
img { img {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
} }
.item-img:hover::after { .item-img:hover::after {
// border-color: #409EFF; // border-color: #409EFF;
opacity: 0; opacity: 0;
} }
.item-img::after { .item-img::after {
position: absolute; position: absolute;
top: 0; top: 0;
@ -327,11 +340,9 @@ export default {
transition: opacity 0.3s ease; transition: opacity 0.3s ease;
background-color: #fff; background-color: #fff;
} }
.is-active { .is-active {
border-color: #409eff; border-color: #409eff;
} }
.is-active:after { .is-active:after {
opacity: 0; opacity: 0;
} }

View File

@ -65,11 +65,7 @@
{{ `${scope.row[q.Id]} ${$fd('ValueUnit', parseInt(q.Unit))}` }} {{ `${scope.row[q.Id]} ${$fd('ValueUnit', parseInt(q.Unit))}` }}
</span> </span>
<span v-else-if="q.DictionaryCode"> <span v-else-if="q.DictionaryCode">
{{`${scope.row[q.Id] instanceof Array ? scope.row[q.Id].map(item => $fd(q.DictionaryCode, {{ `${$fd(q.DictionaryCode, parseInt(scope.row[q.Id]))}` }}
parseInt(item))).join(',') : $fd(q.DictionaryCode, parseInt(scope.row[q.Id]))}`}}
</span>
<span v-else-if="q.OptionTypeEnum === 1">
{{ `${scope.row[q.Id] instanceof Array ? scope.row[q.Id].join(',') : scope.row[q.Id]}` }}
</span> </span>
<span v-else> <span v-else>
{{ `${scope.row[q.Id]}` }} {{ `${scope.row[q.Id]}` }}
@ -107,7 +103,7 @@
</template> </template>
<template v-if="item.Type === 'select'"> <template v-if="item.Type === 'select'">
<el-select v-model="questionForm[item.Id]" :disabled="!isCurrentTask || readingTaskState >= 2" <el-select v-model="questionForm[item.Id]" :disabled="!isCurrentTask || readingTaskState >= 2"
:multiple="item.OptionTypeEnum === 1" @change="((val) => { formItemChange(val, item) })"> @change="((val) => { formItemChange(val, item) })">
<el-option v-for="dict of $d[item.DictionaryCode]" :key="dict.id" :value="String(dict.value)" <el-option v-for="dict of $d[item.DictionaryCode]" :key="dict.id" :value="String(dict.value)"
:label="dict.label" /> :label="dict.label" />
</el-select> </el-select>
@ -116,10 +112,10 @@
<template v-if="item.Childrens && item.Childrens.length > 0"> <template v-if="item.Childrens && item.Childrens.length > 0">
<template v-for="child in item.Childrens"> <template v-for="child in item.Childrens">
<el-form-item :key="child.Id" <el-form-item :key="child.Id"
v-if="(child.ShowQuestion === 1 && (child.ParentTriggerValueList.includes(String(questionForm[item.Id])) || (Array.isArray(questionForm[item.Id]) && child.ParentTriggerValueList.some(da => questionForm[item.Id].includes(da))))) || child.ShowQuestion === 0" v-if="(child.ShowQuestion === 1 && child.ParentTriggerValueList.includes(String(questionForm[item.Id]))) || child.ShowQuestion === 0"
:label="`${child.QuestionName}`" :prop="child.Id" :rules="[ :label="`${child.QuestionName}`" :prop="child.Id" :rules="[
{ {
required: (child.IsRequired === 0 || (child.IsRequired === 1 && child.RelevanceId && ((child.RelevanceValue.includes(questionForm[child.RelevanceId])) || (Array.isArray(questionForm[child.RelevanceId]) && child.RelevanceValueList.some(da => questionForm[child.RelevanceId].includes(da)))))) && child.Type !== 'group' && child.Type !== 'summary', required: (child.IsRequired === 0 || (child.IsRequired === 1 && child.RelevanceId && (child.RelevanceValue.includes(questionForm[child.RelevanceId])))) && child.Type !== 'group' && child.Type !== 'summary',
message: ['radio', 'select', 'checkbox'].includes(child.Type) ? $t('common:ruleMessage:select') : $t('common:ruleMessage:specify'), trigger: ['blur', 'change'] message: ['radio', 'select', 'checkbox'].includes(child.Type) ? $t('common:ruleMessage:select') : $t('common:ruleMessage:specify'), trigger: ['blur', 'change']
}, },
]"> ]">
@ -328,7 +324,7 @@ export default {
const type = ['number', 'radio', 'select', 'input', 'textarea', 'calculation'] const type = ['number', 'radio', 'select', 'input', 'textarea', 'calculation']
questions.forEach(item => { questions.forEach(item => {
if (type.includes(item.Type)) { if (type.includes(item.Type)) {
const answer = item.Type === 'select' && item.OptionTypeEnum === 1 && item.Answer ? JSON.parse(item.Answer) : item.Type === 'number' || item.Type === 'calculation' ? isNaN(parseFloat(item.Answer)) ? null : parseFloat(item.Answer) : item.Answer const answer = item.Type === 'number' || item.Type === 'calculation' ? isNaN(parseFloat(item.Answer)) ? null : parseFloat(item.Answer) : item.Answer
this.$set(this.questionForm, item.Id, answer) this.$set(this.questionForm, item.Id, answer)
} }
if (item.Childrens.length > 0) { if (item.Childrens.length > 0) {
@ -485,7 +481,7 @@ export default {
const loading = this.$loading({ fullscreen: true }) const loading = this.$loading({ fullscreen: true })
var answers = [] var answers = []
for (const k in this.questionForm) { for (const k in this.questionForm) {
answers.push({ id: k, answer: Array.isArray(this.questionForm[k]) ? JSON.stringify(this.questionForm[k]) : this.questionForm[k] }) answers.push({ id: k, answer: this.questionForm[k] })
} }
var params = { var params = {
visitTaskId: this.visitTaskId, visitTaskId: this.visitTaskId,
@ -613,7 +609,7 @@ export default {
for (const k in this.qsForm) { for (const k in this.qsForm) {
if (reg.test(k)) { if (reg.test(k)) {
if (answers.findIndex(i => i.tableQuestionId === k) === -1) { if (answers.findIndex(i => i.tableQuestionId === k) === -1) {
answers.push({ tableQuestionId: k, answer: Array.isArray(this.qsForm[k]) ? JSON.stringify(this.qsForm[k]) : this.qsForm[k] }) answers.push({ tableQuestionId: k, answer: this.qsForm[k] })
} }
} }
} }

View File

@ -25,7 +25,7 @@
<!-- 下拉框 --> <!-- 下拉框 -->
<el-select v-else-if="question.Type === 'select'" v-model="questionForm[question.Id]" <el-select v-else-if="question.Type === 'select'" v-model="questionForm[question.Id]"
:disabled="readingTaskState >= 2 || ((question.TableQuestionType === 2 || question.QuestionGenre === 2) && !!question.DictionaryCode)" :disabled="readingTaskState >= 2 || ((question.TableQuestionType === 2 || question.QuestionGenre === 2) && !!question.DictionaryCode)"
clearable :multiple="question.OptionTypeEnum === 1" @change="((val) => { formItemChange(val, question) })"> clearable @change="((val) => { formItemChange(val, question) })">
<template v-if="question.TableQuestionType === 1"> <template v-if="question.TableQuestionType === 1">
<el-option v-for="item in organList" :key="item.Id" :label="item[question.DataTableColumn]" <el-option v-for="item in organList" :key="item.Id" :label="item[question.DataTableColumn]"
:value="item[question.DataTableColumn]" /> :value="item[question.DataTableColumn]" />
@ -142,12 +142,6 @@ export default {
return [] return []
} }
}, },
questions: {
type: Array,
default() {
return []
}
},
readingTaskState: { readingTaskState: {
type: Number, type: Number,
required: true required: true
@ -177,7 +171,6 @@ export default {
} }
this.$emit('setFormItemData', { key: question.Id, val: v }) this.$emit('setFormItemData', { key: question.Id, val: v })
} }
this.resetChildValue(question, this.questions)
}, },
resetChild(obj) { resetChild(obj) {
obj.forEach(i => { obj.forEach(i => {
@ -187,17 +180,6 @@ export default {
} }
}) })
}, },
resetChildValue(obj, arr) {
arr.some(item => {
if (item.ParentId === obj.Id) {
this.$emit('resetFormItemData', item.Id)
}
if (item.Childrens && item.Childrens.length > 0) {
this.resetChildValue(obj, item.Childrens)
}
return item.ParentId === obj.Id
})
},
limitBlur(valueType, value) { limitBlur(valueType, value) {
if (isNaN(parseInt(value))) { if (isNaN(parseInt(value))) {
value = null value = null

View File

@ -41,6 +41,7 @@
} }
})" /> })" />
</div> </div>
<!-- 测量 --> <!-- 测量 -->
<el-button v-if="!questionForm[question.Id] && readingTaskState !== 2" size="mini" type="text" <el-button v-if="!questionForm[question.Id] && readingTaskState !== 2" size="mini" type="text"
@click="addAnnotation(question)">{{ $t('trials:lugano:button:addAnnotation') }}</el-button> @click="addAnnotation(question)">{{ $t('trials:lugano:button:addAnnotation') }}</el-button>
@ -79,6 +80,7 @@
} }
})" /> })" />
</div> </div>
</template> </template>
<!-- 输入框 --> <!-- 输入框 -->
@ -92,7 +94,7 @@
<!-- 下拉框 --> <!-- 下拉框 -->
<el-select v-else-if="question.Type === 'select'" v-model="questionForm[question.Id]" <el-select v-else-if="question.Type === 'select'" v-model="questionForm[question.Id]"
:disabled="readingTaskState >= 2 || ((question.TableQuestionType === 2 || question.QuestionGenre === 2) && !!question.DictionaryCode) || isFirstChangeTask || question.QuestionType === 50 || question.QuestionType === 55" :disabled="readingTaskState >= 2 || ((question.TableQuestionType === 2 || question.QuestionGenre === 2) && !!question.DictionaryCode) || isFirstChangeTask || question.QuestionType === 50 || question.QuestionType === 55"
clearable :multiple="question.OptionTypeEnum === 1" @change="((val) => { formItemChange(val, question) })"> clearable @change="((val) => { formItemChange(val, question) })">
<template v-if="question.TableQuestionType === 1"> <template v-if="question.TableQuestionType === 1">
<el-option v-for="item in organList" :key="item.Id" :label="item[question.DataTableColumn]" <el-option v-for="item in organList" :key="item.Id" :label="item[question.DataTableColumn]"
:value="item[question.DataTableColumn]" /> :value="item[question.DataTableColumn]" />
@ -191,6 +193,7 @@
} }
})" /> })" />
</div> </div>
<!-- 上传图像 --> <!-- 上传图像 -->
<el-upload v-else-if="question.Type === 'upload'" action :accept="accept" :limit="question.ImageCount" <el-upload v-else-if="question.Type === 'upload'" action :accept="accept" :limit="question.ImageCount"
:on-preview="handlePictureCardPreview" :before-upload="handleBeforeUpload" :http-request="uploadScreenshot" :on-preview="handlePictureCardPreview" :before-upload="handleBeforeUpload" :http-request="uploadScreenshot"

View File

@ -61,6 +61,7 @@
})" /> })" />
</div> </div>
<!-- {{ ((qs.QuestionMark === 6 && isCurrentTaskAdd === 'False') || (qs.QuestionMark === 6 && isCurrentTaskAdd === 'True' && !questionForm.IsCanEditPosition)) }} --> <!-- {{ ((qs.QuestionMark === 6 && isCurrentTaskAdd === 'False') || (qs.QuestionMark === 6 && isCurrentTaskAdd === 'True' && !questionForm.IsCanEditPosition)) }} -->
</template> </template>
<!-- 多行文本输入框 --> <!-- 多行文本输入框 -->
<el-input v-if="qs.Type === 'textarea'" v-model="questionForm[qs.Id]" type="textarea" <el-input v-if="qs.Type === 'textarea'" v-model="questionForm[qs.Id]" type="textarea"

View File

@ -355,7 +355,7 @@ export default {
this.dialogVisible = true this.dialogVisible = true
this.cdVisitTaskId = this.visitTaskId this.cdVisitTaskId = this.visitTaskId
} }
if ((this.CriterionType === 19 || this.CriterionType === 20) && !this.IsViewStudyPart && this.readingCategory !== 4) { if ((this.CriterionType === 19 || this.CriterionType === 20) && !this.IsViewStudyPart) {
this.isFullscreen = false this.isFullscreen = false
this.dialogBodyPartVisible = true this.dialogBodyPartVisible = true
} }

View File

@ -1,14 +1,7 @@
<template> <template>
<div v-loading="loading" class="img-container"> <div v-loading="loading" class="img-container">
<el-card class="box-card left"> <el-card class="box-card left">
<div v-if="otherInfo && otherInfo.IsReadingShowSubjectInfo" class="title" <div v-if="otherInfo && otherInfo.IsReadingShowSubjectInfo" class="title" style="text-align:center">
style="display: flex;align-items: center;flex-wrap: wrap;">
<div style="margin-right: 5px;cursor: pointer;display: inline-block" @click.stop="sortFile">
<i :class="['el-icon-caret-top', Asc === false || Asc === null ? '' : 'icon_check']"
style="display: block;margin-bottom: -5px;"></i>
<i :class="['el-icon-caret-bottom', Asc === true || Asc === null ? '' : 'icon_check']"
style="display: block; margin-top: -5px;"></i>
</div>
<span>{{ otherInfo.SubjectCode }} </span> <span>{{ otherInfo.SubjectCode }} </span>
<span>({{ otherInfo.TaskBlindName }})</span> <span>({{ otherInfo.TaskBlindName }})</span>
</div> </div>
@ -47,8 +40,8 @@
<el-card class="box-card right"> <el-card class="box-card right">
<div style="width:100%;height: 100%;"> <div style="width:100%;height: 100%;">
<NoneDicomsViewer v-if="previewImage.imgList.length > 0" ref="previewImage" style="width:100%;" <NoneDicomsViewer v-if="previewImage.imgList.length > 0" ref="previewImage" style="width:100%;"
:preview-image="previewImage" :value="currentStudyFileIndex" :currentFileId="currentFileId" :preview-image="previewImage" :value="currentStudyFileIndex" :reading-task-state="readingTaskState"
:reading-task-state="readingTaskState" @selectedImg="selectedImg" /> @selectedImg="selectedImg" />
</div> </div>
</el-card> </el-card>
@ -61,7 +54,6 @@ import { getReadingImageFile } from '@/api/trials'
import { changeURLStatic } from '@/utils/history.js' import { changeURLStatic } from '@/utils/history.js'
import store from '@/store' import store from '@/store'
import NoneDicomsViewer from './components/NoneDicomsViewer' import NoneDicomsViewer from './components/NoneDicomsViewer'
import FileNameSorter from "@/utils/customSort";
export default { export default {
name: 'VisitReview', name: 'VisitReview',
components: { components: {
@ -98,13 +90,7 @@ export default {
visistTaskId: '', visistTaskId: '',
taskBlindName: '', taskBlindName: '',
readingTaskState: 2, readingTaskState: 2,
BodyPart: {}, BodyPart: {}
Asc: null
}
},
computed: {
CriterionType() {
return this.otherInfo.CriterionType ? this.otherInfo.CriterionType : 0
} }
}, },
async mounted() { async mounted() {
@ -127,24 +113,6 @@ export default {
this.getNoneDicomList() this.getNoneDicomList()
}, },
methods: { methods: {
sortFile() {
if (this.Asc) {
this.Asc = false
} else {
this.Asc = true
}
this.studyList.forEach(study => {
if (study.NoneDicomStudyFileList.length > 0) {
study.NoneDicomStudyFileList = FileNameSorter.sortFileNames(study.NoneDicomStudyFileList, {
direction: this.Asc ? 'asc' : 'desc',
key: 'FileName'
})
}
})
this.previewImage.imgList = this.studyList[this.currentStudyIndex].NoneDicomStudyFileList
this.previewImage.index = this.studyList[this.currentStudyIndex].NoneDicomStudyFileList.findIndex(item => item.Id === this.currentFileId)
},
// Dicom // Dicom
getNoneDicomList() { getNoneDicomList() {
this.loading = true this.loading = true
@ -166,9 +134,6 @@ export default {
} }
} }
this.loading = false this.loading = false
if (this.CriterionType === 19 || this.CriterionType === 20) {
this.sortFile()
}
}).catch(() => { this.loading = false }) }).catch(() => { this.loading = false })
}, },
selected(file, studyIndex, fileIndex, isChangeSub = false) { selected(file, studyIndex, fileIndex, isChangeSub = false) {
@ -183,14 +148,12 @@ export default {
this.previewImage.studyId = this.studyList[studyIndex].Id this.previewImage.studyId = this.studyList[studyIndex].Id
this.$nextTick(() => { this.$nextTick(() => {
if (isChangeSub) { if (isChangeSub) {
this.$refs['previewImage'].selected(this.currentFileId) this.$refs['previewImage'].selected(fileIndex)
} }
}) })
}, },
selectedImg(id) { selectedImg(fileIndex) {
if (this.studyList.length > 0) { if (this.studyList.length > 0) {
let fileIndex = this.studyList[this.currentStudyIndex].NoneDicomStudyFileList.findIndex(item => item.Id === id)
console.log(fileIndex, id)
this.currentStudyFileIndex = fileIndex this.currentStudyFileIndex = fileIndex
this.currentFileId = this.studyList[this.currentStudyIndex].NoneDicomStudyFileList[fileIndex].Id this.currentFileId = this.studyList[this.currentStudyIndex].NoneDicomStudyFileList[fileIndex].Id
this.previewImage.index = fileIndex this.previewImage.index = fileIndex
@ -232,10 +195,6 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.icon_check {
color: #409EFF;
}
.img-container { .img-container {
flex: 1; flex: 1;
width: 100%; width: 100%;
@ -277,7 +236,7 @@ export default {
} }
.title { .title {
// height: 40px; height: 40px;
line-height: 40px; line-height: 40px;
border: 1ppx solid; border: 1ppx solid;
border: 1px solid #ebe7e7; border: 1px solid #ebe7e7;

View File

@ -785,7 +785,6 @@ export default {
this.loadRelatedTasks() this.loadRelatedTasks()
this.initLoader() this.initLoader()
this.getWwcTpl() this.getWwcTpl()
this.getHotKeys()
}) })
this.getTrialCriterion() this.getTrialCriterion()
DicomEvent.$on('isCanActiveNoneDicomTool', data => { DicomEvent.$on('isCanActiveNoneDicomTool', data => {

View File

@ -26,7 +26,7 @@
<!-- 下拉框 --> <!-- 下拉框 -->
<el-select v-else-if="question.Type === 'select'" v-model="questionForm[question.Id]" <el-select v-else-if="question.Type === 'select'" v-model="questionForm[question.Id]"
:disabled="readingTaskState >= 2 || ((question.TableQuestionType === 2 || question.QuestionGenre === 2) && !!question.DictionaryCode)" :disabled="readingTaskState >= 2 || ((question.TableQuestionType === 2 || question.QuestionGenre === 2) && !!question.DictionaryCode)"
clearable :multiple="question.OptionTypeEnum === 1" @change="((val) => { formItemChange(val, question) })"> clearable @change="((val) => { formItemChange(val, question) })">
<template v-if="question.TableQuestionType === 1"> <template v-if="question.TableQuestionType === 1">
<el-option v-for="item in organList" :key="item.Id" :label="item[question.DataTableColumn]" <el-option v-for="item in organList" :key="item.Id" :label="item[question.DataTableColumn]"
:value="item[question.DataTableColumn]" /> :value="item[question.DataTableColumn]" />
@ -90,6 +90,7 @@
} }
})" /> })" />
</div> </div>
<!-- 上传图像 --> <!-- 上传图像 -->
<el-upload v-else-if="question.Type === 'upload'" action :accept="accept" :limit="question.ImageCount" <el-upload v-else-if="question.Type === 'upload'" action :accept="accept" :limit="question.ImageCount"
:on-preview="handlePictureCardPreview" :before-upload="handleBeforeUpload" :http-request="uploadScreenshot" :on-preview="handlePictureCardPreview" :before-upload="handleBeforeUpload" :http-request="uploadScreenshot"

View File

@ -419,7 +419,7 @@ export default {
getOuterFormData(childrens, formData = {}) { getOuterFormData(childrens, formData = {}) {
childrens.forEach(item => { childrens.forEach(item => {
if (item.Type !== 'group' && item.Type !== 'summary') { if (item.Type !== 'group' && item.Type !== 'summary') {
formData[item.Id] = item.Answer ? item.OptionTypeEnum === 1 ? JSON.parse(item.Answer) : item.Answer : '' formData[item.Id] = item.Answer || ''
if (item.QuestionType === 44) { if (item.QuestionType === 44) {
// //
this.imageQualityId = item.Id this.imageQualityId = item.Id

View File

@ -49,6 +49,7 @@
} }
})" /> })" />
</div> </div>
</template> </template>
<!-- 多行文本输入框 --> <!-- 多行文本输入框 -->
<el-input v-if="qs.Type === 'textarea'" v-model="qsForm[qs.Id]" type="textarea" <el-input v-if="qs.Type === 'textarea'" v-model="qsForm[qs.Id]" type="textarea"

View File

@ -38,16 +38,18 @@
:tree-props="{ children: 'Childrens', hasChildren: 'hasChildren' }" size="mini"> :tree-props="{ children: 'Childrens', hasChildren: 'hasChildren' }" size="mini">
<el-table-column prop="" label="" show-overflow-tooltip width="350px"> <el-table-column prop="" label="" show-overflow-tooltip width="350px">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.QuestionName" :style="{color: ((scope.row.isLymphNodes === 1 && scope.row.QuestionMark === 1) || (scope.row.isLymphNodes === 0 && scope.row.QuestionMark === 0)) && (scope.row.LesionType === 0 || scope.row.LesionType === 5) ? '#f66' : '#fff'}">{{ scope.row.QuestionName }} <span v-if="scope.row.QuestionName"
:style="{ color: ((scope.row.isLymphNodes === 1 && scope.row.QuestionMark === 1) || (scope.row.isLymphNodes === 0 && scope.row.QuestionMark === 0)) && (scope.row.LesionType === 0 || scope.row.LesionType === 5) ? '#f66' : '#fff' }">{{
scope.row.QuestionName }}
<svg-icon <svg-icon
v-if="scope.row.ShowChartTypeEnum > 0 || (scope.row.LesionType === 0 && scope.row.ReportLayType === 1) || (scope.row.LesionType === 4 && scope.row.ReportLayType === 1)" v-if="scope.row.ShowChartTypeEnum > 0 || (scope.row.LesionType === 0 && scope.row.ReportLayType === 1)"
icon-class="readingChart" class="svg-icon svg-readingChart-mini" @click.stop="(e) => handleReadingChart({ icon-class="readingChart" class="svg-icon svg-readingChart-mini" @click.stop="(e) => handleReadingChart({
e, e,
data: { data: {
QuestionId: scope.row.RowIndex ? null : scope.row.QuestionId, QuestionId: scope.row.RowIndex ? null : scope.row.QuestionId,
TableQuestionId: scope.row.RowIndex ? scope.row.TableQuestionId : null, TableQuestionId: scope.row.RowIndex ? scope.row.TableQuestionId : null,
RowIndex: scope.row.RowIndex ? scope.row.RowIndex : null, RowIndex: scope.row.RowIndex ? scope.row.RowIndex : null,
ReportChartTypeEnum: (scope.row.LesionType === 0 && scope.row.ReportLayType === 1) ? 0 : (scope.row.LesionType === 4 && scope.row.ReportLayType === 1) ? 1 : null, ReportChartTypeEnum: scope.row.LesionType === 0 && scope.row.ReportLayType === 1 ? 0 : null,
QuestionName: scope.row.QuestionName QuestionName: scope.row.QuestionName
} }
})" /> })" />

View File

@ -27,10 +27,6 @@
<span v-else-if="item.Type === 'number'"> <span v-else-if="item.Type === 'number'">
{{ scope.row[item.Id] ? parseFloat(scope.row[item.Id]).toFixed(digitPlaces) : null }} {{ scope.row[item.Id] ? parseFloat(scope.row[item.Id]).toFixed(digitPlaces) : null }}
</span> </span>
<span v-else-if="item.Type === 'select' && item.OptionTypeEnum === 1">
{{ scope.row[item.Id] && Array.isArray(scope.row[item.Id]) ?
scope.row[item.Id].join(',') : scope.row[item.Id] }}
</span>
<span v-else> <span v-else>
{{ scope.row[item.Id] }} {{ scope.row[item.Id] }}
</span> </span>
@ -97,7 +93,6 @@
:autosize="{ minRows: 2, maxRows: 4 }" :disabled="readingTaskState === 2" /> :autosize="{ minRows: 2, maxRows: 4 }" :disabled="readingTaskState === 2" />
<!-- 下拉框 --> <!-- 下拉框 -->
<el-select v-if="question.Type === 'select'" v-model="questionForm[question.Id]" clearable <el-select v-if="question.Type === 'select'" v-model="questionForm[question.Id]" clearable
:multiple="question.OptionTypeEnum === 1"
:disabled="(question.TableQuestionType === 2 || question.QuestionGenre === 2) && !!question.DictionaryCode || readingTaskState === 2" :disabled="(question.TableQuestionType === 2 || question.QuestionGenre === 2) && !!question.DictionaryCode || readingTaskState === 2"
@change="((val) => { formItemChange(val, question) })"> @change="((val) => { formItemChange(val, question) })">
<template v-if="question.TableQuestionType === 1"> <template v-if="question.TableQuestionType === 1">
@ -532,8 +527,8 @@ export default {
this.handleCancel() this.handleCancel()
}) })
DicomEvent.$on('operateImageMarker', (data) => { DicomEvent.$on('operateImageMarker', (data) => {
let { operateStateEnum, QuestionId, picturePath, visitTaskId } = data let { operateStateEnum, QuestionId, picturePath } = data
if (this.question.Id === QuestionId && visitTaskId === this.visitTaskId) { if (this.question.Id === QuestionId) {
this.operateImageMarker({ operateStateEnum, question: this.question, picturePath }) this.operateImageMarker({ operateStateEnum, question: this.question, picturePath })
} }
}) })
@ -690,7 +685,7 @@ export default {
for (const k in this.QuestionsForm) { for (const k in this.QuestionsForm) {
if (reg.test(k)) { if (reg.test(k)) {
if (answers.findIndex(i => i.tableQuestionId === k) === -1) { if (answers.findIndex(i => i.tableQuestionId === k) === -1) {
answers.push({ tableQuestionId: k, answer: Array.isArray(this.QuestionsForm[k]) ? JSON.stringify(this.QuestionsForm[k]) : this.QuestionsForm[k] }) answers.push({ tableQuestionId: k, answer: this.QuestionsForm[k] })
} }
} }
} }
@ -798,7 +793,7 @@ export default {
} }
}, },
logic(rules, num = 0) { logic(rules, num = 0) {
let isNE = false, isNAN = false let isNE = false
try { try {
if (rules.CalculateQuestionList.length === 0) { if (rules.CalculateQuestionList.length === 0) {
return false return false
@ -816,8 +811,6 @@ export default {
} else { } else {
num *= parseFloat(q[o.TableQuestionId]) num *= parseFloat(q[o.TableQuestionId])
} }
} else {
isNAN = true
} }
if (q[o.TableQuestionId] === 'NE') { if (q[o.TableQuestionId] === 'NE') {
@ -833,8 +826,6 @@ export default {
} else { } else {
num += parseFloat(q[o.TableQuestionId]) num += parseFloat(q[o.TableQuestionId])
} }
} else {
isNAN = true
} }
if (q[o.TableQuestionId] === 'NE') { if (q[o.TableQuestionId] === 'NE') {
@ -850,8 +841,6 @@ export default {
} else { } else {
num += parseFloat(q[o.TableQuestionId]) num += parseFloat(q[o.TableQuestionId])
} }
} else {
isNAN = true
} }
if (q[o.TableQuestionId] === 'NE') { if (q[o.TableQuestionId] === 'NE') {
@ -865,8 +854,6 @@ export default {
this.questionForm[o.QuestionId].forEach(q => { this.questionForm[o.QuestionId].forEach(q => {
if (!isNaN(parseFloat(q[o.TableQuestionId]))) { if (!isNaN(parseFloat(q[o.TableQuestionId]))) {
arr.push(q[o.TableQuestionId]) arr.push(q[o.TableQuestionId])
} else {
isNAN = true
} }
if (q[o.TableQuestionId] === 'NE') { if (q[o.TableQuestionId] === 'NE') {
@ -880,8 +867,6 @@ export default {
this.questionForm[o.QuestionId].forEach(q => { this.questionForm[o.QuestionId].forEach(q => {
if (!isNaN(parseFloat(q[o.TableQuestionId]))) { if (!isNaN(parseFloat(q[o.TableQuestionId]))) {
arr.push(q[o.TableQuestionId]) arr.push(q[o.TableQuestionId])
} else {
isNAN = true
} }
if (q[o.TableQuestionId] === 'NE') { if (q[o.TableQuestionId] === 'NE') {
isNE = true isNE = true
@ -891,33 +876,15 @@ export default {
break; break;
} }
} else { } else {
switch (rules.CustomCalculateMark) { if (this.questionForm[o.TableQuestionId] === 'NE') {
case 15: isNE = true
if (!isNaN(parseFloat(this.questionForm[o.TableQuestionId]))) { }
num = Math.abs(this.questionForm[o.TableQuestionId]) if (!isNaN(parseFloat(this.questionForm[o.TableQuestionId]))) {
} num = parseFloat(this.questionForm[o.TableQuestionId])
else { }
isNAN = true if (!isNaN(num)) {
} dataArr.push(num)
if (this.questionForm[o.TableQuestionId] === 'NE') {
isNE = true
}
break;
default:
if (this.questionForm[o.TableQuestionId] === 'NE') {
isNE = true
}
if (!isNaN(parseFloat(this.questionForm[o.TableQuestionId]))) {
num = parseFloat(this.questionForm[o.TableQuestionId])
} else {
isNAN = true
}
if (!isNaN(num)) {
dataArr.push(num)
}
break;
} }
} }
} else { } else {
if (this.questionForm[o.TableQuestionId] === 'NE') { if (this.questionForm[o.TableQuestionId] === 'NE') {
@ -927,24 +894,18 @@ export default {
case 1: case 1:
if (!isNaN(parseFloat(this.questionForm[o.TableQuestionId]))) { if (!isNaN(parseFloat(this.questionForm[o.TableQuestionId]))) {
num += parseFloat(this.questionForm[o.TableQuestionId]) num += parseFloat(this.questionForm[o.TableQuestionId])
} else {
isNAN = true
} }
break; break;
case 2: case 2:
if (!isNaN(parseFloat(this.questionForm[o.TableQuestionId]))) { if (!isNaN(parseFloat(this.questionForm[o.TableQuestionId]))) {
num -= parseFloat(this.questionForm[o.TableQuestionId]) num -= parseFloat(this.questionForm[o.TableQuestionId])
} else {
isNAN = true
} }
break; break;
case 3: case 3:
if (!isNaN(parseFloat(this.questionForm[o.TableQuestionId]))) { if (!isNaN(parseFloat(this.questionForm[o.TableQuestionId]))) {
num *= parseFloat(this.questionForm[o.TableQuestionId]) num *= parseFloat(this.questionForm[o.TableQuestionId])
} else {
isNAN = true
} }
break; break;
@ -955,16 +916,12 @@ export default {
} else { } else {
num /= parseFloat(this.questionForm[o.TableQuestionId]) num /= parseFloat(this.questionForm[o.TableQuestionId])
} }
} else {
isNAN = true
} }
break; break;
case 10: case 10:
if (!isNaN(parseFloat(this.questionForm[o.TableQuestionId]))) { if (!isNaN(parseFloat(this.questionForm[o.TableQuestionId]))) {
dataArr.push(parseFloat(this.questionForm[o.TableQuestionId])) dataArr.push(parseFloat(this.questionForm[o.TableQuestionId]))
} else {
isNAN = true
} }
num = dataArr.length === 0 ? 0 : dataArr.reduce((acc, curr) => { num = dataArr.length === 0 ? 0 : dataArr.reduce((acc, curr) => {
return acc + (typeof curr === "number" ? curr : 0); return acc + (typeof curr === "number" ? curr : 0);
@ -973,43 +930,27 @@ export default {
case 11: case 11:
if (!isNaN(parseFloat(this.questionForm[o.TableQuestionId]))) { if (!isNaN(parseFloat(this.questionForm[o.TableQuestionId]))) {
dataArr.push(parseFloat(this.questionForm[o.TableQuestionId])) dataArr.push(parseFloat(this.questionForm[o.TableQuestionId]))
} else {
isNAN = true
} }
num = Math.max(...dataArr); num = Math.max(...dataArr);
break; break;
case 12: case 12:
if (!isNaN(parseFloat(this.questionForm[o.TableQuestionId]))) { if (!isNaN(parseFloat(this.questionForm[o.TableQuestionId]))) {
dataArr.push(parseFloat(this.questionForm[o.TableQuestionId])) dataArr.push(parseFloat(this.questionForm[o.TableQuestionId]))
} else {
isNAN = true
} }
num = Math.min(...dataArr); num = Math.min(...dataArr);
break; break;
case 13: case 13:
if (!isNaN(parseFloat(this.questionForm[o.TableQuestionId]))) { if (!isNaN(parseFloat(this.questionForm[o.TableQuestionId]))) {
dataArr.push(parseFloat(this.questionForm[o.TableQuestionId])) dataArr.push(parseFloat(this.questionForm[o.TableQuestionId]))
} else {
isNAN = true
} }
num = dataArr.length === 0 ? 0 : dataArr.reduce((acc, curr) => acc && curr) ? 1 : 0 num = dataArr.length === 0 ? 0 : dataArr.reduce((acc, curr) => acc && curr) ? 1 : 0
break; break;
case 14: case 14:
if (!isNaN(parseFloat(this.questionForm[o.TableQuestionId]))) { if (!isNaN(parseFloat(this.questionForm[o.TableQuestionId]))) {
dataArr.push(parseFloat(this.questionForm[o.TableQuestionId])) dataArr.push(parseFloat(this.questionForm[o.TableQuestionId]))
} else {
isNAN = true
} }
num = dataArr.length === 0 ? 0 : dataArr.reduce((acc, curr) => acc || curr, 0) ? 1 : 0; num = dataArr.length === 0 ? 0 : dataArr.reduce((acc, curr) => acc || curr, 0) ? 1 : 0;
break; break;
case 15:
if (!isNaN(parseFloat(this.questionForm[o.TableQuestionId]))) {
num = Math.abs(this.questionForm[o.TableQuestionId])
}
else {
isNAN = true
}
break;
} }
} }
}) })
@ -1019,7 +960,7 @@ export default {
if (isNE) { if (isNE) {
return 'NE' return 'NE'
} }
if (isNAN) { if (isNaN(num)) {
return null return null
} }
if (rules.ValueType === 2) { if (rules.ValueType === 2) {
@ -1072,7 +1013,7 @@ export default {
var CalculateQuestions = JSON.parse(v.CalculateQuestions); var CalculateQuestions = JSON.parse(v.CalculateQuestions);
var num, var num,
arr = []; arr = [];
let isNE = false, isNAN = false let isNE = false
CalculateQuestions.forEach((o, i) => { CalculateQuestions.forEach((o, i) => {
if (this.QuestionsForm[o.TableQuestionId] === 'NE') { if (this.QuestionsForm[o.TableQuestionId] === 'NE') {
isNE = true isNE = true
@ -1081,8 +1022,6 @@ export default {
if (!isNaN(parseFloat(this.QuestionsForm[o.TableQuestionId]))) { if (!isNaN(parseFloat(this.QuestionsForm[o.TableQuestionId]))) {
num = parseFloat(this.QuestionsForm[o.TableQuestionId]); num = parseFloat(this.QuestionsForm[o.TableQuestionId]);
arr = [num]; arr = [num];
} else {
isNAN = true
} }
} else { } else {
@ -1090,32 +1029,24 @@ export default {
case 1: case 1:
if (!isNaN(parseFloat(this.QuestionsForm[o.TableQuestionId]))) { if (!isNaN(parseFloat(this.QuestionsForm[o.TableQuestionId]))) {
num += parseFloat(this.QuestionsForm[o.TableQuestionId]); num += parseFloat(this.QuestionsForm[o.TableQuestionId]);
} else {
isNAN = true
} }
break; break;
case 2: case 2:
if (!isNaN(parseFloat(this.QuestionsForm[o.TableQuestionId]))) { if (!isNaN(parseFloat(this.QuestionsForm[o.TableQuestionId]))) {
num -= parseFloat(this.QuestionsForm[o.TableQuestionId]); num -= parseFloat(this.QuestionsForm[o.TableQuestionId]);
} else {
isNAN = true
} }
break; break;
case 3: case 3:
if (!isNaN(parseFloat(this.QuestionsForm[o.TableQuestionId]))) { if (!isNaN(parseFloat(this.QuestionsForm[o.TableQuestionId]))) {
num *= parseFloat(this.QuestionsForm[o.TableQuestionId]); num *= parseFloat(this.QuestionsForm[o.TableQuestionId]);
} else {
isNAN = true
} }
break; break;
case 4: case 4:
if (!isNaN(parseFloat(this.QuestionsForm[o.TableQuestionId]))) { if (!isNaN(parseFloat(this.QuestionsForm[o.TableQuestionId]))) {
num /= parseFloat(this.QuestionsForm[o.TableQuestionId]); num /= parseFloat(this.QuestionsForm[o.TableQuestionId]);
} else {
isNAN = true
} }
break; break;
@ -1124,9 +1055,6 @@ export default {
arr.push(parseFloat(this.QuestionsForm[o.TableQuestionId])); arr.push(parseFloat(this.QuestionsForm[o.TableQuestionId]));
} }
else {
isNAN = true
}
num = num =
arr.length === 0 arr.length === 0
? 0 ? 0
@ -1137,8 +1065,6 @@ export default {
case 8: case 8:
if (!isNaN(parseFloat(this.QuestionsForm[o.TableQuestionId]))) { if (!isNaN(parseFloat(this.QuestionsForm[o.TableQuestionId]))) {
arr.push(parseFloat(this.QuestionsForm[o.TableQuestionId])); arr.push(parseFloat(this.QuestionsForm[o.TableQuestionId]));
} else {
isNAN = true
} }
num = arr.length === 0 ? 0 : Math.max(...arr); num = arr.length === 0 ? 0 : Math.max(...arr);
@ -1146,8 +1072,6 @@ export default {
case 9: case 9:
if (!isNaN(parseFloat(this.QuestionsForm[o.TableQuestionId]))) { if (!isNaN(parseFloat(this.QuestionsForm[o.TableQuestionId]))) {
arr.push(parseFloat(this.QuestionsForm[o.TableQuestionId])); arr.push(parseFloat(this.QuestionsForm[o.TableQuestionId]));
} else {
isNAN = true
} }
num = arr.length === 0 ? 0 : Math.min(...arr); num = arr.length === 0 ? 0 : Math.min(...arr);
@ -1159,9 +1083,6 @@ export default {
if (isNE) { if (isNE) {
num = 'NE' num = 'NE'
} }
if (isNAN) {
num = ''
}
this.$set(this.QuestionsForm, v.Id, num.toString()); this.$set(this.QuestionsForm, v.Id, num.toString());
} }
}); });
@ -1332,12 +1253,11 @@ export default {
} }
if (!referencedImageId) return null if (!referencedImageId) return null
const cacheKey = annotation.from ? `volumeId:${referencedImageId}` : `imageId:${referencedImageId}` const cacheKey = annotation.from ? `volumeId:${referencedImageId}` : `imageId:${referencedImageId}`
const points = ['x', 'y', 'z']; const cachedStats = annotation.data?.cachedStats?.[cacheKey]
const cachedStats = annotation.markTool === "ArrowAnnotate" ? annotation.data?.handles?.points[0] : annotation.data?.cachedStats?.[cacheKey]
const hasProp = cachedStats const hasProp = cachedStats
&& (Object.prototype.hasOwnProperty.call(cachedStats, prop) || cachedStats[points.indexOf(prop)]) && Object.prototype.hasOwnProperty.call(cachedStats, prop)
if (!hasProp) return null if (!hasProp) return null
let value = annotation.markTool === "ArrowAnnotate" ? cachedStats[points.indexOf(prop)] : cachedStats[prop] let value = cachedStats[prop]
if (this.isNoneDicom && annotation.ps && value !== null) { if (this.isNoneDicom && annotation.ps && value !== null) {
let ps = annotation.ps let ps = annotation.ps
if (prop === 'area') { if (prop === 'area') {

View File

@ -197,9 +197,6 @@ export default {
if (i.Type !== 'group' && i.Type !== 'summary' && i.Id && i.Type !== 'table' && i.Type !== 'basicTable') { if (i.Type !== 'group' && i.Type !== 'summary' && i.Id && i.Type !== 'table' && i.Type !== 'basicTable') {
this.$set(this.questionForm, i.Id, i.Answer) this.$set(this.questionForm, i.Id, i.Answer)
} }
if (i.Type === 'select' && i.OptionTypeEnum === 1) {
this.$set(this.questionForm, i.Id, i.Answer ? JSON.parse(i.Answer) : [])
}
if (i.Type === 'table' || i.Type === 'basicTable') { if (i.Type === 'table' || i.Type === 'basicTable') {
i.TableQuestions.Questions.forEach(o => { i.TableQuestions.Questions.forEach(o => {
if (o.Type === 'number') { if (o.Type === 'number') {
@ -208,11 +205,6 @@ export default {
}) })
this.$set(this.questionImageToolAttributeInfo, o.Id, o.ImageToolAttribute) this.$set(this.questionImageToolAttributeInfo, o.Id, o.ImageToolAttribute)
} }
if (o.Type === 'select' && o.OptionTypeEnum === 1) {
i.TableQuestions.Answers.forEach((ite, index) => {
this.$set(i.TableQuestions.Answers[index], o.Id, i.TableQuestions.Answers[index][o.Id] ? JSON.parse(i.TableQuestions.Answers[index][o.Id]) : [])
})
}
}) })
this.$set(this.questionForm, i.Id, i.TableQuestions.Answers) this.$set(this.questionForm, i.Id, i.TableQuestions.Answers)
} }
@ -245,11 +237,7 @@ export default {
try { try {
var answers = [] var answers = []
for (const k in this.questionForm) { for (const k in this.questionForm) {
if (this.questionForm[k] instanceof Array) { if (this.questionForm[k] instanceof Array) { } else {
if (this.questionForm[k].length > 0 && Object.prototype.toString.call(this.questionForm[k][0]) === '[object String]') {
answers.push({ id: k, answer: JSON.stringify(this.questionForm[k]) })
}
} else {
answers.push({ id: k, answer: this.questionForm[k] }) answers.push({ id: k, answer: this.questionForm[k] })
} }
} }
@ -290,11 +278,7 @@ export default {
this.loading = true this.loading = true
var answers = [] var answers = []
for (const k in this.questionForm) { for (const k in this.questionForm) {
if (this.questionForm[k] instanceof Array) { if (this.questionForm[k] instanceof Array) { } else {
if (this.questionForm[k].length > 0 && Object.prototype.toString.call(this.questionForm[k][0]) === '[object String]') {
answers.push({ id: k, answer: JSON.stringify(this.questionForm[k]) })
}
} else {
answers.push({ readingQuestionTrialId: k, answer: this.questionForm[k] }) answers.push({ readingQuestionTrialId: k, answer: this.questionForm[k] })
} }
} }
@ -575,7 +559,7 @@ export default {
if (!item.MeasureData || item.MeasureData.annotationUID !== annotation.annotationUID) continue if (!item.MeasureData || item.MeasureData.annotationUID !== annotation.annotationUID) continue
const isTableMode = item.TableQuestionId const isTableMode = item.TableQuestionId
if (!isTableMode && this.questionsMarkStatus[item.QuestionId] && !this.questionsMarkStatus[item.QuestionId].isSaved && this.questionsMarkStatus[item.QuestionId].isMarked) { if (!isTableMode && this.questionsMarkStatus[item.QuestionId] && !this.questionsMarkStatus[item.QuestionId].isSaved && this.questionsMarkStatus[item.QuestionId].isMarked) {
DicomEvent.$emit('operateImageMarker', { QuestionId: item.QuestionId, operateStateEnum: 5, picturePath, visitTaskId: this.visitTaskId }) DicomEvent.$emit('operateImageMarker', { QuestionId: item.QuestionId, operateStateEnum: 5, picturePath })
break break
} }
} }
@ -999,12 +983,11 @@ export default {
} }
if (!referencedImageId) return null if (!referencedImageId) return null
const cacheKey = annotation.from ? `volumeId:${referencedImageId}` : `imageId:${referencedImageId}` const cacheKey = annotation.from ? `volumeId:${referencedImageId}` : `imageId:${referencedImageId}`
const points = ['x', 'y', 'z'] const cachedStats = annotation.data?.cachedStats?.[cacheKey]
const cachedStats = annotation.markTool === "ArrowAnnotate" ? annotation.data?.handles?.points[0] : annotation.data?.cachedStats?.[cacheKey]
const hasProp = cachedStats const hasProp = cachedStats
&& (Object.prototype.hasOwnProperty.call(cachedStats, prop) || cachedStats[points.indexOf(prop)]) && Object.prototype.hasOwnProperty.call(cachedStats, prop)
if (!hasProp) return null if (!hasProp) return null
let value = annotation.markTool === "ArrowAnnotate" ? cachedStats[points.indexOf(prop)] : cachedStats[prop] let value = cachedStats[prop]
if (this.isNoneDicom && annotation.ps && value !== null) { if (this.isNoneDicom && annotation.ps && value !== null) {
let ps = annotation.ps let ps = annotation.ps
if (prop === 'area') { if (prop === 'area') {

View File

@ -22,8 +22,7 @@
:autosize="{ minRows: 2, maxRows: 4 }" /> :autosize="{ minRows: 2, maxRows: 4 }" />
<!-- 下拉框 --> <!-- 下拉框 -->
<el-select v-if="question.Type === 'select'" v-model="questionForm[question.Id]" clearable <el-select v-if="question.Type === 'select'" v-model="questionForm[question.Id]" clearable
:multiple="question.OptionTypeEnum === 1" :disabled="(question.TableQuestionType === 2 || question.IsPreinstall || question.QuestionGenre === 2) || (question.IsCopy && type === 'edit' && !isBaseline && questionForm.IsCurrentTaskAdd === 'False')"
:disabled="(question.TableQuestionType === 2 || question.IsPreinstall || question.QuestionGenre === 2) || (question.IsCopy && type === 'edit' && !IsBaseline && questionForm.IsCurrentTaskAdd === 'False')"
@change="((val) => { formItemChange(val, question) })"> @change="((val) => { formItemChange(val, question) })">
<template v-if="question.TableQuestionType === 1"> <template v-if="question.TableQuestionType === 1">
<el-option v-for="item in organList" :key="item.Id" :label="item[question.DataTableColumn]" <el-option v-for="item in organList" :key="item.Id" :label="item[question.DataTableColumn]"

View File

@ -81,35 +81,24 @@
<el-select <el-select
v-else-if="questionForm[scope.row.QuestionId] instanceof Array && (scope.row.Type === 'select' || scope.row.Type === 'radio') && !scope.row.IsShowInDicom && ((task.IsBaseLine && scope.row.LimitEdit === 1) || (!task.IsBaseLine && scope.row.LimitEdit === 2) || scope.row.LimitEdit === 0)" v-else-if="questionForm[scope.row.QuestionId] instanceof Array && (scope.row.Type === 'select' || scope.row.Type === 'radio') && !scope.row.IsShowInDicom && ((task.IsBaseLine && scope.row.LimitEdit === 1) || (!task.IsBaseLine && scope.row.LimitEdit === 2) || scope.row.LimitEdit === 0)"
v-model="questionForm[scope.row.QuestionId][scope.row.xfIndex][scope.row.TableQuestionId]" v-model="questionForm[scope.row.QuestionId][scope.row.xfIndex][scope.row.TableQuestionId]"
size="mini" clearable :multiple="scope.row.OptionTypeEnum === 1"> size="mini" clearable>
<template> <template>
<el-option v-for="val in scope.row.TypeValue.split('|')" :key="val" :label="val" :value="val" /> <el-option v-for="val in scope.row.TypeValue.split('|')" :key="val" :label="val" :value="val" />
</template> </template>
</el-select> </el-select>
<span <span
v-else-if="questionForm[scope.row.QuestionId] instanceof Array && questionForm[scope.row.QuestionId][scope.row.xfIndex] && questionForm[scope.row.QuestionId][scope.row.xfIndex][scope.row.TableQuestionId] && (scope.row.Type === 'select' || scope.row.Type === 'radio')"> v-else-if="questionForm[scope.row.QuestionId] instanceof Array && (scope.row.Type === 'select' || scope.row.Type === 'radio')">
{{ {{ questionForm[scope.row.QuestionId][scope.row.xfIndex][scope.row.TableQuestionId] }}
Array.isArray(questionForm[scope.row.QuestionId][scope.row.xfIndex][scope.row.TableQuestionId])
?
questionForm[scope.row.QuestionId][scope.row.xfIndex][scope.row.TableQuestionId].join(',') :
questionForm[scope.row.QuestionId][scope.row.xfIndex][scope.row.TableQuestionId]
}}
</span> </span>
<el-select <el-select
v-else-if="(scope.row.Type === 'select' || scope.row.Type === 'radio') && !scope.row.IsShowInDicom && ((task.IsBaseLine && scope.row.LimitEdit === 1) || (!task.IsBaseLine && scope.row.LimitEdit === 2) || scope.row.LimitEdit === 0)" v-else-if="(scope.row.Type === 'select' || scope.row.Type === 'radio') && !scope.row.IsShowInDicom && ((task.IsBaseLine && scope.row.LimitEdit === 1) || (!task.IsBaseLine && scope.row.LimitEdit === 2) || scope.row.LimitEdit === 0)"
v-model="questionForm[scope.row.QuestionId]" size="mini" clearable v-model="questionForm[scope.row.QuestionId]" size="mini" clearable>
:multiple="scope.row.OptionTypeEnum === 1">
<template> <template>
<el-option v-for="val in scope.row.TypeValue.split('|')" :key="val" :label="val" :value="val" /> <el-option v-for="val in scope.row.TypeValue.split('|')" :key="val" :label="val" :value="val" />
</template> </template>
</el-select> </el-select>
<span v-else-if="scope.row.Type === 'select' || scope.row.Type === 'radio'"> <span v-else-if="scope.row.Type === 'select' || scope.row.Type === 'radio'">
{{ {{ questionForm[scope.row.QuestionId] }}
questionForm[scope.row.QuestionId] && Array.isArray(questionForm[scope.row.QuestionId]) ?
questionForm[scope.row.QuestionId].join(',') :
questionForm[scope.row.QuestionId]
}}
</span> </span>
<el-input <el-input
v-else-if="scope.row.DataSource !== 1 && questionForm[scope.row.QuestionId] instanceof Array && scope.row.Type === 'number' && (scope.row.xfIndex || scope.row.xfIndex === 0) && !scope.row.IsShowInDicom && ((task.IsBaseLine && scope.row.LimitEdit === 1) || (!task.IsBaseLine && scope.row.LimitEdit === 2) || scope.row.LimitEdit === 0)" v-else-if="scope.row.DataSource !== 1 && questionForm[scope.row.QuestionId] instanceof Array && scope.row.Type === 'number' && (scope.row.xfIndex || scope.row.xfIndex === 0) && !scope.row.IsShowInDicom && ((task.IsBaseLine && scope.row.LimitEdit === 1) || (!task.IsBaseLine && scope.row.LimitEdit === 2) || scope.row.LimitEdit === 0)"
@ -184,10 +173,7 @@
</span> </span>
</template> </template>
<template v-else-if="scope.row.DictionaryCode"> <template v-else-if="scope.row.DictionaryCode">
{{scope.row.Answers[task.VisitTaskId] instanceof Array {{ $fd(scope.row.DictionaryCode, scope.row.Answers[task.VisitTaskId]) }}
? scope.row.Answers[task.VisitTaskId].map(item => $fd(scope.row.DictionaryCode,
item)).join(",") : $fd(scope.row.DictionaryCode,
scope.row.Answers[task.VisitTaskId])}}
</template> </template>
<template v-else-if="criterionType === 10"> <template v-else-if="criterionType === 10">
{{ {{
@ -473,7 +459,7 @@ export default {
}) })
}, },
logic(rules, num = 0) { logic(rules, num = 0) {
let isNE = false, isNAN = false let isNE = false
try { try {
if (rules.CalculateQuestionList.length === 0) { if (rules.CalculateQuestionList.length === 0) {
return false return false
@ -494,8 +480,6 @@ export default {
} else { } else {
num *= parseFloat(q[o.TableQuestionId]) num *= parseFloat(q[o.TableQuestionId])
} }
} else {
isNAN = true
} }
if (q[o.TableQuestionId] === 'NE') { if (q[o.TableQuestionId] === 'NE') {
@ -511,8 +495,6 @@ export default {
} else { } else {
num += isNaN(parseFloat(q[o.TableQuestionId])) ? null : parseFloat(q[o.TableQuestionId]) num += isNaN(parseFloat(q[o.TableQuestionId])) ? null : parseFloat(q[o.TableQuestionId])
} }
} else {
isNAN = true
} }
if (q[o.TableQuestionId] === 'NE') { if (q[o.TableQuestionId] === 'NE') {
isNE = true isNE = true
@ -527,8 +509,6 @@ export default {
} else { } else {
num += parseFloat(q[o.TableQuestionId]) num += parseFloat(q[o.TableQuestionId])
} }
} else {
isNAN = true
} }
if (q[o.TableQuestionId] === 'NE') { if (q[o.TableQuestionId] === 'NE') {
isNE = true isNE = true
@ -541,8 +521,6 @@ export default {
this.questionForm[o.QuestionId].forEach(q => { this.questionForm[o.QuestionId].forEach(q => {
if (!isNaN(parseFloat(q[o.TableQuestionId]))) { if (!isNaN(parseFloat(q[o.TableQuestionId]))) {
arr.push(q[o.TableQuestionId]) arr.push(q[o.TableQuestionId])
} else {
isNAN = true
} }
if (q[o.TableQuestionId] === 'NE') { if (q[o.TableQuestionId] === 'NE') {
@ -556,29 +534,17 @@ export default {
this.questionForm[o.QuestionId].forEach(q => { this.questionForm[o.QuestionId].forEach(q => {
if (!isNaN(parseFloat(q[o.TableQuestionId]))) { if (!isNaN(parseFloat(q[o.TableQuestionId]))) {
arr.push(q[o.TableQuestionId]) arr.push(q[o.TableQuestionId])
} else {
isNAN = true
} }
if (q[o.TableQuestionId] === 'NE') { if (q[o.TableQuestionId] === 'NE') {
isNE = true isNE = true
} }
}) })
num = arr1.length === 0 ? 0 : Math.min(...arr1) num = arr1.length === 0 ? 0 : Math.min(...arr1)
break; break
case 15:
if (!isNaN(parseFloat(this.questionForm[o.TableQuestionId]))) {
num = Math.abs(this.questionForm[o.TableQuestionId])
}
else {
isNAN = true
}
break;
} }
} else { } else {
if (!isNaN(parseFloat(this.questionForm[o.TableQuestionId]))) { if (!isNaN(parseFloat(this.questionForm[o.TableQuestionId]))) {
num = parseFloat(this.questionForm[o.TableQuestionId]) num = parseFloat(this.questionForm[o.TableQuestionId])
} else {
isNAN = true
} }
} }
@ -587,32 +553,24 @@ export default {
case 1: case 1:
if (!isNaN(parseFloat(this.questionForm[o.TableQuestionId]))) { if (!isNaN(parseFloat(this.questionForm[o.TableQuestionId]))) {
num += parseFloat(this.questionForm[o.TableQuestionId]) num += parseFloat(this.questionForm[o.TableQuestionId])
} else {
isNAN = true
} }
break break
case 2: case 2:
if (!isNaN(parseFloat(this.questionForm[o.TableQuestionId]))) { if (!isNaN(parseFloat(this.questionForm[o.TableQuestionId]))) {
num -= parseFloat(this.questionForm[o.TableQuestionId]) num -= parseFloat(this.questionForm[o.TableQuestionId])
} else {
isNAN = true
} }
break break
case 3: case 3:
if (!isNaN(parseFloat(this.questionForm[o.TableQuestionId]))) { if (!isNaN(parseFloat(this.questionForm[o.TableQuestionId]))) {
num *= parseFloat(this.questionForm[o.TableQuestionId]) num *= parseFloat(this.questionForm[o.TableQuestionId])
} else {
isNAN = true
} }
break break
case 4: case 4:
if (!isNaN(parseFloat(this.questionForm[o.TableQuestionId]))) { if (!isNaN(parseFloat(this.questionForm[o.TableQuestionId]))) {
num /= parseFloat(this.questionForm[o.TableQuestionId]) num /= parseFloat(this.questionForm[o.TableQuestionId])
} else {
isNAN = true
} }
// num /= parseFloat(this.questionForm[o.TableQuestionId]) // num /= parseFloat(this.questionForm[o.TableQuestionId])
@ -620,8 +578,6 @@ export default {
case 10: case 10:
if (!isNaN(parseFloat(this.questionForm[o.TableQuestionId]))) { if (!isNaN(parseFloat(this.questionForm[o.TableQuestionId]))) {
dataArr.push(parseFloat(this.questionForm[o.TableQuestionId])) dataArr.push(parseFloat(this.questionForm[o.TableQuestionId]))
} else {
isNAN = true
} }
num = dataArr.length === 0 ? 0 : dataArr.reduce((acc, curr) => { num = dataArr.length === 0 ? 0 : dataArr.reduce((acc, curr) => {
return acc + (typeof curr === "number" ? curr : 0); return acc + (typeof curr === "number" ? curr : 0);
@ -630,40 +586,27 @@ export default {
case 11: case 11:
if (!isNaN(parseFloat(this.questionForm[o.TableQuestionId]))) { if (!isNaN(parseFloat(this.questionForm[o.TableQuestionId]))) {
dataArr.push(parseFloat(this.questionForm[o.TableQuestionId])) dataArr.push(parseFloat(this.questionForm[o.TableQuestionId]))
} else {
isNAN = true
} }
num = Math.max(...dataArr); num = Math.max(...dataArr);
break; break;
case 12: case 12:
if (!isNaN(parseFloat(this.questionForm[o.TableQuestionId]))) { if (!isNaN(parseFloat(this.questionForm[o.TableQuestionId]))) {
dataArr.push(parseFloat(this.questionForm[o.TableQuestionId])) dataArr.push(parseFloat(this.questionForm[o.TableQuestionId]))
} else {
isNAN = true
} }
num = Math.min(...dataArr); num = Math.min(...dataArr);
break; break;
case 13: case 13:
if (!isNaN(parseFloat(this.questionForm[o.TableQuestionId]))) { if (!isNaN(parseFloat(this.questionForm[o.TableQuestionId]))) {
dataArr.push(parseFloat(this.questionForm[o.TableQuestionId])) dataArr.push(parseFloat(this.questionForm[o.TableQuestionId]))
} else {
isNAN = true
} }
num = dataArr.length === 0 ? 0 : dataArr.reduce((acc, curr) => acc && curr) ? 1 : 0 num = dataArr.length === 0 ? 0 : dataArr.reduce((acc, curr) => acc && curr) ? 1 : 0
break; break;
case 14: case 14:
if (!isNaN(parseFloat(this.questionForm[o.TableQuestionId]))) { if (!isNaN(parseFloat(this.questionForm[o.TableQuestionId]))) {
dataArr.push(parseFloat(this.questionForm[o.TableQuestionId])) dataArr.push(parseFloat(this.questionForm[o.TableQuestionId]))
} else {
isNAN = true
} }
num = dataArr.length === 0 ? 0 : dataArr.reduce((acc, curr) => acc || curr, 0) ? 1 : 0; num = dataArr.length === 0 ? 0 : dataArr.reduce((acc, curr) => acc || curr, 0) ? 1 : 0;
break; break;
case 15:
if (!isNaN(parseFloat(this.questionForm[o.TableQuestionId]))) {
num = Math.abs(this.questionForm[o.TableQuestionId])
}
break;
} }
} }
}) })
@ -673,9 +616,6 @@ export default {
if (isNE) { if (isNE) {
return 'NE' return 'NE'
} }
if (isNAN) {
return false
}
if (rules.ValueType === 2) { if (rules.ValueType === 2) {
num = num * 100 num = num * 100
} }
@ -703,54 +643,39 @@ export default {
}).catch(() => { this.loading = false }) }).catch(() => { this.loading = false })
}, },
getQuestions(questions) { getQuestions(questions) {
try { const arr = []
const arr = [] if (questions.length !== 0) {
if (questions.length !== 0) { questions.forEach((item) => {
questions.forEach((item) => { const obj = item
const obj = item this.$set(obj, 'Answers', {})
this.$set(obj, 'Answers', {}) item.Answer.forEach(i => {
item.Answer.forEach(i => { if (item.DictionaryCode) {
if (item.DictionaryCode) { this.$set(obj.Answers, i.VisitTaskId, i.Answer ? parseInt(i.Answer) : null)
if (item.Type === 'select' && item.OptionTypeEnum === 1) { // obj.Answers[i.VisitTaskId] = i.Answer ? parseInt(i.Answer) : null
let val = i.Answer ? JSON.parse(i.Answer) : [] } else {
this.$set(obj.Answers, i.VisitTaskId, val) if (item.Type === 'number') {
let val = null
if (item.ValueType === 0) {
val = isNaN(parseFloat(i.Answer)) ? i.Answer : parseInt(i.Answer)
} else if (item.ValueType === 3) {
val = i.Answer
} else { } else {
this.$set(obj.Answers, i.VisitTaskId, i.Answer ? parseInt(i.Answer) : null) val = isNaN(parseFloat(i.Answer)) ? i.Answer : parseFloat(i.Answer).toFixed(this.digitPlaces)
} }
this.$set(obj.Answers, i.VisitTaskId, val)
// obj.Answers[i.VisitTaskId] = i.Answer ? parseInt(i.Answer) : null
} else { } else {
if (item.Type === 'number') { this.$set(obj.Answers, i.VisitTaskId, i.Answer)
let val = null
if (item.ValueType === 0) {
val = isNaN(parseFloat(i.Answer)) ? i.Answer : parseInt(i.Answer)
} else if (item.ValueType === 3) {
val = i.Answer
} else {
val = isNaN(parseFloat(i.Answer)) ? i.Answer : parseFloat(i.Answer).toFixed(this.digitPlaces)
}
this.$set(obj.Answers, i.VisitTaskId, val)
} else if (item.Type === 'select' && item.OptionTypeEnum === 1) {
let val = i.Answer ? JSON.parse(i.Answer) : []
this.$set(obj.Answers, i.VisitTaskId, val)
} else {
this.$set(obj.Answers, i.VisitTaskId, i.Answer)
}
// obj.Answers[i.VisitTaskId] = i.Answer
} }
}) // obj.Answers[i.VisitTaskId] = i.Answer
if (item.Childrens.length >= 1) {
obj.Childrens = this.getQuestions(item.Childrens)
} }
arr.push(obj)
}) })
} if (item.Childrens.length >= 1) {
return arr obj.Childrens = this.getQuestions(item.Childrens)
} catch (err) { }
console.log(err) arr.push(obj)
})
} }
return arr
}, },
handleShowDetail(val) { handleShowDetail(val) {
this.getReportInfo() this.getReportInfo()

View File

@ -261,7 +261,7 @@ const config = {
'name': '箭头工具', 'name': '箭头工具',
'icon': 'arrow', 'icon': 'arrow',
'toolName': 'ArrowAnnotate', 'toolName': 'ArrowAnnotate',
'props': ['x', 'y', 'z'], 'props': [],
'i18nKey': 'trials:reading:button:arrowAnnotate', 'i18nKey': 'trials:reading:button:arrowAnnotate',
'isDisabled': false, 'isDisabled': false,
'disabledReason': '' 'disabledReason': ''

View File

@ -1,53 +1,82 @@
<template> <template>
<div class="ad_review_wrapper"> <div class="ad_review_wrapper">
<div style="text-align: left"> <div style="text-align: left">
<el-button v-if="auditInfo.IsExistsClinicalData" type="text" @click="previewCD"> <el-button
v-if="auditInfo.IsExistsClinicalData"
type="text"
@click="previewCD"
>
{{ $t("trials:adReview:title:clinicalData") }} {{ $t("trials:adReview:title:clinicalData") }}
</el-button> </el-button>
</div> </div>
<el-table :data="adInfo.VisitInfoList" style="width: 100%"> <el-table :data="adInfo.VisitInfoList" style="width: 100%">
<!-- 访视名称 --> <!-- 访视名称 -->
<el-table-column prop="VisitName" :label="$t('trials:adReview:table:visitName')" show-overflow-tooltip <el-table-column
width="150" /> prop="VisitName"
:label="$t('trials:adReview:table:visitName')"
show-overflow-tooltip
width="150"
/>
<!-- 评估结果 --> <!-- 评估结果 -->
<el-table-column v-for="j in judgeQuestion" :key="j.armEnum" :label="$fd('ArmEnum', j.armEnum)" align="center" <el-table-column
prop="" show-overflow-tooltip> v-for="j in judgeQuestion"
:key="j.armEnum"
:label="$fd('ArmEnum', j.armEnum)"
align="center"
prop=""
show-overflow-tooltip
>
<template> <template>
<el-table-column v-for="(qs, i) in j.judgeQuestionList" :key="i" prop="" :label="qs" show-overflow-tooltip <el-table-column
width="150"> v-for="(qs, i) in j.judgeQuestionList"
:key="i"
prop=""
:label="qs"
show-overflow-tooltip
width="150"
>
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if=" <div
scope.row.VisitTaskInfoList[j.index].JudgeQuestionList[i] v-if="
.QuestionType === 1
">
<span v-if="
scope.row.VisitTaskInfoList[j.index].JudgeQuestionList[i] scope.row.VisitTaskInfoList[j.index].JudgeQuestionList[i]
.DictionaryCode .QuestionType === 1
">{{ "
$fd( >
<span
v-if="
scope.row.VisitTaskInfoList[j.index].JudgeQuestionList[i] scope.row.VisitTaskInfoList[j.index].JudgeQuestionList[i]
.DictionaryCode, .DictionaryCode
parseInt( "
scope.row.VisitTaskInfoList[j.index].JudgeQuestionList[ >{{
i $fd(
].Answer scope.row.VisitTaskInfoList[j.index].JudgeQuestionList[i]
.DictionaryCode,
parseInt(
scope.row.VisitTaskInfoList[j.index].JudgeQuestionList[
i
].Answer
)
) )
) }}</span
}}</span> >
<span v-else>{{ <span v-else>{{
scope.row.VisitTaskInfoList[j.index].JudgeQuestionList[i] scope.row.VisitTaskInfoList[j.index].JudgeQuestionList[i]
.Answer .Answer
}}</span> }}</span>
</span> </div>
<span v-else-if=" <div
scope.row.VisitTaskInfoList[j.index].JudgeQuestionList[i] v-else-if="
.QuestionType === 2
">
<div v-if="
scope.row.VisitTaskInfoList[j.index].JudgeQuestionList[i] scope.row.VisitTaskInfoList[j.index].JudgeQuestionList[i]
.Answer .QuestionType === 2
"> "
>
<div
v-if="
scope.row.VisitTaskInfoList[j.index].JudgeQuestionList[i]
.Answer
"
>
<span>{{ <span>{{
$fd( $fd(
"YesOrNo", "YesOrNo",
@ -56,11 +85,15 @@
) )
}}</span> }}</span>
<!-- 查看详情 --> <!-- 查看详情 -->
<el-button type="text" style="margin-left: 5px" @click=" <el-button
handleViewDetail( type="text"
scope.row.VisitTaskInfoList[j.index].GlobalVisitTaskId style="margin-left: 5px"
) @click="
"> handleViewDetail(
scope.row.VisitTaskInfoList[j.index].GlobalVisitTaskId
)
"
>
{{ $t("trials:adReview:table:view") }} {{ $t("trials:adReview:table:view") }}
</el-button> </el-button>
</div> </div>
@ -74,70 +107,115 @@
) )
}} }}
</div> </div>
</span> </div>
<span v-else> <div v-else>
{{ {{
scope.row.VisitTaskInfoList[j.index].JudgeQuestionList[i] scope.row.VisitTaskInfoList[j.index].JudgeQuestionList[i]
.Answer .Answer
}} }}
</span> </div>
<span>
{{
scope.row.VisitTaskInfoList[j.index].JudgeQuestionList[i].ValueType == 2 ? '%' :
scope.row.VisitTaskInfoList[j.index].JudgeQuestionList[i].CustomUnit ?
scope.row.VisitTaskInfoList[j.index].JudgeQuestionList[i].CustomUnit :
scope.row.VisitTaskInfoList[j.index].JudgeQuestionList[i].Unit ? $fd("Unit",
scope.row.VisitTaskInfoList[j.index].JudgeQuestionList[i].Unit) : ''
}}
</span>
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
</el-table-column> </el-table-column>
<!-- 查看详情 --> <!-- 查看详情 -->
<el-table-column :label="$t('trials:adReview:table:view')" width="200" :fixed="isFixed ? 'right' : false"> <el-table-column
:label="$t('trials:adReview:table:view')"
width="200"
:fixed="isFixed ? 'right' : false"
>
<template slot-scope="scope"> <template slot-scope="scope">
<!-- 查看R1详情 --> <!-- 查看R1详情 -->
<el-button type="text" :title="$t('trials:adReview:table:viewR1')" @click="handleView(scope.row, 1)"> <el-button
type="text"
:title="$t('trials:adReview:table:viewR1')"
@click="handleView(scope.row, 1)"
>
R1 R1
</el-button> </el-button>
<!-- 查看R2详情 --> <!-- 查看R2详情 -->
<el-button type="text" :title="$t('trials:adReview:table:viewR2')" @click="handleView(scope.row, 2)"> <el-button
type="text"
:title="$t('trials:adReview:table:viewR2')"
@click="handleView(scope.row, 2)"
>
R2 R2
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<h3>{{ $t("trials:adReview:title:adResult") }}</h3> <h3>{{ $t("trials:adReview:title:adResult") }}</h3>
<el-form ref="adForm" :model="adForm" style="width: 800px" label-width="100"> <el-form
ref="adForm"
:model="adForm"
style="width: 800px"
label-width="100"
>
<!-- 选择阅片人 --> <!-- 选择阅片人 -->
<el-form-item :label="$t('trials:adReview:title:choseReader')" prop="judgeResultTaskId"> <el-form-item
:label="$t('trials:adReview:title:choseReader')"
prop="judgeResultTaskId"
>
<el-radio-group v-model="adForm.judgeResultTaskId" disabled> <el-radio-group v-model="adForm.judgeResultTaskId" disabled>
<el-radio v-for="t in visitTaskArmList" :key="t.VisitTaskId" :label="t.VisitTaskId"> <el-radio
v-for="t in visitTaskArmList"
:key="t.VisitTaskId"
:label="t.VisitTaskId"
>
{{ $fd("ArmEnum", t.ArmEnum) }} {{ $fd("ArmEnum", t.ArmEnum) }}
</el-radio> </el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<!-- 裁判原因 --> <!-- 裁判原因 -->
<el-form-item :label="$t('trials:adReview:title:adReason')" prop="judgeResultRemark"> <el-form-item
<el-input v-model="adForm.judgeResultRemark" type="textarea" :autosize="{ minRows: 4, maxRows: 6 }" disabled /> :label="$t('trials:adReview:title:adReason')"
prop="judgeResultRemark"
>
<el-input
v-model="adForm.judgeResultRemark"
type="textarea"
:autosize="{ minRows: 4, maxRows: 6 }"
disabled
/>
</el-form-item> </el-form-item>
<!-- 截图说明 --> <!-- 截图说明 -->
<el-form-item :label="$t('trials:adReview:title:screenShot')"> <el-form-item :label="$t('trials:adReview:title:screenShot')">
<el-upload action=".png,.jpg,.jpeg" list-type="picture-card" :file-list="fileList" disabled class="disabled"> <el-upload
action=".png,.jpg,.jpeg"
list-type="picture-card"
:file-list="fileList"
disabled
class="disabled"
>
<i slot="default" class="el-icon-plus" /> <i slot="default" class="el-icon-plus" />
<div slot="file" slot-scope="{ file }" style="width: 100%; height: 100%"> <div
<viewer :ref="file.url" :images="images" style=" slot="file"
slot-scope="{ file }"
style="width: 100%; height: 100%"
>
<viewer
:ref="file.url"
:images="images"
style="
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
width: 100%; width: 100%;
height: 100%; height: 100%;
"> "
<img class="el-upload-list__item-thumbnail" :src="OSSclientConfig.basePath + file.url" alt="" >
crossorigin="anonymous" style="max-width: 100%; max-height: 100%" /> <img
class="el-upload-list__item-thumbnail"
:src="OSSclientConfig.basePath + file.url"
alt=""
crossorigin="anonymous"
style="max-width: 100%; max-height: 100%"
/>
<span class="el-upload-list__item-actions"> <span class="el-upload-list__item-actions">
<span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)"> <span
class="el-upload-list__item-preview"
@click="handlePictureCardPreview(file)"
>
<i class="el-icon-zoom-in" /> <i class="el-icon-zoom-in" />
</span> </span>
</span> </span>
@ -251,13 +329,17 @@ export default {
var path = ""; var path = "";
if (readingTool === 0 || readingTool === 2) { if (readingTool === 0 || readingTool === 2) {
path = `/readingDicoms?TrialReadingCriterionId=${trialReadingCriterionId}&trialId=${trialId}&subjectCode=${this.rowData.SubjectCode path = `/readingDicoms?TrialReadingCriterionId=${trialReadingCriterionId}&trialId=${trialId}&subjectCode=${
}&subjectId=${this.rowData.SubjectId this.rowData.SubjectCode
}&visitTaskId=${visitTaskId}&isReadingTaskViewInOrder=${isReadingTaskViewInOrder}&criterionType=${criterionType}&readingTool=${readingTool}&TokenKey=${token}&key=${new Date().getTime()}`; }&subjectId=${
this.rowData.SubjectId
}&visitTaskId=${visitTaskId}&isReadingTaskViewInOrder=${isReadingTaskViewInOrder}&criterionType=${criterionType}&readingTool=${readingTool}&TokenKey=${token}&key=${new Date().getTime()}`;
} else { } else {
path = `/noneDicomReading?TrialReadingCriterionId=${trialReadingCriterionId}&trialId=${trialId}&subjectCode=${this.rowData.SubjectCode path = `/noneDicomReading?TrialReadingCriterionId=${trialReadingCriterionId}&trialId=${trialId}&subjectCode=${
}&subjectId=${this.rowData.SubjectId this.rowData.SubjectCode
}&visitTaskId=${visitTaskId}&isReadingTaskViewInOrder=${isReadingTaskViewInOrder}&criterionType=${criterionType}&readingTool=${readingTool}&TokenKey=${token}&key=${new Date().getTime()}`; }&subjectId=${
this.rowData.SubjectId
}&visitTaskId=${visitTaskId}&isReadingTaskViewInOrder=${isReadingTaskViewInOrder}&criterionType=${criterionType}&readingTool=${readingTool}&TokenKey=${token}&key=${new Date().getTime()}`;
} }
var routeData = this.$router.resolve({ path }); var routeData = this.$router.resolve({ path });
window.open(routeData.href, "_blank"); window.open(routeData.href, "_blank");
@ -274,13 +356,17 @@ export default {
var path = ""; var path = "";
if (readingTool === 0 || readingTool === 2) { if (readingTool === 0 || readingTool === 2) {
path = `/readingDicoms?TrialReadingCriterionId=${trialReadingCriterionId}&trialId=${trialId}&subjectCode=${this.rowData.SubjectCode path = `/readingDicoms?TrialReadingCriterionId=${trialReadingCriterionId}&trialId=${trialId}&subjectCode=${
}&subjectId=${this.rowData.SubjectId}&visitTaskId=${task.VisitTaskId this.rowData.SubjectCode
}&isReadingTaskViewInOrder=${isReadingTaskViewInOrder}&criterionType=${criterionType}&readingTool=${readingTool}&TokenKey=${token}&key=${new Date().getTime()}`; }&subjectId=${this.rowData.SubjectId}&visitTaskId=${
task.VisitTaskId
}&isReadingTaskViewInOrder=${isReadingTaskViewInOrder}&criterionType=${criterionType}&readingTool=${readingTool}&TokenKey=${token}&key=${new Date().getTime()}`;
} else { } else {
path = `/noneDicomReading?TrialReadingCriterionId=${trialReadingCriterionId}&trialId=${trialId}&subjectCode=${this.rowData.SubjectCode path = `/noneDicomReading?TrialReadingCriterionId=${trialReadingCriterionId}&trialId=${trialId}&subjectCode=${
}&subjectId=${this.rowData.SubjectId}&visitTaskId=${task.VisitTaskId this.rowData.SubjectCode
}&isReadingTaskViewInOrder=${isReadingTaskViewInOrder}&criterionType=${criterionType}&readingTool=${readingTool}&TokenKey=${token}&key=${new Date().getTime()}`; }&subjectId=${this.rowData.SubjectId}&visitTaskId=${
task.VisitTaskId
}&isReadingTaskViewInOrder=${isReadingTaskViewInOrder}&criterionType=${criterionType}&readingTool=${readingTool}&TokenKey=${token}&key=${new Date().getTime()}`;
} }
var routeData = this.$router.resolve({ path }); var routeData = this.$router.resolve({ path });
window.open(routeData.href, "_blank"); window.open(routeData.href, "_blank");
@ -303,11 +389,9 @@ export default {
display: none; display: none;
} }
} }
::v-deep .el-upload-list__item { ::v-deep .el-upload-list__item {
transition: none !important; transition: none !important;
} }
::v-deep .el-upload-list__item-thumbnail { ::v-deep .el-upload-list__item-thumbnail {
/* 图片在方框内显示长边 */ /* 图片在方框内显示长边 */
object-fit: scale-down !important; object-fit: scale-down !important;

View File

@ -27,18 +27,12 @@
<el-table-column :label="$t('trials:medicalFeedback:table:visitPointCount')" align="center" prop="" <el-table-column :label="$t('trials:medicalFeedback:table:visitPointCount')" align="center" prop=""
show-overflow-tooltip> show-overflow-tooltip>
<template> <template>
<<<<<<< HEAD
<el-table-column v-for="(qs, index) in evaluationQsList" :key="index" prop="" :label="qs" show-overflow-tooltip <el-table-column v-for="(qs, index) in evaluationQsList" :key="index" prop="" :label="qs" show-overflow-tooltip
width="150"> width="150">
=======
<el-table-column v-for="(qs, index) in evaluationQsList" :key="index" prop="" :label="qs"
show-overflow-tooltip width="150">
>>>>>>> uat
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.BeforeQuestionList.length > index && scope.row.BeforeQuestionList[index].Answer"> <div v-if="scope.row.BeforeQuestionList.length > index && scope.row.BeforeQuestionList[index].Answer">
<span v-if="scope.row.BeforeQuestionList[index].DictionaryCode"> <span v-if="scope.row.BeforeQuestionList[index].DictionaryCode">
{{ {{
<<<<<<< HEAD
$fd(scope.row.BeforeQuestionList[index].DictionaryCode, parseInt(scope.row.BeforeQuestionList[index].Answer)) $fd(scope.row.BeforeQuestionList[index].DictionaryCode, parseInt(scope.row.BeforeQuestionList[index].Answer))
}} }}
</span> </span>
@ -46,24 +40,7 @@
scope.row.BeforeQuestionList[index].Answer === '-2' ? "NA" : scope.row.BeforeQuestionList[index].Answer scope.row.BeforeQuestionList[index].Answer === '-2' ? "NA" : scope.row.BeforeQuestionList[index].Answer
=== '-1' ? $t('trials:medicalFeedback:table:unKnow') : scope.row.BeforeQuestionList[index].Answer === '-1' ? $t('trials:medicalFeedback:table:unKnow') : scope.row.BeforeQuestionList[index].Answer
}}</span> }}</span>
=======
$fd(scope.row.BeforeQuestionList[index].DictionaryCode,
parseInt(scope.row.BeforeQuestionList[index].Answer))
}}
</span>
<span v-else-if="scope.row.BeforeQuestionList[index].QuestionType === 22">{{
scope.row.BeforeQuestionList[index].Answer === '-1' ? $t('trials:medicalFeedback:table:unKnow') :
scope.row.BeforeQuestionList[index].Answer }}</span>
>>>>>>> uat
<span v-else>{{ scope.row.BeforeQuestionList[index].Answer }}</span> <span v-else>{{ scope.row.BeforeQuestionList[index].Answer }}</span>
<span>
{{
scope.row.BeforeQuestionList[index].ValueType == 2 ? '%' :
scope.row.BeforeQuestionList[index].CustomUnit ?
scope.row.BeforeQuestionList[index].CustomUnit :
scope.row.BeforeQuestionList[index].Unit ? $fd("Unit", scope.row.BeforeQuestionList[index].Unit) : ''
}}
</span>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
@ -98,12 +75,7 @@
</span> </span>
<span v-else-if="scope.row.AfterQuestionList[index].DictionaryCode"> <span v-else-if="scope.row.AfterQuestionList[index].DictionaryCode">
{{ {{
<<<<<<< HEAD
$fd(scope.row.AfterQuestionList[index].DictionaryCode, parseInt(scope.row.AfterQuestionList[index].Answer)) $fd(scope.row.AfterQuestionList[index].DictionaryCode, parseInt(scope.row.AfterQuestionList[index].Answer))
=======
$fd(scope.row.AfterQuestionList[index].DictionaryCode,
parseInt(scope.row.AfterQuestionList[index].Answer))
>>>>>>> uat
}} }}
</span> </span>
<span v-else>{{ scope.row.AfterQuestionList[index].Answer }}</span> <span v-else>{{ scope.row.AfterQuestionList[index].Answer }}</span>
@ -134,23 +106,13 @@
<!-- 评估结果 --> <!-- 评估结果 -->
<el-table-column :label="$t('trials:globalReview:table:evaluationRes')" align="center" prop=""> <el-table-column :label="$t('trials:globalReview:table:evaluationRes')" align="center" prop="">
<template> <template>
<<<<<<< HEAD
<el-table-column v-for="(qs, index) in evaluationQsList" :key="index" prop="" :label="qs" show-overflow-tooltip <el-table-column v-for="(qs, index) in evaluationQsList" :key="index" prop="" :label="qs" show-overflow-tooltip
width="150"> width="150">
=======
<el-table-column v-for="(qs, index) in evaluationQsList" :key="index" prop="" :label="qs"
show-overflow-tooltip width="150">
>>>>>>> uat
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.BeforeQuestionList.length > index && scope.row.BeforeQuestionList[index].Answer"> <div v-if="scope.row.BeforeQuestionList.length > index && scope.row.BeforeQuestionList[index].Answer">
<span v-if="scope.row.BeforeQuestionList[index].DictionaryCode"> <span v-if="scope.row.BeforeQuestionList[index].DictionaryCode">
{{ {{
<<<<<<< HEAD
$fd(scope.row.BeforeQuestionList[index].DictionaryCode, parseInt(scope.row.BeforeQuestionList[index].Answer)) $fd(scope.row.BeforeQuestionList[index].DictionaryCode, parseInt(scope.row.BeforeQuestionList[index].Answer))
=======
$fd(scope.row.BeforeQuestionList[index].DictionaryCode,
parseInt(scope.row.BeforeQuestionList[index].Answer))
>>>>>>> uat
}} }}
</span> </span>
<span v-else>{{ scope.row.BeforeQuestionList[index].Answer }}</span> <span v-else>{{ scope.row.BeforeQuestionList[index].Answer }}</span>
@ -185,12 +147,7 @@
</span> </span>
<span v-else-if="scope.row.AfterQuestionList[index].DictionaryCode"> <span v-else-if="scope.row.AfterQuestionList[index].DictionaryCode">
{{ {{
<<<<<<< HEAD
$fd(scope.row.AfterQuestionList[index].DictionaryCode, parseInt(scope.row.AfterQuestionList[index].Answer)) $fd(scope.row.AfterQuestionList[index].DictionaryCode, parseInt(scope.row.AfterQuestionList[index].Answer))
=======
$fd(scope.row.AfterQuestionList[index].DictionaryCode,
parseInt(scope.row.AfterQuestionList[index].Answer))
>>>>>>> uat
}} }}
</span> </span>
<span v-else>{{ scope.row.AfterQuestionList[index].Answer }}</span> <span v-else>{{ scope.row.AfterQuestionList[index].Answer }}</span>

View File

@ -5,65 +5,109 @@
{{ $t('trials:adReview:title:clinicalData') }} {{ $t('trials:adReview:title:clinicalData') }}
</el-button> </el-button>
</div> </div>
<el-table :data="oncologyInfo.OncologyVisits" style="width: 100%"> <el-table
:data="oncologyInfo.OncologyVisits"
style="width: 100%"
>
<!-- 访视名称 --> <!-- 访视名称 -->
<el-table-column prop="VisitName" :label="$t('trials:oncologyReview:title:visitName')" show-overflow-tooltip <el-table-column
width="150" /> prop="VisitName"
:label="$t('trials:oncologyReview:title:visitName')"
show-overflow-tooltip
width="150"
/>
<!-- 影像学阅片结果 --> <!-- 影像学阅片结果 -->
<el-table-column :label="$t('trials:oncologyReview:title:readingRes')" align="center" prop="" <el-table-column
show-overflow-tooltip> :label="$t('trials:oncologyReview:title:readingRes')"
align="center"
prop=""
show-overflow-tooltip
>
<template> <template>
<el-table-column v-for="(qs, index) in questionCols" :key="qs" prop="" :label="qs" show-overflow-tooltip <el-table-column
width="150"> v-for="(qs,index) in questionCols"
:key="qs"
prop=""
:label="qs"
show-overflow-tooltip
width="150"
>
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.QuestionList[index].DictionaryCode"> <span v-if="scope.row.QuestionList[index].DictionaryCode">
{{ $fd(scope.row.QuestionList[index].DictionaryCode, parseInt(scope.row.QuestionList[index].Answer)) {{ $fd(scope.row.QuestionList[index].DictionaryCode,parseInt(scope.row.QuestionList[index].Answer)) }}
}}
</span> </span>
<span v-else> <span v-else>
{{ scope.row.QuestionList.length > index ? scope.row.QuestionList[index].Answer : '' }} {{ scope.row.QuestionList.length>index?scope.row.QuestionList[index].Answer:'' }}
</span>
<span>
{{
scope.row.QuestionList[index].ValueType == 2 ? '%' : scope.row.QuestionList[index].CustomUnit ?
scope.row.QuestionList[index].CustomUnit :
scope.row.QuestionList[index].Unit ? $fd("Unit", scope.row.QuestionList[index].Unit) : ''
}}
</span> </span>
</template> </template>
</el-table-column> </el-table-column>
<!-- 全局是否有更新 --> <!-- 全局是否有更新 -->
<el-table-column v-if="oncologyInfo.IsShowDetail" prop="IsHaveChange" <el-table-column
:label="$t('trials:oncologyReview:title:isGlobalUpdate')" show-overflow-tooltip width="150"> v-if="oncologyInfo.IsShowDetail"
prop="IsHaveChange"
:label="$t('trials:oncologyReview:title:isGlobalUpdate')"
show-overflow-tooltip
width="150"
>
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ $fd('YesOrNo', scope.row.IsHaveChange) }}</span> <span>{{ $fd('YesOrNo', scope.row.IsHaveChange ) }}</span>
<!-- 查看详情 --> <!-- 查看详情 -->
<el-button v-if="scope.row.IsHaveChange && !!oncologyInfo.GlobalTaskId" type="text" <el-button
style="margin-left:5px;" @click="handleViewDetail(oncologyInfo.GlobalTaskId)"> v-if="scope.row.IsHaveChange && !!oncologyInfo.GlobalTaskId"
type="text"
style="margin-left:5px;"
@click="handleViewDetail(oncologyInfo.GlobalTaskId)"
>
{{ $t('trials:oncologyReview:title:view') }} {{ $t('trials:oncologyReview:title:view') }}
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
<!-- 访视点注释 --> <!-- 访视点注释 -->
<el-table-column v-if="oncologyInfo.IsShowDetail" prop="VisitRemark" <el-table-column
:label="$t('trials:oncologyReview:title:visitRemark')" show-overflow-tooltip width="150" /> v-if="oncologyInfo.IsShowDetail"
prop="VisitRemark"
:label="$t('trials:oncologyReview:title:visitRemark')"
show-overflow-tooltip
width="150"
/>
</template> </template>
</el-table-column> </el-table-column>
<!-- 肿瘤学阅片结果 --> <!-- 肿瘤学阅片结果 -->
<el-table-column :label="$t('trials:oncologyReview:title:oReviewRes')" align="center" prop=""> <el-table-column
:label="$t('trials:oncologyReview:title:oReviewRes')"
align="center"
prop=""
>
<template> <template>
<!-- 结论 --> <!-- 结论 -->
<el-table-column prop="EvaluationResult" :label="$t('trials:oncologyReview:title:findings')" <el-table-column
show-overflow-tooltip width="150"> prop="EvaluationResult"
:label="$t('trials:oncologyReview:title:findings')"
show-overflow-tooltip
width="150"
>
<template slot-scope="scope"> <template slot-scope="scope">
<el-select v-if="oncologyInfo.ReadingTaskState < 2" v-model="scope.row.EvaluationResult" <el-select
:placeholder="$t('common:ruleMessage:select')"> v-if="oncologyInfo.ReadingTaskState < 2"
<el-option v-for="item in assessTypeList" :key="item.Id" :label="item.Value" :value="item.Code" /> v-model="scope.row.EvaluationResult"
:placeholder="$t('common:ruleMessage:select')"
>
<el-option
v-for="item in assessTypeList"
:key="item.Id"
:label="item.Value"
:value="item.Code"
/>
</el-select> </el-select>
<span v-else>{{ getAssessType(scope.row.EvaluationResult) }}</span> <span v-else>{{ getAssessType(scope.row.EvaluationResult) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="EvaluationReason" show-overflow-tooltip width="250"> <el-table-column
prop="EvaluationReason"
show-overflow-tooltip
width="250"
>
<template slot="header"> <template slot="header">
<el-tooltip placement="top"> <el-tooltip placement="top">
@ -79,18 +123,29 @@
</el-tooltip> </el-tooltip>
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-if="oncologyInfo.ReadingTaskState < 2" v-model="scope.row.EvaluationReason" /> <el-input
v-if="oncologyInfo.ReadingTaskState < 2"
v-model="scope.row.EvaluationReason"
/>
<span v-else>{{ scope.row.EvaluationReason }}</span> <span v-else>{{ scope.row.EvaluationReason }}</span>
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column v-if="oncologyInfo.IsShowDetail" :label="$t('common:action:action')" width="120"> <el-table-column
v-if="oncologyInfo.IsShowDetail"
:label="$t('common:action:action')"
width="120"
>
<template slot-scope="scope"> <template slot-scope="scope">
<!-- 查看详情 --> <!-- 查看详情 -->
<el-button circle :title="$t('trials:oncologyReview:title:view')" icon="el-icon-view" <el-button
@click="handleViewDetail(scope.row.VisitTaskId)" /> circle
:title="$t('trials:oncologyReview:title:view')"
icon="el-icon-view"
@click="handleViewDetail(scope.row.VisitTaskId)"
/>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -146,7 +201,7 @@ export default {
var trialReadingCriterionId = this.rowData.TrialReadingCriterionId var trialReadingCriterionId = this.rowData.TrialReadingCriterionId
var path = '' var path = ''
if (readingTool === 0 || readingTool === 2) { if (readingTool === 0 || readingTool === 2 ) {
path = `/readingDicoms?TrialReadingCriterionId=${trialReadingCriterionId}&trialId=${trialId}&subjectCode=${this.rowData.SubjectCode}&subjectId=${this.rowData.SubjectId}&visitTaskId=${visitTaskId}&isReadingTaskViewInOrder=${isReadingTaskViewInOrder}&criterionType=${criterionType}&readingTool=${readingTool}&TokenKey=${token}&key=${new Date().getTime()}` path = `/readingDicoms?TrialReadingCriterionId=${trialReadingCriterionId}&trialId=${trialId}&subjectCode=${this.rowData.SubjectCode}&subjectId=${this.rowData.SubjectId}&visitTaskId=${visitTaskId}&isReadingTaskViewInOrder=${isReadingTaskViewInOrder}&criterionType=${criterionType}&readingTool=${readingTool}&TokenKey=${token}&key=${new Date().getTime()}`
} else { } else {
path = `/noneDicomReading?TrialReadingCriterionId=${trialReadingCriterionId}&trialId=${trialId}&subjectCode=${this.rowData.SubjectCode}&subjectId=${this.rowData.SubjectId}&visitTaskId=${visitTaskId}&isReadingTaskViewInOrder=${isReadingTaskViewInOrder}&criterionType=${criterionType}&readingTool=${readingTool}&TokenKey=${token}&key=${new Date().getTime()}` path = `/noneDicomReading?TrialReadingCriterionId=${trialReadingCriterionId}&trialId=${trialId}&subjectCode=${this.rowData.SubjectCode}&subjectId=${this.rowData.SubjectId}&visitTaskId=${visitTaskId}&isReadingTaskViewInOrder=${isReadingTaskViewInOrder}&criterionType=${criterionType}&readingTool=${readingTool}&TokenKey=${token}&key=${new Date().getTime()}`

View File

@ -1,42 +1,48 @@
<template> <template>
<el-table ref="taskTbl" :data="taskList" :row-class-name="rowClass" class="historicAssess_wrapper"> <el-table
ref="taskTbl"
:data="taskList"
:row-class-name="rowClass"
class="historicAssess_wrapper"
>
<!-- 访视/阅片期名称 --> <!-- 访视/阅片期名称 -->
<el-table-column prop="VisitTaskNum" :label="$t('trials:medicalFeedback:table:taskName')" width="200" <el-table-column
sortable="custom" show-overflow-tooltip> prop="VisitTaskNum"
:label="$t('trials:medicalFeedback:table:taskName')"
width="200"
sortable="custom"
show-overflow-tooltip
>
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.TaskName }} {{ scope.row.TaskName }}
</template> </template>
</el-table-column> </el-table-column>
<!-- 盲态任务标识 --> <!-- 盲态任务标识 -->
<el-table-column prop="TaskBlindName" :label="$t('trials:medicalFeedback:table:taskBlindName')" width="200" <el-table-column
sortable="custom" show-overflow-tooltip /> prop="TaskBlindName"
:label="$t('trials:medicalFeedback:table:taskBlindName')"
width="200"
sortable="custom"
show-overflow-tooltip
/>
<template v-if="judgeQuestion && judgeQuestion.length > 0"> <template v-if="judgeQuestion && judgeQuestion.length > 0">
<el-table-column v-for="(qs, index) in judgeQuestion" :key="qs" prop="" :label="qs" show-overflow-tooltip <el-table-column
width="150"> v-for="(qs,index) in judgeQuestion"
:key="qs"
prop=""
:label="qs"
show-overflow-tooltip
width="150"
>
<template slot-scope="scope"> <template slot-scope="scope">
<span <span v-if="scope.row.JudgeQuestionAnswerInfoList[index] && scope.row.JudgeQuestionAnswerInfoList[index].QuestionGenre === 3 && scope.row.JudgeQuestionAnswerInfoList[index].DictionaryCode">
v-if="scope.row.JudgeQuestionAnswerInfoList[index] && scope.row.JudgeQuestionAnswerInfoList[index].QuestionGenre === 3 && scope.row.JudgeQuestionAnswerInfoList[index].DictionaryCode"> {{ scope.row.JudgeQuestionAnswerInfoList[index].Answer?$fd(scope.row.JudgeQuestionAnswerInfoList[index].DictionaryCode,parseInt(scope.row.JudgeQuestionAnswerInfoList[index].Answer)):'' }}
{{
scope.row.JudgeQuestionAnswerInfoList[index].Answer ?
$fd(scope.row.JudgeQuestionAnswerInfoList[index].DictionaryCode,
parseInt(scope.row.JudgeQuestionAnswerInfoList[index].Answer)):''
}}
</span> </span>
<span v-else> <span v-else>
{{ scope.row.JudgeQuestionAnswerInfoList.length > index ? {{ scope.row.JudgeQuestionAnswerInfoList.length>index?scope.row.JudgeQuestionAnswerInfoList[index].Answer:'' }}
scope.row.JudgeQuestionAnswerInfoList[index].Answer : ''
}}
</span>
<span>
{{
scope.row.JudgeQuestionAnswerInfoList[index].ValueType == 2 ? '%' :
scope.row.JudgeQuestionAnswerInfoList[index].CustomUnit ?
scope.row.JudgeQuestionAnswerInfoList[index].CustomUnit :
scope.row.JudgeQuestionAnswerInfoList[index].Unit ? $fd("Unit",
scope.row.JudgeQuestionAnswerInfoList[index].Unit) : ''
}}
</span> </span>
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
@ -53,65 +59,73 @@
</template> </template>
</el-table-column> --> </el-table-column> -->
<!-- 当前阅片人 --> <!-- 当前阅片人 -->
<el-table-column prop="ArmEnum" :label="$t('trials:medicalFeedback:title:currentReader')" show-overflow-tooltip <el-table-column
width="120"> prop="ArmEnum"
:label="$t('trials:medicalFeedback:title:currentReader')"
show-overflow-tooltip
width="120"
>
<template slot-scope="scope"> <template slot-scope="scope">
<el-button v-if="scope.row.TaskId" type="text" @click="handleView(scope.row, scope.row.TaskId)"> <el-button
v-if="scope.row.TaskId"
type="text"
@click="handleView(scope.row,scope.row.TaskId)"
>
{{ $fd('ArmEnum', scope.row.ArmEnum) }} {{ $fd('ArmEnum', scope.row.ArmEnum) }}
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
<!-- 关联阅片人 --> <!-- 关联阅片人 -->
<!-- <el-table-column--> <!-- <el-table-column-->
<!-- prop="OtherArmEnum"--> <!-- prop="OtherArmEnum"-->
<!-- :label="$t('trials:medicalFeedback:title:otherReader')"--> <!-- :label="$t('trials:medicalFeedback:title:otherReader')"-->
<!-- show-overflow-tooltip--> <!-- show-overflow-tooltip-->
<!-- width="100"--> <!-- width="100"-->
<!-- >--> <!-- >-->
<!-- <template slot-scope="scope">--> <!-- <template slot-scope="scope">-->
<!-- <el-button--> <!-- <el-button-->
<!-- v-if="scope.row.OtherTaskId"--> <!-- v-if="scope.row.OtherTaskId"-->
<!-- type="text"--> <!-- type="text"-->
<!-- @click="handleView(scope.row,scope.row.OtherTaskId)"--> <!-- @click="handleView(scope.row,scope.row.OtherTaskId)"-->
<!-- >--> <!-- >-->
<!-- {{ $fd('ArmEnum', scope.row.OtherArmEnum) }}--> <!-- {{ $fd('ArmEnum', scope.row.OtherArmEnum) }}-->
<!-- </el-button>--> <!-- </el-button>-->
<!-- </template>--> <!-- </template>-->
<!-- </el-table-column>--> <!-- </el-table-column>-->
<!-- &lt;!&ndash; 关联全局任务 &ndash;&gt;--> <!-- &lt;!&ndash; 关联全局任务 &ndash;&gt;-->
<!-- <el-table-column--> <!-- <el-table-column-->
<!-- prop="GlobalTaskName"--> <!-- prop="GlobalTaskName"-->
<!-- :label="$t('trials:medicalFeedback:title:relatedGlobalTask')"--> <!-- :label="$t('trials:medicalFeedback:title:relatedGlobalTask')"-->
<!-- show-overflow-tooltip--> <!-- show-overflow-tooltip-->
<!-- width="120"--> <!-- width="120"-->
<!-- >--> <!-- >-->
<!-- <template slot-scope="scope">--> <!-- <template slot-scope="scope">-->
<!-- <el-button--> <!-- <el-button-->
<!-- v-if="scope.row.GlobalTaskId"--> <!-- v-if="scope.row.GlobalTaskId"-->
<!-- type="text"--> <!-- type="text"-->
<!-- @click="handleView(scope.row,scope.row.GlobalTaskId)"--> <!-- @click="handleView(scope.row,scope.row.GlobalTaskId)"-->
<!-- >--> <!-- >-->
<!-- {{ scope.row.GlobalTaskName }}--> <!-- {{ scope.row.GlobalTaskName }}-->
<!-- </el-button>--> <!-- </el-button>-->
<!-- </template>--> <!-- </template>-->
<!-- </el-table-column>--> <!-- </el-table-column>-->
<!-- &lt;!&ndash; 关联裁判任务 &ndash;&gt;--> <!-- &lt;!&ndash; 关联裁判任务 &ndash;&gt;-->
<!-- <el-table-column--> <!-- <el-table-column-->
<!-- prop="JudgeTaskName"--> <!-- prop="JudgeTaskName"-->
<!-- :label="$t('trials:medicalFeedback:title:relatedadjudicationTask')"--> <!-- :label="$t('trials:medicalFeedback:title:relatedadjudicationTask')"-->
<!-- show-overflow-tooltip--> <!-- show-overflow-tooltip-->
<!-- width="120"--> <!-- width="120"-->
<!-- >--> <!-- >-->
<!-- <template slot-scope="scope">--> <!-- <template slot-scope="scope">-->
<!-- <el-button--> <!-- <el-button-->
<!-- v-if="scope.row.JudgeTaskId"--> <!-- v-if="scope.row.JudgeTaskId"-->
<!-- type="text"--> <!-- type="text"-->
<!-- @click="handleView(scope.row,scope.row.JudgeTaskId)"--> <!-- @click="handleView(scope.row,scope.row.JudgeTaskId)"-->
<!-- >--> <!-- >-->
<!-- {{ scope.row.JudgeTaskName }}--> <!-- {{ scope.row.JudgeTaskName }}-->
<!-- </el-button>--> <!-- </el-button>-->
<!-- </template>--> <!-- </template>-->
<!-- </el-table-column>--> <!-- </el-table-column>-->
</el-table> </el-table>
</template> </template>
<script> <script>
@ -164,7 +178,7 @@ export default {
var trialReadingCriterionId = this.rowData.TrialReadingCriterionId var trialReadingCriterionId = this.rowData.TrialReadingCriterionId
var path = '' var path = ''
if (readingTool === 0 || readingTool === 2) { if (readingTool === 0 || readingTool === 2 ) {
path = `/readingDicoms?TrialReadingCriterionId=${trialReadingCriterionId}&trialId=${trialId}&subjectCode=${this.rowData.SubjectCode}&subjectId=${this.rowData.SubjectId}&visitTaskId=${visitTaskId}&isReadingTaskViewInOrder=${isReadingTaskViewInOrder}&criterionType=${criterionType}&readingTool=${readingTool}&TokenKey=${token}&key=${new Date().getTime()}` path = `/readingDicoms?TrialReadingCriterionId=${trialReadingCriterionId}&trialId=${trialId}&subjectCode=${this.rowData.SubjectCode}&subjectId=${this.rowData.SubjectId}&visitTaskId=${visitTaskId}&isReadingTaskViewInOrder=${isReadingTaskViewInOrder}&criterionType=${criterionType}&readingTool=${readingTool}&TokenKey=${token}&key=${new Date().getTime()}`
} else { } else {
path = `/noneDicomReading?TrialReadingCriterionId=${trialReadingCriterionId}&trialId=${trialId}&subjectCode=${this.rowData.SubjectCode}&subjectId=${this.rowData.SubjectId}&visitTaskId=${visitTaskId}&isReadingTaskViewInOrder=${isReadingTaskViewInOrder}&criterionType=${criterionType}&readingTool=${readingTool}&TokenKey=${token}&key=${new Date().getTime()}` path = `/noneDicomReading?TrialReadingCriterionId=${trialReadingCriterionId}&trialId=${trialId}&subjectCode=${this.rowData.SubjectCode}&subjectId=${this.rowData.SubjectId}&visitTaskId=${visitTaskId}&isReadingTaskViewInOrder=${isReadingTaskViewInOrder}&criterionType=${criterionType}&readingTool=${readingTool}&TokenKey=${token}&key=${new Date().getTime()}`
@ -181,12 +195,11 @@ export default {
} }
</script> </script>
<style lang="scss"> <style lang="scss">
.historicAssess_wrapper { .historicAssess_wrapper{
.highlight_row { .highlight_row{
color: #000; color: #000;
background-color: #ffde7b; background-color: #ffde7b;
} }
.highlight_row:hover>td { .highlight_row:hover>td {
background-color: #ffde7b !important; background-color: #ffde7b !important;
} }

View File

@ -1,13 +1,7 @@
<template> <template>
<div class="img-container"> <div class="img-container">
<el-card v-loading="loading" class="box-card left"> <el-card v-loading="loading" class="box-card left">
<div v-if="isReadingShowSubjectInfo" class="title" style="display: flex;align-items: center;"> <div v-if="isReadingShowSubjectInfo" class="title">
<div style="margin-right: 5px;cursor: pointer;" @click.stop="sortFile">
<i :class="['el-icon-caret-top', Asc === false || Asc === null ? '' : 'icon_check']"
style="display: block;margin-bottom: -5px;"></i>
<i :class="['el-icon-caret-bottom', Asc === true || Asc === null ? '' : 'icon_check']"
style="display: block; margin-top: -5px;"></i>
</div>
<h4>{{ subjectCode }} </h4> <h4>{{ subjectCode }} </h4>
<h4>{{ taskBlindName }}</h4> <h4>{{ taskBlindName }}</h4>
</div> </div>
@ -104,7 +98,6 @@ import { getReadingImageFile, getReadingPastResultList } from '@/api/trials'
import { getToken } from '@/utils/auth' import { getToken } from '@/utils/auth'
import Preview from '@/views/none-dicom-show/components/preview' import Preview from '@/views/none-dicom-show/components/preview'
import Criterions from './Criterions' import Criterions from './Criterions'
import FileNameSorter from "@/utils/customSort";
export default { export default {
name: 'VisitReview', name: 'VisitReview',
components: { components: {
@ -186,21 +179,18 @@ export default {
otherInfo: null, otherInfo: null,
isReadingShowPreviousResults: false, isReadingShowPreviousResults: false,
BodyPart: {}, BodyPart: {},
openWindow: null, openWindow: null
Asc: null
} }
}, },
computed: { computed: {
showOtherTask() { showOtherTask() {
return this.otherInfo && this.otherInfo.IsReadingShowPreviousResults && this.isReadingShowPreviousResults return this.otherInfo && this.otherInfo.IsReadingShowPreviousResults && this.isReadingShowPreviousResults
},
CriterionType() {
return this.otherInfo.CriterionType ? this.otherInfo.CriterionType : 0
} }
}, },
async mounted() { async mounted() {
this.BodyPart.Bodypart = await this.$getBodyPart(this.$route.query.trialId) this.BodyPart.Bodypart = await this.$getBodyPart(this.$route.query.trialId)
this.isReadingShowPreviousResults = this.$router.currentRoute.query.isReadingShowPreviousResults !== undefined ? this.$router.currentRoute.query.isReadingShowPreviousResults : true this.isReadingShowPreviousResults = this.$router.currentRoute.query.isReadingShowPreviousResults !== undefined ? this.$router.currentRoute.query.isReadingShowPreviousResults : true
this.getNoneDicomList(this.isReadingShowPreviousResults) this.getNoneDicomList(this.isReadingShowPreviousResults)
}, },
beforeDestroy() { beforeDestroy() {
@ -209,22 +199,6 @@ export default {
} }
}, },
methods: { methods: {
sortFile() {
if (this.Asc) {
this.Asc = false
} else {
this.Asc = true
}
console.log(this.Asc, 'this.Asc')
this.studyList.forEach(study => {
if (study.NoneDicomStudyFileList.length > 0) {
study.NoneDicomStudyFileList = FileNameSorter.sortFileNames(study.NoneDicomStudyFileList, {
direction: this.Asc ? 'asc' : 'desc',
key: 'FileName'
})
}
})
},
// Dicom // Dicom
getNoneDicomList() { getNoneDicomList() {
this.loading = true this.loading = true
@ -248,9 +222,6 @@ export default {
// this.$alert('PM') // this.$alert('PM')
} }
this.loading = false this.loading = false
if (this.CriterionType === 19 || this.CriterionType === 20) {
this.sortFile()
}
}).catch(() => { this.loading = false }) }).catch(() => { this.loading = false })
}, },
selected(file, studyIndex, fileIndex, isChangeSub = false) { selected(file, studyIndex, fileIndex, isChangeSub = false) {
@ -356,10 +327,6 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.icon_check {
color: #409EFF;
}
.img-container { .img-container {
flex: 1; flex: 1;
width: 100%; width: 100%;

View File

@ -1,205 +0,0 @@
<template>
<BaseContainer>
<div slot="search-container">
<el-form :inline="true">
<!-- 受试者编号 -->
<el-form-item :label="$t('trials:pendingReadingTasks:table:subjectCode')">
<el-input v-model="searchData.SubjectCode" style="width: 130px" clearable />
</el-form-item>
<el-form-item>
<!-- 查询 -->
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
{{ $t('common:button:search') }}
</el-button>
<!-- 重置 -->
<el-button type="primary" icon="el-icon-refresh-left" @click="handleReset">
{{ $t('common:button:reset') }}
</el-button>
</el-form-item>
</el-form>
</div>
<div slot="main-container">
<el-table v-adaptive="{ bottomOffset: 75 }" :data="list" stripe height="100" @sort-change="handleSortChange"
v-loading="loading">
<el-table-column type="index" width="40" align="left" />
<el-table-column prop="IsUrgent" :label="$t('trials:consistencyCheck:table:isUrgent')"
show-overflow-tooltip min-width="100">
<template slot-scope="scope">
<el-tag :type="scope.row.IsUrgent
? 'danger' : 'primary'
">{{ $fd('YesOrNo', scope.row.IsUrgent) }}</el-tag>
</template>
</el-table-column>
<!-- 受试者编号 -->
<el-table-column prop="SubjectCode" min-width="100"
:label="$t('trials:pendingReadingTasks:table:subjectCode')" show-overflow-tooltip
sortable="custom" />
<!-- 访视数量 -->
<el-table-column prop="VisitCount" :label="$t('trials:pendingReadingTasks:table:VisitCount')"
show-overflow-tooltip sortable="custom" />
<!-- dicom检查数量 -->
<!-- <el-table-column prop="DicomStudyCount" :label="$t('trials:pendingReadingTasks:table:DicomStudyCount')"
show-overflow-tooltip sortable="custom" /> -->
<!-- 非dicom检查数量 -->
<!-- <el-table-column prop="NoneDicomStudyCount"
:label="$t('trials:pendingReadingTasks:table:NoneDicomStudyCount')" show-overflow-tooltip
sortable="custom" /> -->
<!-- 标记访视数量 -->
<el-table-column prop="MarkVisitCount" :label="$t('trials:pendingReadingTasks:table:MarkVisitCount')"
show-overflow-tooltip>
<template slot-scope="scope">
<span>{{ `${scope.row.MarkIVUSVisitCount || 0}/${scope.row.MarkOCTVisitCount || 0}` }}</span>
</template>
</el-table-column>
<!-- 标记dicom检查数量 -->
<!-- <el-table-column prop="MarkDicomStudyCount"
:label="$t('trials:pendingReadingTasks:table:MarkDicomStudyCount')" show-overflow-tooltip
sortable="custom" /> -->
<!-- 标记非dicom检查数量 -->
<!-- <el-table-column prop="MarkNoneDicomStudyCount"
:label="$t('trials:pendingReadingTasks:table:MarkNoneDicomStudyCount')" show-overflow-tooltip
sortable="custom" /> -->
<el-table-column :label="$t('common:action:action')" width="100" fixed="right">
<template slot-scope="scope">
<!-- 阅片 -->
<!-- <el-button :disabled="scope.row.ExistReadingApply" circle :title="scope.row.ExistReadingApply
? $t(
'trials:pendingReadingTasks:button:ExistReadingApply'
)
: $t('trials:pendingReadingTasks:button:review')
" icon="el-icon-edit-outline" @click="handleReadImage(scope.row)" /> -->
<!-- 上传 -->
<el-button v-hasPermi="['role:ir']" circle icon="el-icon-upload2"
:title="$t('trials:pendingReadingTasks:button:upload')"
@click="openUploadImage(scope.row, 'upload')" />
<!-- 下载 -->
<el-button v-hasPermi="['role:ir']" circle icon="el-icon-download"
:title="$t('trials:pendingReadingTasks:button:download')"
@click="openUploadImage(scope.row, 'download')" />
</template>
</el-table-column>
</el-table>
<pagination class="page" :total="total" :page.sync="searchData.PageIndex" :limit.sync="searchData.PageSize"
@pagination="getList" />
</div>
<upload-dicom-and-nonedicom v-if="uploadImageVisible" :SubjectId="uploadSubjectId"
:SubjectCode="uploadSubjectCode" :Criterion="uploadTrialCriterion" :visible.sync="uploadImageVisible"
:IsImageSegment="true" />
<download-dicom-and-nonedicom v-if="downloadImageVisible" :SubjectId="uploadSubjectId"
:SubjectCode="uploadSubjectCode" :Criterion="uploadTrialCriterion" :visible.sync="downloadImageVisible"
:IsImageSegment="true" />
</BaseContainer>
</template>
<script>
import BaseContainer from '@/components/BaseContainer'
import uploadDicomAndNonedicom from '@/components/uploadDicomAndNonedicom'
import downloadDicomAndNonedicom from '@/components/downloadDicomAndNonedicom'
import Pagination from '@/components/Pagination'
import { getTrialSubjectVisitMarkList } from "@/api/trials"
const searchDataDefault = () => {
return {
SubjectCode: '',
PageIndex: 1,
PageSize: 20,
}
}
export default {
name: "TargetSection",
components: {
BaseContainer,
Pagination,
'upload-dicom-and-nonedicom': uploadDicomAndNonedicom,
'download-dicom-and-nonedicom': downloadDicomAndNonedicom,
},
props: {
TrialReadingCriterionId: {
type: String,
default: ''
},
trialCriterionList: {
type: Array,
default: () => {
return []
}
}
},
data() {
return {
searchData: searchDataDefault(),
loading: false,
list: [],
total: 0,
//
downloadImageVisible: false,
uploadImageVisible: false,
uploadSubjectId: null,
uploadSubjectCode: null,
uploadTrialCriterion: {},
uploadStatus: 'upload',
}
},
watch: {
downloadImageVisible(v) {
if (!v) {
this.getList()
}
},
uploadImageVisible(v) {
if (!v) {
this.getList()
}
}
},
mounted() {
this.getList()
},
methods: {
handleSearch() {
this.searchData.PageIndex = 1
this.getList()
},
handleReset() {
this.searchData = searchDataDefault()
this.getList()
},
async getList() {
try {
this.searchData.TrialId = this.$route.query.trialId
this.searchData.TrialReadingCriterionId = this.TrialReadingCriterionId
this.loading = true
let res = await getTrialSubjectVisitMarkList(this.searchData)
this.loading = false
if (res.IsSuccess) {
this.list = res.Result.CurrentPageData
this.total = res.Result.TotalCount
}
} catch (err) {
this.loading = false
console.log(err)
}
},
//
handleSortChange(column) {
if (column.order === 'ascending') {
this.searchData.Asc = true
} else {
this.searchData.Asc = false
}
this.searchData.SortField = column.prop
this.searchData.PageIndex = 1
this.getList()
},
//
openUploadImage(item, status) {
this.uploadSubjectCode = item.SubjectCode
this.uploadSubjectId = item.SubjectId
let trialCriterion = this.trialCriterionList.find(item => item.TrialReadingCriterionId === this.TrialReadingCriterionId)
this.uploadTrialCriterion = trialCriterion
this.uploadStatus = status
this[`${status}ImageVisible`] = true
},
}
}
</script>
<style lang="scss" scoped></style>

View File

@ -24,11 +24,6 @@
<el-button type="primary" icon="el-icon-refresh-left" @click="handleReset"> <el-button type="primary" icon="el-icon-refresh-left" @click="handleReset">
{{ $t('common:button:reset') }} {{ $t('common:button:reset') }}
</el-button> </el-button>
<!-- 靶段标注 -->
<el-button type="primary" @click="() => TargetSection_visible = true"
v-if="item.CriterionType === 19 || item.CriterionType === 20">
{{ $t('trials:pendingReadingTasks:button:TargetSection') }}
</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
@ -167,12 +162,6 @@
:visible.sync="uploadImageVisible" /> :visible.sync="uploadImageVisible" />
<download-dicom-and-nonedicom v-if="downloadImageVisible" :SubjectId="uploadSubjectId" <download-dicom-and-nonedicom v-if="downloadImageVisible" :SubjectId="uploadSubjectId"
:SubjectCode="uploadSubjectCode" :Criterion="uploadTrialCriterion" :visible.sync="downloadImageVisible" /> :SubjectCode="uploadSubjectCode" :Criterion="uploadTrialCriterion" :visible.sync="downloadImageVisible" />
<el-dialog :title="$t('trials:pendingReadingTasks:button:TargetSection')" :visible.sync="TargetSection_visible"
:fullscreen="true">
<TargetSection v-if="TargetSection_visible" :TrialReadingCriterionId="TrialReadingCriterionId"
:trialCriterionList="trialCriterionList" />
</el-dialog>
</BaseContainer> </BaseContainer>
</template> </template>
<script> <script>
@ -184,12 +173,8 @@ import uploadDicomAndNonedicom from '@/components/uploadDicomAndNonedicom'
import downloadDicomAndNonedicom from '@/components/downloadDicomAndNonedicom' import downloadDicomAndNonedicom from '@/components/downloadDicomAndNonedicom'
import Pagination from '@/components/Pagination' import Pagination from '@/components/Pagination'
import { getToken } from '@/utils/auth' import { getToken } from '@/utils/auth'
<<<<<<< HEAD
import { getAutoCutNextTask } from '@/api/user' import { getAutoCutNextTask } from '@/api/user'
import { openWindow } from "@/utils/splitScreen"; import { openWindow } from "@/utils/splitScreen";
=======
import TargetSection from "./components/TargetSection"
>>>>>>> uat
const searchDataDefault = () => { const searchDataDefault = () => {
return { return {
SubjectCode: '', SubjectCode: '',
@ -204,7 +189,6 @@ export default {
Pagination, Pagination,
'upload-dicom-and-nonedicom': uploadDicomAndNonedicom, 'upload-dicom-and-nonedicom': uploadDicomAndNonedicom,
'download-dicom-and-nonedicom': downloadDicomAndNonedicom, 'download-dicom-and-nonedicom': downloadDicomAndNonedicom,
TargetSection
}, },
data() { data() {
return { return {
@ -230,8 +214,6 @@ export default {
uploadSubjectCode: null, uploadSubjectCode: null,
uploadTrialCriterion: {}, uploadTrialCriterion: {},
uploadStatus: 'upload', uploadStatus: 'upload',
TargetSection_visible: false
} }
}, },
watch: { watch: {
@ -240,11 +222,6 @@ export default {
this.getList() this.getList()
} }
}, },
TargetSection_visible(v) {
if (!v) {
this.getList()
}
}
}, },
mounted() { mounted() {
window.addEventListener('message', this.receiveMsg) window.addEventListener('message', this.receiveMsg)

View File

@ -155,22 +155,6 @@ export default {
this.loading = false this.loading = false
}) })
break break
case 21:
searchData.ReadingExportType = 21
getTumor_CDISC_Export(searchData)
.then((res) => { })
.catch(() => {
this.loading = false
})
break
case 22:
searchData.ReadingExportType = 22
getTumor_CDISC_Export(searchData)
.then((res) => { })
.catch(() => {
this.loading = false
})
break
} }
}, },
}, },

View File

@ -125,14 +125,14 @@
<el-table-column v-if="$i18n.locale === 'zh' && isDistinguishCriteria" prop="AttachNameCN" <el-table-column v-if="$i18n.locale === 'zh' && isDistinguishCriteria" prop="AttachNameCN"
:label="$t('trials:emailManageCfg:title:fileName')" show-overflow-tooltip min-width="140"> :label="$t('trials:emailManageCfg:title:fileName')" show-overflow-tooltip min-width="140">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.AttachCNPath" @click="handlePreview(scope.row)" <span v-if="scope.row.AttachCNPath" @click="handlePreview(scope.row.AttachCNPath)"
style="cursor: pointer; color: #428bca">{{ scope.row.AttachNameCN }}</span> style="cursor: pointer; color: #428bca">{{ scope.row.AttachNameCN }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column v-if="$i18n.locale === 'en' && isDistinguishCriteria" prop="AttachName" <el-table-column v-if="$i18n.locale === 'en' && isDistinguishCriteria" prop="AttachName"
:label="$t('trials:emailManageCfg:title:fileName')" show-overflow-tooltip min-width="140"> :label="$t('trials:emailManageCfg:title:fileName')" show-overflow-tooltip min-width="140">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.AttachPath" @click="handlePreview(scope.row)" <span v-if="scope.row.AttachPath" @click="handlePreview(scope.row.AttachPath)"
style="cursor: pointer; color: #428bca">{{ scope.row.AttachName }}</span> style="cursor: pointer; color: #428bca">{{ scope.row.AttachName }}</span>
</template> </template>
</el-table-column> </el-table-column>
@ -276,9 +276,6 @@ export default {
(item) => ![4, 7, 8, 31, 32, 21, 26, 27].includes(item.value) (item) => ![4, 7, 8, 31, 32, 21, 26, 27].includes(item.value)
) )
}, },
isEN() {
return this.$i18n.locale !== 'zh'
},
}, },
mounted() { mounted() {
this.trialId = this.$route.query.trialId this.trialId = this.$route.query.trialId
@ -365,26 +362,10 @@ export default {
this.currentRow = { ...row } this.currentRow = { ...row }
this.editDialog.visible = true this.editDialog.visible = true
}, },
handlePreview(row) { handlePreview(filePath) {
let name = null, FilePath = null if (filePath) {
if (this.isEN) { window.open(this.OSSclientConfig.basePath + filePath, '_blank')
name = row.AttachName;
FilePath = row.AttachPath;
} else {
name = row.AttachNameCN;
FilePath = row.AttachCNPath;
} }
this.$preview({
path: FilePath,
type: 'docx',
title: name,
isLocal: true
})
// if (filePath) {
// let path = row.Path || row.FullPath || row.FilePath
// window.open(this.OSSclientConfig.basePath + filePath, '_blank')
// }
}, },
handleSearch() { handleSearch() {
this.searchData.PageIndex = 1 this.searchData.PageIndex = 1

View File

@ -225,17 +225,6 @@
</el-form-item> </el-form-item>
<!-- 私有属性 --> <!-- 私有属性 -->
<el-divider content-position="left">{{ $t('trials:readingUnit:title:privateProperties') }}</el-divider> <el-divider content-position="left">{{ $t('trials:readingUnit:title:privateProperties') }}</el-divider>
<!-- 下拉框单选或多选 -->
<el-form-item v-if="form.Type === 'select'" :label="$t('trials:readingUnit:qsList:title:MultipleSelect')"
prop="OptionTypeEnum" :rules="[
{ required: true, message: this.$t('common:ruleMessage:specify') }
]">
<el-radio-group v-model="form.OptionTypeEnum">
<el-radio v-for="item of $d.OptionType" :key="item.id" :label="item.value">
{{ item.label }}
</el-radio>
</el-radio-group>
</el-form-item>
<!-- 数值类型 --> <!-- 数值类型 -->
<el-form-item v-if="form.Type === 'number'" :label="$t('trials:readingUnit:qsList:title:valueType')" <el-form-item v-if="form.Type === 'number'" :label="$t('trials:readingUnit:qsList:title:valueType')"
prop="ValueType" :rules="[ prop="ValueType" :rules="[
@ -389,7 +378,7 @@
@change="(v) => CustomCalculateMarkChange(v)"> @change="(v) => CustomCalculateMarkChange(v)">
<div> <div>
<el-radio v-for="item of $d.CustomCalculateMark" <el-radio v-for="item of $d.CustomCalculateMark"
v-show="item.value <= 4 || item.value === 10 || item.value === 11 || item.value === 12 || item.value === 13 || item.value === 14 || item.value === 15" v-show="item.value <= 4 || item.value === 10 || item.value === 11 || item.value === 12 || item.value === 13 || item.value === 14"
:key="`CustomCalculateMark${item.value}`" :label="item.value"> :key="`CustomCalculateMark${item.value}`" :label="item.value">
{{ item.label }} {{ item.label }}
</el-radio> </el-radio>
@ -451,10 +440,9 @@
<template slot-scope="scope"> <template slot-scope="scope">
<!-- 添加 --> <!-- 添加 -->
<el-button icon="el-icon-plus" size="mini" circle :title="$t('trials:readingUnit:qsList:title:add')" <el-button icon="el-icon-plus" size="mini" circle :title="$t('trials:readingUnit:qsList:title:add')"
@click="addCustomCalculateMark(scope.$index)" :disabled="form.CustomCalculateMark === 15" /> @click="addCustomCalculateMark(scope.$index)" />
<!-- 删除 --> <!-- 删除 -->
<el-button icon="el-icon-minus" size="mini" circle <el-button icon="el-icon-minus" size="mini" circle :disabled="form.CalculateQuestions.length <= 2"
:disabled="(form.CustomCalculateMark !== 15 && form.CalculateQuestions.length <= 2) || (form.CustomCalculateMark === 15 && form.CalculateQuestions.length <= 1)"
:title="$t('trials:readingUnit:qsList:title:delete')" :title="$t('trials:readingUnit:qsList:title:delete')"
@click="deleteCustomCalculateMark(scope.$index)" /> @click="deleteCustomCalculateMark(scope.$index)" />
</template> </template>
@ -757,8 +745,7 @@ export default {
ShowChartTypeEnum: 0, ShowChartTypeEnum: 0,
ImageTool: '', ImageTool: '',
ImageToolAttribute: '', ImageToolAttribute: '',
ExcludeShowVisitList: [], ExcludeShowVisitList: []
OptionTypeEnum: 0
// IsEnable: true // IsEnable: true
}, },
@ -903,7 +890,7 @@ export default {
}, },
CustomCalculateMarkChange() { CustomCalculateMarkChange() {
this.isShow = false this.isShow = false
if ((this.form.CustomCalculateMark <= 4 || this.form.CustomCalculateMark >= 10) && this.form.CustomCalculateMark < 15) { if (this.form.CustomCalculateMark <= 4 || this.form.CustomCalculateMark >= 10) {
this.form.CalculateQuestions = [ this.form.CalculateQuestions = [
{ {
IsTable: false, IsTable: false,
@ -1268,7 +1255,6 @@ export default {
form.ShowChartTypeEnum = 0 form.ShowChartTypeEnum = 0
form.ImageTool = '' form.ImageTool = ''
form.ImageToolAttribute = '' form.ImageToolAttribute = ''
form.OptionTypeEnum = 0
this.imageToolAttributes = [] this.imageToolAttributes = []
}, },
getLesionType() { getLesionType() {

View File

@ -145,17 +145,6 @@
<!-- 私有属性 --> <!-- 私有属性 -->
<el-divider content-position="left">{{ $t('trials:readingUnit:title:privateProperties') }}</el-divider> <el-divider content-position="left">{{ $t('trials:readingUnit:title:privateProperties') }}</el-divider>
<!-- 下拉框单选或多选 -->
<el-form-item v-if="form.Type === 'select'" :label="$t('trials:readingUnit:qsList:title:MultipleSelect')"
prop="OptionTypeEnum" :rules="[
{ required: true, message: this.$t('common:ruleMessage:specify') }
]">
<el-radio-group v-model="form.OptionTypeEnum">
<el-radio v-for="item of $d.OptionType" :key="item.id" :label="item.value">
{{ item.label }}
</el-radio>
</el-radio-group>
</el-form-item>
<!-- 问题数据来源 --> <!-- 问题数据来源 -->
<el-form-item v-if="form.Type === 'number'" :label="$t('trials:readingUnit:qsList:title:dataSource')" <el-form-item v-if="form.Type === 'number'" :label="$t('trials:readingUnit:qsList:title:dataSource')"
prop="DataSource" :rules="[ prop="DataSource" :rules="[
@ -212,7 +201,7 @@
<el-radio-group v-model="form.CustomCalculateMark" style="line-height: 40px;" <el-radio-group v-model="form.CustomCalculateMark" style="line-height: 40px;"
@change="(v) => CustomCalculateMarkChange(v)"> @change="(v) => CustomCalculateMarkChange(v)">
<div> <div>
<el-radio v-for="item of $d.CustomCalculateMark" v-show="item.value <= 4 || item.value >= 15" <el-radio v-for="item of $d.CustomCalculateMark" v-show="item.value <= 4"
:key="`CustomCalculateMark${item.value}`" :label="item.value"> :key="`CustomCalculateMark${item.value}`" :label="item.value">
{{ item.label }} {{ item.label }}
</el-radio> </el-radio>
@ -250,9 +239,8 @@
<el-table-column :label="$t('common:action:action')" prop="TableQuestionId" show-overflow-tooltip> <el-table-column :label="$t('common:action:action')" prop="TableQuestionId" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
<el-button icon="el-icon-plus" size="mini" circle :title="$t('common:button:add')" <el-button icon="el-icon-plus" size="mini" circle :title="$t('common:button:add')"
@click="addCustomCalculateMark(scope.$index)" :disabled="form.CustomCalculateMark === 15" /> @click="addCustomCalculateMark(scope.$index)" />
<el-button icon="el-icon-minus" size="mini" circle <el-button icon="el-icon-minus" size="mini" circle :disabled="form.CalculateQuestions.length <= 2"
::disabled="(form.CustomCalculateMark !== 15 && form.CalculateQuestions.length <= 2) || (form.CustomCalculateMark === 15 && form.CalculateQuestions.length <= 1)"
:title="$t('common:button:delete')" @click="deleteCustomCalculateMark(scope.$index)" /> :title="$t('common:button:delete')" @click="deleteCustomCalculateMark(scope.$index)" />
</template> </template>
</el-table-column> </el-table-column>
@ -620,7 +608,6 @@ export default {
ShowChartTypeEnum: 0, ShowChartTypeEnum: 0,
ImageTool: '', ImageTool: '',
ImageToolAttribute: '', ImageToolAttribute: '',
OptionTypeEnum: 0
// IsEnable: true // IsEnable: true
}, },
imageToolAttributes: [], imageToolAttributes: [],
@ -1132,7 +1119,6 @@ export default {
form.ShowChartTypeEnum = 0 form.ShowChartTypeEnum = 0
form.ImageTool = '' form.ImageTool = ''
form.ImageToolAttribute = '' form.ImageToolAttribute = ''
form.OptionTypeEnum = 0
this.imageToolAttributes = [] this.imageToolAttributes = []
}, },
close() { close() {

View File

@ -70,10 +70,10 @@
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag v-if="scope.row.IsHaveDicom" type="primary">{{ <el-tag v-if="scope.row.IsHaveDicom" type="primary">{{
$fd('IsDicom', true) $fd('IsDicom', true)
}}</el-tag> }}</el-tag>
<el-tag v-if="scope.row.IsHaveNoneDicom" type="primary">{{ <el-tag v-if="scope.row.IsHaveNoneDicom" type="primary">{{
$fd('IsDicom', false) $fd('IsDicom', false)
}}</el-tag> }}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<!-- 影像数量 --> <!-- 影像数量 -->

View File

@ -4,20 +4,41 @@
<el-tab-pane v-for="(item, index) in list" :key="item.Id"> <el-tab-pane v-for="(item, index) in list" :key="item.Id">
<span slot="label"> <span slot="label">
{{ item.ChallengeCode }} {{ item.ChallengeCode }}
<i v-show="!item.IsClosed" class="el-icon-message-solid" style="color: red" /> <i
v-show="!item.IsClosed"
class="el-icon-message-solid"
style="color: red"
/>
</span> </span>
<div class="chat-wrapper"> <div class="chat-wrapper">
<div class="chat-content"> <div class="chat-content">
<div v-for="record in item.DialogList" :key="record.Id"> <div v-for="record in item.DialogList" :key="record.Id">
<div v-if="!record.IsCurrentUser" class="word"> <div v-if="!record.IsCurrentUser" class="word">
<!-- <img :src="record.headUrl"> --> <!-- <img :src="record.headUrl"> -->
<img v-if="record.UserTypeEnum * 1 === 8" :src="adminAvatar" alt="Admin" /> <img
<img v-else-if="record.UserTypeEnum * 1 === 1" :src="pmAvatar" alt="PM" /> v-if="record.UserTypeEnum * 1 === 8"
<img v-else-if="record.UserTypeEnum * 1 === 2" :src="crcAvatar" alt="CRC" /> :src="adminAvatar"
<img v-else-if="record.UserTypeEnum * 1 === 3" :src="qcAvatar" alt="QC" /> alt="Admin"
/>
<img
v-else-if="record.UserTypeEnum * 1 === 1"
:src="pmAvatar"
alt="PM"
/>
<img
v-else-if="record.UserTypeEnum * 1 === 2"
:src="crcAvatar"
alt="CRC"
/>
<img
v-else-if="record.UserTypeEnum * 1 === 3"
:src="qcAvatar"
alt="QC"
/>
<div class="info"> <div class="info">
<p class="user-info"> <p class="user-info">
<span style="font-weight: 700">{{ record.CreateUserFullName || record.CreateUserName }} <span style="font-weight: 700"
>{{ record.CreateUserFullName || record.CreateUserName }}
</span> </span>
<span>({{ record.CreateTime }}) </span> <span>({{ record.CreateTime }}) </span>
</p> </p>
@ -28,48 +49,88 @@
<div v-else class="word-my"> <div v-else class="word-my">
<div class="info"> <div class="info">
<p class="user-info"> <p class="user-info">
<span style="font-weight: 700">{{ record.CreateUserFullName || record.CreateUserName }} <span style="font-weight: 700"
>{{ record.CreateUserFullName || record.CreateUserName }}
</span> </span>
<span>({{ record.CreateTime }}) </span> <span>({{ record.CreateTime }}) </span>
</p> </p>
<div class="info-content" v-html="record.TalkContent" /> <div class="info-content" v-html="record.TalkContent" />
</div> </div>
<!-- <img :src="record.headUrl"> --> <!-- <img :src="record.headUrl"> -->
<img v-if="record.UserTypeEnum * 1 === 8" :src="adminAvatar" alt="Admin" /> <img
<img v-else-if="record.UserTypeEnum * 1 === 1" :src="pmAvatar" alt="PM" /> v-if="record.UserTypeEnum * 1 === 8"
<img v-else-if="record.UserTypeEnum * 1 === 2" :src="crcAvatar" alt="CRC" /> :src="adminAvatar"
<img v-else-if="record.UserTypeEnum * 1 === 3" :src="qcAvatar" alt="QC" /> alt="Admin"
/>
<img
v-else-if="record.UserTypeEnum * 1 === 1"
:src="pmAvatar"
alt="PM"
/>
<img
v-else-if="record.UserTypeEnum * 1 === 2"
:src="crcAvatar"
alt="CRC"
/>
<img
v-else-if="record.UserTypeEnum * 1 === 3"
:src="qcAvatar"
alt="QC"
/>
</div> </div>
</div> </div>
</div> </div>
<div v-if="!item.IsClosed" class="chat-message"> <div v-if="!item.IsClosed" class="chat-message">
<div class="message" v-if="hasPermi(['trials:trials-panel:visit:crc-upload:send'])"> <div
class="message"
v-if="hasPermi(['trials:trials-panel:visit:crc-upload:send'])"
>
<el-input v-model="newMessage" type="textarea" :rows="2" /> <el-input v-model="newMessage" type="textarea" :rows="2" />
</div> </div>
<div class="function"> <div class="function">
<!-- 申请重传 --> <!-- 申请重传 -->
<el-button v-show="(item.ReuploadEnum === 0 || item.ReuploadEnum === 3) && item.SecondReviewState !== 1" <el-button
v-show="(item.ReuploadEnum === 0 || item.ReuploadEnum === 3) && item.SecondReviewState !== 1"
v-hasPermi="[ v-hasPermi="[
'trials:trials-panel:visit:crc-upload:apply-reupload', 'trials:trials-panel:visit:crc-upload:apply-reupload',
]" type="primary" :loading="applyBtnLoading" @click="handleCRCApplyReupload(item)"> ]"
type="primary"
:loading="applyBtnLoading"
@click="handleCRCApplyReupload(item)"
>
{{ $t('trials:reuploadDicoms:button:applyReupload') }} {{ $t('trials:reuploadDicoms:button:applyReupload') }}
</el-button> </el-button>
<!-- 重传 --> <!-- 重传 -->
<el-button v-show="item.ReuploadEnum === 2 && item.SecondReviewState !== 1" <el-button
v-hasPermi="['trials:trials-panel:visit:crc-upload:reupload']" type="primary" v-show="item.ReuploadEnum === 2 && item.SecondReviewState !== 1"
:loading="uploadBtnLoading" @click="openUploadDialog(index)"> v-hasPermi="['trials:trials-panel:visit:crc-upload:reupload']"
type="primary"
:loading="uploadBtnLoading"
@click="openUploadDialog(index)"
>
{{ $t('trials:reuploadDicoms:button:reupload') }} {{ $t('trials:reuploadDicoms:button:reupload') }}
</el-button> </el-button>
<!-- 确认重传完成 --> <!-- 确认重传完成 -->
<el-button v-show="item.ReuploadEnum === 2" v-hasPermi="[ <el-button
'trials:trials-panel:visit:crc-upload:set-reupload-finished', v-show="item.ReuploadEnum === 2"
]" type="primary" :disabled="item.IsReuploaded" :loading="reuploadedFinishbtnLoading" v-hasPermi="[
@click="handleSetUploadFinished(index)"> 'trials:trials-panel:visit:crc-upload:set-reupload-finished',
]"
type="primary"
:disabled="item.IsReuploaded"
:loading="reuploadedFinishbtnLoading"
@click="handleSetUploadFinished(index)"
>
{{ $t('trials:reuploadDicoms:button:reuploadFinished') }} {{ $t('trials:reuploadDicoms:button:reuploadFinished') }}
</el-button> </el-button>
<!-- 发送 --> <!-- 发送 -->
<el-button v-hasPermi="['trials:trials-panel:visit:crc-upload:send']" :disabled="newMessage === ''" <el-button
type="primary" :loading="btnLoading" @click="handleReply(item.Id, index)"> v-hasPermi="['trials:trials-panel:visit:crc-upload:send']"
:disabled="newMessage === ''"
type="primary"
:loading="btnLoading"
@click="handleReply(item.Id, index)"
>
{{ $t('trials:reuploadDicoms:button:send') }} {{ $t('trials:reuploadDicoms:button:send') }}
</el-button> </el-button>
</div> </div>
@ -78,8 +139,13 @@
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
<!-- 上传Dicom/非Dicom文件 --> <!-- 上传Dicom/非Dicom文件 -->
<el-dialog v-if="uploadVisible" :visible.sync="uploadVisible" :fullscreen="true" append-to-body <el-dialog
custom-class="upload-dialog"> v-if="uploadVisible"
:visible.sync="uploadVisible"
:fullscreen="true"
append-to-body
custom-class="upload-dialog"
>
<span slot="title"> <span slot="title">
<el-breadcrumb separator-class="el-icon-arrow-right"> <el-breadcrumb separator-class="el-icon-arrow-right">
<label style="float: left; margin-right: 10px">Upload: </label> <label style="float: left; margin-right: 10px">Upload: </label>
@ -97,51 +163,100 @@
}}</el-breadcrumb-item> }}</el-breadcrumb-item>
</el-breadcrumb> </el-breadcrumb>
</span> </span>
<div class="base-modal-body" style="display: flex; flex-direction: column"> <div
class="base-modal-body"
style="display: flex; flex-direction: column"
>
<el-tabs v-model="activeName" type="border-card" style="flex: 1"> <el-tabs v-model="activeName" type="border-card" style="flex: 1">
<!-- DICOM影像上传 --> <!-- DICOM影像上传 -->
<el-tab-pane :label="$t('trials:uploadedDicoms:tab:uploadDicoms')" name="dicom" <el-tab-pane
v-if="[0, 1].includes($store.state.trials.config.CollectImagesEnum)"> :label="$t('trials:uploadedDicoms:tab:uploadDicoms')"
<upload-dicom-files :data="data" :isAfresh="true" :subject-id="data.SubjectId" :subject-visit-id="data.Id" name="dicom"
@close="closeUpload" @getList="reFreshList" /> v-if="[0, 1].includes($store.state.trials.config.CollectImagesEnum)"
>
<upload-dicom-files
:data="data"
:subject-id="data.SubjectId"
:subject-visit-id="data.Id"
@close="closeUpload"
@getList="reFreshList"
/>
</el-tab-pane> </el-tab-pane>
<!-- 非DICOM影像上传 --> <!-- 非DICOM影像上传 -->
<el-tab-pane :label="$t('trials:uploadNonDicoms:tab:uploadNonDicoms')" name="non-dicom" <el-tab-pane
v-if="[0, 2].includes($store.state.trials.config.CollectImagesEnum)"> :label="$t('trials:uploadNonDicoms:tab:uploadNonDicoms')"
<upload-non-dicom-files v-if="activeName === 'non-dicom'" :data="data" :allow-add-or-edit="true" name="non-dicom"
:body-parts="bodyParts" :modalities="modalities" :subject-visit-id="data.Id" @getList="reFreshList" /> v-if="[0, 2].includes($store.state.trials.config.CollectImagesEnum)"
>
<upload-non-dicom-files
v-if="activeName === 'non-dicom'"
:data="data"
:allow-add-or-edit="true"
:body-parts="bodyParts"
:modalities="modalities"
:subject-visit-id="data.Id"
@getList="reFreshList"
/>
</el-tab-pane> </el-tab-pane>
<!-- 临床数据采集data.IsBaseLine && --> <!-- 临床数据采集data.IsBaseLine && -->
<el-tab-pane v-if=" <el-tab-pane
data.IsBaseLine && v-if="
(otherInfo.IsHaveSubjectClinicalData || data.IsBaseLine &&
otherInfo.IsHaveVisitClinicalData) (otherInfo.IsHaveSubjectClinicalData ||
" :label="$t('trials:uploadClinicalData:tab:uploadClinicalData')" name="clinical-data"> otherInfo.IsHaveVisitClinicalData)
<upload-clinical-data v-if="activeName === 'clinical-data'" :subject-visit-id="data.Id" :data="data" "
:enum-type="otherInfo.ClinicalInformationTransmissionEnum" :allow-add-or-edit="true" :label="$t('trials:uploadClinicalData:tab:uploadClinicalData')"
@getList="reFreshList" /> name="clinical-data"
>
<upload-clinical-data
v-if="activeName === 'clinical-data'"
:subject-visit-id="data.Id"
:data="data"
:enum-type="otherInfo.ClinicalInformationTransmissionEnum"
:allow-add-or-edit="true"
@getList="reFreshList"
/>
</el-tab-pane> </el-tab-pane>
<el-tab-pane v-if="!data.IsBaseLine && otherInfo.IsHaveVisitClinicalData" <el-tab-pane
:label="$t('trials:uploadClinicalData:tab:uploadClinicalData')" name="clinical-data"> v-if="!data.IsBaseLine && otherInfo.IsHaveVisitClinicalData"
<upload-clinical-data v-if="activeName === 'clinical-data'" :subject-visit-id="data.Id" :data="data" :label="$t('trials:uploadClinicalData:tab:uploadClinicalData')"
:enum-type="otherInfo.ClinicalInformationTransmissionEnum" :allow-add-or-edit="true" name="clinical-data"
@getList="reFreshList" /> >
<upload-clinical-data
v-if="activeName === 'clinical-data'"
:subject-visit-id="data.Id"
:data="data"
:enum-type="otherInfo.ClinicalInformationTransmissionEnum"
:allow-add-or-edit="true"
@getList="reFreshList"
/>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
</el-dialog> </el-dialog>
<!-- 临床数据签名框 --> <!-- 临床数据签名框 -->
<el-dialog v-if="signVisible" :visible.sync="signVisible" :close-on-click-modal="false" width="600px" append-to-body <el-dialog
custom-class="base-dialog-wrapper"> v-if="signVisible"
:visible.sync="signVisible"
:close-on-click-modal="false"
width="600px"
append-to-body
custom-class="base-dialog-wrapper"
>
<div slot="title"> <div slot="title">
<span style="font-size: 18px">{{ $t('common:dialogTitle:sign') }}</span> <span style="font-size: 18px">{{ $t('common:dialogTitle:sign') }}</span>
<span style="font-size: 12px; margin-left: 5px">{{ <span style="font-size: 12px; margin-left: 5px">{{
`(${$t('common:label:sign')}${currentUser})` `(${$t('common:label:sign')}${currentUser})`
}}</span> }}</span>
</div> </div>
<SignForm ref="signForm" :sign-code-enum="signCode" :signReplaceText="signReplaceText" :subject-visit-id="data.Id" <SignForm
@closeDialog="closeClinicalDataSignDialog" /> ref="signForm"
:sign-code-enum="signCode"
:signReplaceText="signReplaceText"
:subject-visit-id="data.Id"
@closeDialog="closeClinicalDataSignDialog"
/>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
@ -256,11 +371,12 @@ export default {
${this.$t('trials:qcQuality:dialogTips:tip')} ${this.$t('trials:qcQuality:dialogTips:tip')}
</p> </p>
<p style='color:red'>${this.$t( <p style='color:red'>${this.$t(
'trials:qcQuality:dialog:deadline' 'trials:qcQuality:dialog:deadline'
)}: ${item.DeadlineTime )}: ${
item.DeadlineTime
? item.DeadlineTime ? item.DeadlineTime
: this.$t('trials:qcQuality:dialog:none') : this.$t('trials:qcQuality:dialog:none')
}</p>` }</p>`
const userId = zzSessionStorage.getItem('userId') const userId = zzSessionStorage.getItem('userId')
var recordContent = [] var recordContent = []
recordContent.push({ recordContent.push({
@ -378,7 +494,7 @@ export default {
this.currentChallengeIndex = index this.currentChallengeIndex = index
this.setReuploadFinished() this.setReuploadFinished()
}) })
.catch(() => { }) .catch(() => {})
} }
}, },
setReuploadFinished(signInfo) { setReuploadFinished(signInfo) {
@ -446,7 +562,7 @@ export default {
this.applyBtnLoading = false this.applyBtnLoading = false
}) })
}) })
.catch(() => { }) .catch(() => {})
}, },
}, },
} }
@ -454,17 +570,14 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.history-chat { .history-chat {
height: 500px; height: 500px;
::-webkit-scrollbar { ::-webkit-scrollbar {
width: 7px; width: 7px;
height: 7px; height: 7px;
} }
::-webkit-scrollbar-thumb { ::-webkit-scrollbar-thumb {
border-radius: 10px; border-radius: 10px;
background: #d0d0d0; background: #d0d0d0;
} }
::v-deep .el-tabs { ::v-deep .el-tabs {
::v-deep .el-tabs__header { ::v-deep .el-tabs__header {
width: 100px; width: 100px;
@ -472,41 +585,34 @@ export default {
height: 500px; height: 500px;
overflow-y: auto; overflow-y: auto;
} }
::v-deep .el-tabs__content { ::v-deep .el-tabs__content {
margin-right: 10px; margin-right: 10px;
height: 500px; height: 500px;
width: calc(100% - 120px); width: calc(100% - 120px);
overflow-y: auto; overflow-y: auto;
} }
.chat-wrapper { .chat-wrapper {
background-color: #f5f7fa; background-color: #f5f7fa;
height: 500px; height: 500px;
display: flex; display: flex;
flex-direction: column !important; flex-direction: column !important;
overflow: hidden; overflow: hidden;
.chat-content { .chat-content {
width: 100%; width: 100%;
padding: 20px; padding: 20px;
// height: 400px; // height: 400px;
overflow-y: auto; overflow-y: auto;
flex: 1; flex: 1;
.word { .word {
display: flex; display: flex;
margin-bottom: 20px; margin-bottom: 20px;
img { img {
width: 40px; width: 40px;
height: 40px; height: 40px;
border-radius: 50%; border-radius: 50%;
} }
.info { .info {
margin-left: 10px; margin-left: 10px;
.user-info { .user-info {
font-size: 12px; font-size: 12px;
color: rgba(51, 51, 51, 0.8); color: rgba(51, 51, 51, 0.8);
@ -515,7 +621,6 @@ export default {
line-height: 20px; line-height: 20px;
margin-top: -5px; margin-top: -5px;
} }
.info-content { .info-content {
padding: 10px; padding: 10px;
font-size: 14px; font-size: 14px;
@ -523,7 +628,6 @@ export default {
position: relative; position: relative;
margin-top: 8px; margin-top: 8px;
} }
.info-content::before { .info-content::before {
position: absolute; position: absolute;
left: -8px; left: -8px;
@ -535,23 +639,19 @@ export default {
} }
} }
} }
.word-my { .word-my {
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
margin-bottom: 20px; margin-bottom: 20px;
img { img {
width: 40px; width: 40px;
height: 40px; height: 40px;
border-radius: 50%; border-radius: 50%;
} }
.info { .info {
width: 90%; width: 90%;
margin-left: 10px; margin-left: 10px;
text-align: right; text-align: right;
.user-info { .user-info {
font-size: 12px; font-size: 12px;
color: rgba(51, 51, 51, 0.8); color: rgba(51, 51, 51, 0.8);
@ -561,7 +661,6 @@ export default {
margin-top: -5px; margin-top: -5px;
margin-right: 10px; margin-right: 10px;
} }
.info-content { .info-content {
position: relative; position: relative;
max-width: 70%; max-width: 70%;
@ -574,7 +673,6 @@ export default {
color: #fff; color: #fff;
text-align: left; text-align: left;
} }
.info-content::after { .info-content::after {
position: absolute; position: absolute;
right: -8px; right: -8px;
@ -587,17 +685,14 @@ export default {
} }
} }
} }
.chat-message { .chat-message {
height: 100px; height: 100px;
padding: 0 50px; padding: 0 50px;
.function { .function {
margin-top: 10px; margin-top: 10px;
text-align: right; text-align: right;
} }
} }
ol { ol {
margin: 5px; margin: 5px;
padding: 0px 10px; padding: 0px 10px;

View File

@ -5,8 +5,8 @@
<el-button v-if=" <el-button v-if="
data.SubmitState * 1 < 2 || data.SubmitState * 1 < 2 ||
(data.SubmitState === 2 && data.IsQCConfirmedReupload) (data.SubmitState === 2 && data.IsQCConfirmedReupload)
" v-hasPermi="['trials:trials-panel:visit:crc-upload:delete']" :disabled="deleteArr.length === 0" type="primary" " v-hasPermi="['trials:trials-panel:visit:crc-upload:delete']" :disabled="deleteArr.length === 0"
size="small" icon="el-icon-delete" @click="handleBatchDelete"> type="primary" size="small" icon="el-icon-delete" @click="handleBatchDelete">
{{ $t('trials:uploadedDicoms:action:delete') }} {{ $t('trials:uploadedDicoms:action:delete') }}
</el-button> </el-button>
<!-- 预览 --> <!-- 预览 -->
@ -112,7 +112,7 @@
<!-- 检查部位 --> <!-- 检查部位 -->
<el-form-item :label="$t('trials:audit:table:bodyPart')" prop="BodyPartForEdit" :rules="[ <el-form-item :label="$t('trials:audit:table:bodyPart')" prop="BodyPartForEdit" :rules="[
{ {
required: studyForm.BodyPartForEditOther ? false : true, required: true,
message: $t('common:ruleMessage:specify'), message: $t('common:ruleMessage:specify'),
trigger: 'blur', trigger: 'blur',
}, },
@ -121,8 +121,6 @@
<el-checkbox v-for="bodyPart in trialBodyPartTypes" :key="bodyPart" :label="bodyPart">{{ <el-checkbox v-for="bodyPart in trialBodyPartTypes" :key="bodyPart" :label="bodyPart">{{
$fd('Bodypart', bodyPart, 'Code', BodyPart, 'Name') $fd('Bodypart', bodyPart, 'Code', BodyPart, 'Name')
}}</el-checkbox> }}</el-checkbox>
<el-input :placeholder="$t('trials:audit:placeholder:BodyPartForEditOther')"
v-model.trim="studyForm.BodyPartForEditOther" style="width:150px;margin-left: 30px;"></el-input>
</el-checkbox-group> </el-checkbox-group>
</el-form-item> </el-form-item>
<!-- 序列数量 --> <!-- 序列数量 -->
@ -185,7 +183,6 @@ export default {
BodyPartForEdit: [], BodyPartForEdit: [],
SeriesCount: null, SeriesCount: null,
StudyTime: '', StudyTime: '',
BodyPartForEditOther: ''
}, },
deleteArr: [], deleteArr: [],
studyLoading: false, studyLoading: false,
@ -239,7 +236,6 @@ export default {
type: 1, type: 1,
modality: this.studyForm.Modality, modality: this.studyForm.Modality,
bodyPart: this.studyForm.BodyPart, bodyPart: this.studyForm.BodyPart,
BodyPartForEditOther: this.studyForm.BodyPartForEditOther
} }
updateModality(this.data.TrialId, params) updateModality(this.data.TrialId, params)
.then((res) => { .then((res) => {

View File

@ -22,7 +22,7 @@
<el-table v-loading="studyLoading" :data="studyList" style="width: 100%" :row-class-name="tableRowClassName" <el-table v-loading="studyLoading" :data="studyList" style="width: 100%" :row-class-name="tableRowClassName"
max-height="250" @selection-change="handleUploadedSelectionChange" max-height="250" @selection-change="handleUploadedSelectionChange"
:default-sort="{ prop: 'UploadedTime', order: 'ascending' }"> :default-sort="{ prop: 'UploadedTime', order: 'ascending' }">
<el-table-column type="selection" width="55" :selectable="handleSelectable2" /> <el-table-column type="selection" width="55" />
<!-- 检查编号 --> <!-- 检查编号 -->
<el-table-column prop="StudyCode" :label="$t('trials:uploadedDicoms:table:studyId')" min-width="80" <el-table-column prop="StudyCode" :label="$t('trials:uploadedDicoms:table:studyId')" min-width="80"
show-overflow-tooltip sortable> show-overflow-tooltip sortable>
@ -105,16 +105,12 @@
<el-button icon="el-icon-upload2" v-if=" <el-button icon="el-icon-upload2" v-if="
['PT、CT', 'CT、PT', 'PET-CT'].includes(scope.row.Modalities) && ['PT、CT', 'CT、PT', 'PET-CT'].includes(scope.row.Modalities) &&
relationInfo.IsHaveStudyClinicalData relationInfo.IsHaveStudyClinicalData
" :disabled="!isAfresh && data.SubmitState === 2 && data.SubmitTime && moment(data.SubmitTime).isAfter(moment(scope.row.UploadedTime))" " :title="$t('trials:workbench:title:UploadClinicalData')" circle @click="handleUploadPetData(scope.row)" />
:title="$t('trials:workbench:title:UploadClinicalData')" circle @click="handleUploadPetData(scope.row)" />
<!-- 编辑 --> <!-- 编辑 -->
<el-button icon="el-icon-edit-outline" v-hasPermi="['trials:trials-panel:visit:crc-upload:edit']" <el-button icon="el-icon-edit-outline" v-hasPermi="['trials:trials-panel:visit:crc-upload:edit']"
:title="$t('common:button:edit')" :title="$t('common:button:edit')" circle @click="handleEditStudy(scope.row)" />
:disabled="!isAfresh && data.SubmitState === 2 && data.SubmitTime && moment(data.SubmitTime).isAfter(moment(scope.row.UploadedTime))"
circle @click="handleEditStudy(scope.row)" />
<!-- 删除 :disabled="scope.row.IsDeleted"--> <!-- 删除 :disabled="scope.row.IsDeleted"-->
<el-button icon="el-icon-delete" :title="$t('trials:uploadedDicoms:action:delete')" circle <el-button icon="el-icon-delete" :title="$t('trials:uploadedDicoms:action:delete')" circle
:disabled="!isAfresh && data.SubmitState === 2 && data.SubmitTime && moment(data.SubmitTime).isAfter(moment(scope.row.UploadedTime))"
@click="handleDeleteStudy(scope.row)" /> @click="handleDeleteStudy(scope.row)" />
<!-- <el-button--> <!-- <el-button-->
<!-- icon="el-icon-toilet-paper"--> <!-- icon="el-icon-toilet-paper"-->
@ -601,10 +597,6 @@ export default {
type: String, type: String,
required: true, required: true,
}, },
isAfresh: {
type: Boolean,
default: false
}
}, },
data() { data() {
return { return {
@ -1893,13 +1885,6 @@ export default {
return true return true
} }
}, },
handleSelectable2(row) {
if (!this.isAfresh && this.data.SubmitState === 2 && this.data.SubmitTime && moment(this.data.SubmitTime).isAfter(moment(row.UploadedTime))) {
return false
} else {
return true
}
},
// //
handleUploadedSelectionChange(selection) { handleUploadedSelectionChange(selection) {
this.deleteArr = [] this.deleteArr = []

View File

@ -314,14 +314,14 @@
" :label="$t('common:action:action')" width="250" fixed="right"> " :label="$t('common:action:action')" width="250" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- 上传 --> <!-- 上传 -->
<el-button v-hasPermi="['trials:trials-panel:visit:crc-upload:upload']" icon="el-icon-upload2" :disabled="!isOCTorIVUS && (scope.row.SubmitState * 1 === 2 || <el-button v-hasPermi="['trials:trials-panel:visit:crc-upload:upload']" icon="el-icon-upload2" :disabled="scope.row.SubmitState * 1 === 2 ||
scope.row.VisitExecuted === 2 || scope.row.VisitExecuted === 2 ||
scope.row.IsLostVisit || (scope.row.IsSubjectQuit && scope.row.SubmitState * 1 !== 2)) scope.row.IsLostVisit || (scope.row.IsSubjectQuit && scope.row.SubmitState * 1 !== 2)
" circle :title="$t('trials:crcUpload:action:upload')" @click="CRChandleUpload(scope.row)" /> " circle :title="$t('trials:crcUpload:action:upload')" @click="CRChandleUpload(scope.row)" />
<!-- 上传2 --> <!-- 上传2 -->
<el-button icon="el-icon-upload2" v-hasPermi="['trials:trials-panel:visit:crc-upload:upload2']" :disabled="!isOCTorIVUS && (scope.row.SubmitState * 1 === 2 || <el-button icon="el-icon-upload2" v-hasPermi="['trials:trials-panel:visit:crc-upload:upload2']" :disabled="scope.row.SubmitState * 1 === 2 ||
scope.row.VisitExecuted === 2 || scope.row.VisitExecuted === 2 ||
scope.row.IsLostVisit || (scope.row.IsSubjectQuit && scope.row.SubmitState * 1 !== 2)) scope.row.IsLostVisit || (scope.row.IsSubjectQuit && scope.row.SubmitState * 1 !== 2)
" circle :title="$t('trials:crcUpload:action:upload')" @click="CRChandleUpload2(scope.row)" /> " circle :title="$t('trials:crcUpload:action:upload')" @click="CRChandleUpload2(scope.row)" />
<!-- 提交 --> <!-- 提交 -->
<el-button v-hasPermi="['trials:trials-panel:visit:crc-upload:submit']" icon="el-icon-check" :disabled="scope.row.AuditState * 1 > 0 || <el-button v-hasPermi="['trials:trials-panel:visit:crc-upload:submit']" icon="el-icon-check" :disabled="scope.row.AuditState * 1 > 0 ||
@ -975,7 +975,6 @@ export default {
}, },
TrialReadingCriterionName: null, TrialReadingCriterionName: null,
TrialCode: null, TrialCode: null,
isOCTorIVUS: false
} }
}, },
watch: { watch: {
@ -1068,7 +1067,6 @@ export default {
this.trialCriterionList = res.Result this.trialCriterionList = res.Result
this.TrialReadingCriterionId = this.TrialReadingCriterionId =
this.trialCriterionList[0].TrialReadingCriterionId this.trialCriterionList[0].TrialReadingCriterionId
this.isOCTorIVUS = this.trialCriterionList.some(item => item.CriterionType === 19 || item.CriterionType === 20)
// this.handleUpload2(this.subjectRowData) // this.handleUpload2(this.subjectRowData)
}) })
.catch(() => { }) .catch(() => { })

View File

@ -2312,8 +2312,7 @@ export default {
ModifyReason: this.noneDicomForm.ModifyReason, ModifyReason: this.noneDicomForm.ModifyReason,
Modality: this.noneDicomForm.Modality, Modality: this.noneDicomForm.Modality,
BodyPart: this.noneDicomForm.BodyParts.join(', '), BodyPart: this.noneDicomForm.BodyParts.join(', '),
ImageDate: this.noneDicomForm.ImageDate, ImageDate: this.noneDicomForm.ImageDate
BodyPartForEditOther: this.noneDicomForm.BodyPartForEditOther,
}, },
signInfo signInfo
} }

View File

@ -52,8 +52,8 @@ module.exports = defineConfig({
}, },
'/api': { '/api': {
// target: 'http://106.14.89.110:30000', target: 'http://106.14.89.110:30000',
target: 'http://101.132.253.119:7010', // uat // target: 'http://101.132.253.119:7010', // uat
changeOrigin: true, changeOrigin: true,
secure: false, secure: false,
pathRewrite: { pathRewrite: {