非dicom阅片检查部位翻译问题
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
20ad1c894a
commit
785ca4ad47
|
|
@ -20,7 +20,7 @@
|
||||||
study.StudyName }}</span>
|
study.StudyName }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div style="text-overflow: ellipsis;overflow: hidden;">
|
<div style="text-overflow: ellipsis;overflow: hidden;">
|
||||||
<span :title="study.BodyPart">{{ study.BodyPart }}</span>
|
<span :title="study.BodyPart">{{ getBodyPart(study.BodyPart, study.BodyPartForEditOther) }}</span>
|
||||||
<span style="margin-left: 5px;" :title="study.Modality">{{ study.Modality }}</span>
|
<span style="margin-left: 5px;" :title="study.Modality">{{ study.Modality }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -74,18 +74,40 @@ export default {
|
||||||
activeFileIndex: -1,
|
activeFileIndex: -1,
|
||||||
taskInfo: null,
|
taskInfo: null,
|
||||||
studyList: [],
|
studyList: [],
|
||||||
pdf
|
pdf,
|
||||||
|
BodyPart: {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
async mounted() {
|
||||||
this.taskInfo = JSON.parse(localStorage.getItem('taskInfo'))
|
this.taskInfo = JSON.parse(localStorage.getItem('taskInfo'))
|
||||||
this.studyList = this.visitTaskInfo.StudyList
|
this.studyList = this.visitTaskInfo.StudyList
|
||||||
if (this.studyList.length === 0) return
|
if (this.studyList.length === 0) return
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.activeStudy(this.studyList[0].Id)
|
this.activeStudy(this.studyList[0].Id)
|
||||||
})
|
})
|
||||||
|
this.BodyPart.Bodypart = await this.$getBodyPart(this.$route.query.trialId)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getBodyPart(bodyPart, other) {
|
||||||
|
if (!bodyPart && !other) return ''
|
||||||
|
var separator = ','
|
||||||
|
if (bodyPart.indexOf('|') > -1) {
|
||||||
|
separator = '|'
|
||||||
|
} else if (bodyPart.indexOf(',') > -1) {
|
||||||
|
separator = ','
|
||||||
|
} else if (bodyPart.indexOf(',') > -1) {
|
||||||
|
separator = ','
|
||||||
|
}
|
||||||
|
var arr = bodyPart.split(separator)
|
||||||
|
var newArr = arr.map((i) => {
|
||||||
|
return this.$fd('Bodypart', i.trim(), 'Code', this.BodyPart, 'Name')
|
||||||
|
})
|
||||||
|
if (other) {
|
||||||
|
newArr.push(other)
|
||||||
|
}
|
||||||
|
newArr = newArr.filter(Boolean)
|
||||||
|
return newArr.join(' | ')
|
||||||
|
},
|
||||||
// 设置初始化激活文件
|
// 设置初始化激活文件
|
||||||
setInitActiveFile() {
|
setInitActiveFile() {
|
||||||
if (this.studyList.length === 0) return
|
if (this.studyList.length === 0) return
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue