80 lines
1.8 KiB
Plaintext
80 lines
1.8 KiB
Plaintext
<template>
|
|
<BaseContainer>
|
|
<el-tabs v-model="TrialReadingCriterionId" type="border-card">
|
|
<el-tab-pane v-for="criterion of trialCriterionList" :key="criterion.TrialReadingCriterionId" :label="criterion.TrialReadingCriterionName" :name="criterion.TrialReadingCriterionId">
|
|
<div v-if="TrialReadingCriterionId === criterion.TrialReadingCriterionId">
|
|
|
|
</div>
|
|
</el-tab-pane>
|
|
</el-tabs>
|
|
</BaseContainer>
|
|
</template>
|
|
<script>
|
|
import { getTrialCriterionList, getTrialSiteSelect } from '@/api/trials'
|
|
|
|
const searchDataDefault = () => {
|
|
return {
|
|
TrialSiteCode: '',
|
|
SubjectCode: '',
|
|
ModuleType: null,
|
|
ReadingStatus: null,
|
|
Name: '',
|
|
PageIndex: 1,
|
|
PageSize: 20
|
|
}
|
|
}
|
|
const MinPlanCount = 10
|
|
export default {
|
|
data() {
|
|
return {
|
|
TrialReadingCriterionId: null,
|
|
trialCriterionList: [],
|
|
trialId: this.$route.query.trialId
|
|
}
|
|
},
|
|
name: 'TrialsNotice',
|
|
watch: {
|
|
TrialReadingCriterionId(v) {
|
|
if (v) {
|
|
this.getList()
|
|
}
|
|
}
|
|
},
|
|
mounted() {
|
|
this.getSite()
|
|
this.getTrialCriterionList()
|
|
},
|
|
methods: {
|
|
getTrialCriterionList() {
|
|
getTrialCriterionList(this.trialId, false).then(res => {
|
|
this.trialCriterionList = res.Result
|
|
this.TrialReadingCriterionId = this.trialCriterionList[0].TrialReadingCriterionId
|
|
}).catch(() => {})
|
|
},
|
|
// 获取site下拉框数据
|
|
getSite() {
|
|
getTrialSiteSelect(this.trialId).then(res => {
|
|
this.siteOptions = res.Result
|
|
})
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
>>>.hidden-row{
|
|
display: none;
|
|
}
|
|
>>>.el-dialog__body {
|
|
padding: 0px 20px;
|
|
}
|
|
>>>.el-dialog__header {
|
|
padding: 10px 20px;
|
|
}
|
|
|
|
>>>.el-tag--danger.el-tag--dark {
|
|
// background-color: #f56c6c!important;
|
|
border-color: none!important;
|
|
// color: #fff!important;
|
|
}
|
|
</style>
|