@@ -262,6 +264,7 @@ export default {
currentRow: {},
studyMonitorId: null,
open: null,
+ BodyPart: {}
}
},
watch: {
@@ -289,8 +292,9 @@ export default {
store.dispatch('trials/setUnLock', this.btnLoading)
},
},
- created() {
+ async created() {
this.getList()
+ this.BodyPart.Bodypart = await this.$getBodyPart(this.$route.query.trialId)
},
beforeDestroy() {
store.dispatch('trials/setUnLock', false)
@@ -674,6 +678,26 @@ export default {
let blob = new Blob(['\ufeff', text], { type: 'text/plain' })
return blob
},
+ 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(' | ')
+ },
},
}
diff --git a/src/components/uploadDicomAndNonedicom/study-view.vue b/src/components/uploadDicomAndNonedicom/study-view.vue
index 9ee7c2bd..16486b17 100644
--- a/src/components/uploadDicomAndNonedicom/study-view.vue
+++ b/src/components/uploadDicomAndNonedicom/study-view.vue
@@ -4,28 +4,15 @@
-
+
-
+
-
+
-
+
{{
$fd(
@@ -39,83 +26,35 @@
-
+
-
+
-
+
-
+
-
+
- {{
- $fd(
- 'Bodypart',
- scope.row.BodyPart,
- 'Code',
- { Bodypart: bodyPart },
- 'Name'
- )
- }}
+ {{ getBodyPart(scope.row.BodyPart, scope.row.BodyPartForEditOther) }}
-
+
-
-
+
+
-
+
-
+
@@ -124,42 +63,20 @@
-
-
+
+
-
+
-
+
{{ $t('common:button:confirm') }}
-
+
{{ $t('common:button:cancel') }}
@@ -235,8 +152,12 @@ export default {
],
},
loading: false,
+ BodyPart: {}
}
},
+ async created() {
+ this.BodyPart.Bodypart = await this.$getBodyPart(this.$route.query.trialId)
+ },
methods: {
// 预览
preview(row) {
@@ -283,8 +204,27 @@ export default {
console.log(err)
}
},
+ 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(' | ')
+ },
},
}
-
\ No newline at end of file
+
\ No newline at end of file