Compare commits

..

No commits in common. "06d3026207286651f923840c9643626fcd4a63ed" and "408d42f6b8ff7f47d062c995a684d3ec772c7b75" have entirely different histories.

4 changed files with 7 additions and 16 deletions

View File

@ -14,7 +14,7 @@
:value="item.Id"
/> -->
<el-option
v-for="item of modalitys"
v-for="item of $d.Modality"
:key="item.id"
:label="item.label"
:value="item.id"
@ -73,12 +73,6 @@ export default {
type: Boolean,
default: false
},
modalitys: {
type: Array,
default() {
return []
}
}
},
data() {
return {

View File

@ -74,7 +74,7 @@
custom-class="base-dialog-wrapper"
:append-to-body="userTypeEnumInt !== 0"
>
<EquipmentForm :data="rowData" :trial-site-survey-equipment-type="trialSiteSurveyEquipmentType" :is-show-parameters="isShowParameters" :modalitys="modalitys" @getList="getList" @close="closeDialog" />
<EquipmentForm :data="rowData" :trial-site-survey-equipment-type="trialSiteSurveyEquipmentType" :isShowParameters="isShowParameters" @getList="getList" @close="closeDialog" />
</el-dialog>
</div>
@ -107,8 +107,7 @@ export default {
state: null,
trialSiteSurveyId: '',
trialId: '',
isShowParameters: false,
modalitys: []
isShowParameters: false
}
},
mounted() {
@ -155,13 +154,11 @@ export default {
}).catch(() => { this.loading = false })
}).catch(() => {})
},
initList(TrialSiteEquipmentSurveyList, trialSiteSurvey, modalitys, isShowParameters) {
initList(TrialSiteEquipmentSurveyList, trialSiteSurvey, isShowParameters) {
console.log(isShowParameters)
this.isShowParameters = isShowParameters
this.list = TrialSiteEquipmentSurveyList
this.state = trialSiteSurvey.State
const modalityArr = modalitys ? modalitys.split('|') : []
this.modalitys = this.$d.Modality.filter(i => modalityArr.includes(i.value))
console.log(this.modalitys)
this.$forceUpdate()
},
//

View File

@ -244,7 +244,7 @@ export default {
this.$refs['historicalParticipant'].initList(historicalArr, res.Result.TrialSiteSurvey)
this.$refs['researchParticipants'].initList(newArr, res.Result.TrialSiteSurvey)
this.$refs['researchEquipments'].initList(res.Result.TrialSiteEquipmentSurveyList, res.Result.TrialSiteSurvey, res.Result.TrialInfo.Modalitys, !(res.Result.SiteSurveyFiledConfig && res.Result.SiteSurveyFiledConfig.ModifyFiledList.length > 0))
this.$refs['researchEquipments'].initList(res.Result.TrialSiteEquipmentSurveyList, res.Result.TrialSiteSurvey, res.Result.SiteSurveyFiledConfig && res.Result.SiteSurveyFiledConfig.ModifyFiledList.length > 0 ? false : true)
this.isExistIncorrect = res.Result.TrialSiteUserSurveyList.every(item => item.IsCorrect === false)
}
this.loading = false

View File

@ -294,7 +294,7 @@ export default {
if (res.IsSuccess) {
this.getCode()
this.loading = false
const msg = this.$t('trials:researchForm:tip:sendCode').replace('xxx', this.form.EmailOrPhone)
let msg = this.$t('trials:researchForm:tip:sendCode').replace("xxx", this.form.EmailOrPhone)
this.$message.success(msg)
} else {
this.$alert(res.ErrorMessage)