配置确认页面展示术语配置
continuous-integration/drone/push Build is passing Details

uat_us
wangxiaoshuang 2024-11-13 13:30:31 +08:00
parent 4b406f96fc
commit e388ea2543
1 changed files with 41 additions and 29 deletions

View File

@ -1307,6 +1307,16 @@ export default {
// OldVal: this.initialForm.ClinicalDataSetNames.join(', ')
// }
]
this.form.TrialObjectNameList.forEach((item) => {
let obj = {
Name: item.Name,
NewVal: item.TrialName,
OldVal: this.initialForm.TrialObjectNameList.find(
(d) => d.Name === item.Name
).TrialName,
}
this.confirmData.push(obj)
})
},
//
subjectCodeRuleChange(val) {
@ -1323,35 +1333,6 @@ export default {
this.form[k] = res[k]
}
}
if (
!this.form.TrialObjectNameList ||
(Array.isArray(this.form.TrialObjectNameList) &&
this.form.TrialObjectNameList.length <= 0)
) {
this.form.TrialObjectNameList = this.$d.Terminology.map((item) => {
return {
Name: item.label,
TrialName: item.label,
IsDefault: true,
}
})
} else if (
Array.isArray(this.form.TrialObjectNameList) &&
this.form.TrialObjectNameList.length > 0
) {
this.$d.Terminology.forEach((item) => {
if (
!this.form.TrialObjectNameList.find((d) => d.Name === item.label)
) {
this.form.TrialObjectNameList.push({
Name: item.label,
TrialName: item.label,
IsDefault: true,
})
}
})
}
let Modalitys = this.form.ModalityList.map((item) => {
return this.$fd('Modality', item.trim())
})
@ -1373,6 +1354,37 @@ export default {
.replaceAll(',', ' | ')
// this.form.ClinicalDataSetNamesStr = this.form.ClinicalDataSetNames.join(', ')
this.initialForm = { ...this.form }
this.initialForm.TrialObjectNameList = JSON.parse(
JSON.stringify(this.form.TrialObjectNameList)
)
if (
!this.form.TrialObjectNameList ||
(Array.isArray(this.form.TrialObjectNameList) &&
this.form.TrialObjectNameList.length <= 0)
) {
this.form.TrialObjectNameList = this.$d.Terminology.map((item) => {
return {
Name: item.label,
TrialName: item.label,
IsDefault: true,
}
})
} else if (
Array.isArray(this.form.TrialObjectNameList) &&
this.form.TrialObjectNameList.length > 0
) {
this.$d.Terminology.forEach((item) => {
if (
!this.form.TrialObjectNameList.find((d) => d.Name === item.label)
) {
this.form.TrialObjectNameList.push({
Name: item.label,
TrialName: item.label,
IsDefault: true,
})
}
})
}
this.loading = false
}
},