临床数据配置更改

uat_us
caiyiling 2024-04-07 13:55:32 +08:00
parent 8164ef38eb
commit 4896aabe3d
1 changed files with 5 additions and 2 deletions

View File

@ -1476,11 +1476,15 @@ export default {
},
handleSetCriterion() {
this.criterionListVisible = true
this.selectedCriterions = []
this.selectCriterionIds = []
this.$nextTick(() => {
for (let i = 0; i < this.form.TrialCriterionIds.length; i++) {
var index = this.criterionList.findIndex(item => item.Id === this.form.TrialCriterionIds[i])
if (index > -1) {
this.$refs['criterionList'].toggleRowSelection(this.criterionList[index], true)
this.selectedCriterions.push(this.criterionList[index].CriterionName)
this.selectCriterionIds.push(this.criterionList[index].Id)
}
}
})
@ -1577,7 +1581,7 @@ export default {
})
},
handleConfirmCriterion() {
if(this.selectedCriterions !== this.form.TrialCriterionNames){
if(this.selectedCriterions.join(', ') !== this.form.TrialCriterionNamesStr){
//
this.form.ClinicalDataSetNames = []
this.form.ClinicalDataTrialSetIds = []
@ -1587,7 +1591,6 @@ export default {
this.form.TrialCriterionIds = this.selectCriterionIds
this.form.TrialCriterionNamesStr = this.form.TrialCriterionNames.join(', ')
this.criterionListVisible = false
//
},
changeCriterionStatus(callback, row) {