临床资料详情tip字段替换

uat_us
wangxiaoshuang 2024-03-25 15:43:45 +08:00
parent 5e56098750
commit f17c230267
1 changed files with 13 additions and 2 deletions

View File

@ -10,7 +10,7 @@
</h4> </h4>
<h5> <h5>
<!-- 当前访视/阅片期需要采集临床数据名称请采集临床数据后按照模板上传并签名确认 --> <!-- 当前访视/阅片期需要采集临床数据名称请采集临床数据后按照模板上传并签名确认 -->
{{ $t('trials:readingPeriod:cd:title:tips1') }} {{ tips1 }}
</h5> </h5>
<h5> <h5>
{{ $t('trials:readingPeriod:cd:title:tips2') }} {{ $t('trials:readingPeriod:cd:title:tips2') }}
@ -430,6 +430,7 @@ export default {
otherInfo: {}, otherInfo: {},
spanArr: [], spanArr: [],
pos: 0, pos: 0,
tips1:null,
} }
}, },
mounted() { mounted() {
@ -484,7 +485,17 @@ export default {
} }
this.loading = true this.loading = true
getReadingClinicalDataList(this.searchData).then(res => { getReadingClinicalDataList(this.searchData).then(res => {
this.list = res.Result this.list = res.Result;
let message ="";
this.list.forEach((item,index)=>{
if(index<1){
message += item.ClinicalDataSetName;
}else{
message =message + "、" + item.ClinicalDataSetName;
}
})
this.tips1 = this.$t('trials:readingPeriod:cd:title:tips1').replace('临床数据名称',message);
this.tips1 = this.tips1.replace("xxx",message);
this.pos = 0 this.pos = 0
this.getSpanArr(this.list) this.getSpanArr(this.list)
this.otherInfo = res.OtherInfo this.otherInfo = res.OtherInfo