-
+
+
+
@@ -411,16 +308,36 @@ export default {
trialId: this.$route.query.trialId,
tokenKey: getToken(),
openWindow: null,
- bp: [],
+ BodyPart: {}
};
},
async mounted() {
- this.bp = await this.$getBodyPart(this.$route.query.trialId);
+ this.BodyPart.Bodypart = await this.$getBodyPart(this.$route.query.trialId)
this.getSite();
this.getVisitPlanOptions();
this.getList();
},
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(' | ')
+ },
// 获取检查列表数据
getList() {
this.loading = true;
@@ -550,28 +467,28 @@ export default {
this.loading = false;
});
},
- getBodyPart(bodyPart) {
- if (!bodyPart) 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",
- { Bodypart: this.bp },
- "Name"
- );
- });
- return newArr.join(" | ");
- },
+ // getBodyPart(bodyPart) {
+ // if (!bodyPart) 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",
+ // { Bodypart: this.bp },
+ // "Name"
+ // );
+ // });
+ // return newArr.join(" | ");
+ // },
// 复制
copyCode() {
this.$copyText(`链接: ${this.shareLink} 提取码: ${this.extractionCode}`)
diff --git a/src/views/trials/trials-panel/subject/subject-list/index.vue b/src/views/trials/trials-panel/subject/subject-list/index.vue
index 957ab68f..5ec8e551 100644
--- a/src/views/trials/trials-panel/subject/subject-list/index.vue
+++ b/src/views/trials/trials-panel/subject/subject-list/index.vue
@@ -141,7 +141,7 @@
:title="$t('trials:subject:title:report')" @click="handleMessage(scope.row)" />
+ circle :title="$t('trials:subject:title:chart')" @click="handleopenSubjectChart(scope.row)" />
diff --git a/src/views/trials/trials-panel/visit/crc-upload/components/uploadDicomFiles2.vue b/src/views/trials/trials-panel/visit/crc-upload/components/uploadDicomFiles2.vue
index b6a2d28f..bab309bb 100644
--- a/src/views/trials/trials-panel/visit/crc-upload/components/uploadDicomFiles2.vue
+++ b/src/views/trials/trials-panel/visit/crc-upload/components/uploadDicomFiles2.vue
@@ -423,7 +423,7 @@
+ :title="$t('trials:uploadDicoms:title:previewLocalImage')" append-to-body>