From 736a4eea18ea42c5105bc2a60986c86054040a95 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Fri, 14 Jun 2024 13:26:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A3=80=E6=9F=A5=E6=8A=80=E6=9C=AF=E4=B8=AD?= =?UTF-8?q?=E8=8B=B1=E6=96=87=E5=88=87=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../trial-config/components/logicalConfig.vue | 27 +++++++++++-------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/src/views/trials/trials-panel/setting/trial-config/components/logicalConfig.vue b/src/views/trials/trials-panel/setting/trial-config/components/logicalConfig.vue index 3ca7f2ff..6f9cea81 100644 --- a/src/views/trials/trials-panel/setting/trial-config/components/logicalConfig.vue +++ b/src/views/trials/trials-panel/setting/trial-config/components/logicalConfig.vue @@ -896,9 +896,9 @@ export default { renderFunc(h, option) { return ( - - {option.value} -{" "} - {option.raw.Description} + + {option.label} -{" "} + {option.raw.Description} ); }, @@ -913,10 +913,10 @@ export default { [], this.selectedList.map((v) => v) ); - this.form.ModalityListStr = this.form.ModalityList.toString().replaceAll( - ",", - " | " - ); + let Modalitys = this.form.ModalityList.map((item) => { + return this.$fd("Modality", item.trim()); + }); + this.form.ModalityListStr = Modalitys.toString().replaceAll(",", " | "); this.modalityListVisible = false; }, handleSelectionChange(val) { @@ -936,6 +936,7 @@ export default { }, handleSetModality() { this.modalityListVisible = true; + console.log(this.form.ModalityList); var a = this.$d.Modality.filter((v) => { return !!this.form.ModalityList.find((v1) => { return v1 === v.value; @@ -1256,10 +1257,14 @@ export default { this.form[k] = res[k]; } } - this.form.ModalityListStr = this.form.ModalityList.toString().replaceAll( - ",", - " | " - ); + let Modalitys = this.form.ModalityList.map((item) => { + return this.$fd("Modality", item.trim()); + }); + this.form.ModalityListStr = Modalitys.toString().replaceAll(",", " | "); + // this.form.ModalityListStr = this.form.ModalityList.toString().replaceAll( + // ",", + // " | " + // ); this.form.BodyPartTypeList = this.form.BodyPartTypes.split("|"); let r = await this.getTrialBodyPartList(); if (r) {