74 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
			
		
		
	
	
			74 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
| <template>
 | |
|   <div>
 | |
|     <QuestionsForm
 | |
|       :data="data"
 | |
|       :trial-clinical-id="trialClinicalId"
 | |
|       :is-viewer="isViewer"
 | |
|       :visit-id="visitId"
 | |
|       :subject-id="subjectId"
 | |
|       :open-type="openType"
 | |
|       :trial-id="trialId"
 | |
|       :reading-id="readingId"
 | |
|       :clinical-form-id="clinicalFormId"
 | |
|       @close="close"
 | |
|     ></QuestionsForm>
 | |
|   </div>
 | |
| </template>
 | |
| 
 | |
| <script>
 | |
| import QuestionsForm from './components/QuestionsForm'
 | |
| export default {
 | |
| name: "index",
 | |
|   components: { QuestionsForm },
 | |
|   methods: {
 | |
|     close() {
 | |
|       this.$emit('close')
 | |
|     }
 | |
|   },
 | |
|   props: {
 | |
|     openType: {
 | |
|       type: String,
 | |
|       default: () => 'add'
 | |
|     },
 | |
|     isViewer: {
 | |
|       type: Boolean,
 | |
|       default: () => true
 | |
|     },
 | |
|     visitId: {
 | |
|       type: String,
 | |
|       default: () => ''
 | |
|     },
 | |
|     subjectId: {
 | |
|       type: String,
 | |
|       default: () => ''
 | |
|     },
 | |
|     trialId: {
 | |
|       type: String,
 | |
|       default: () => ''
 | |
|     },
 | |
|     readingId: {
 | |
|       type: String,
 | |
|       default: () => ''
 | |
|     },
 | |
|     clinicalFormId: {
 | |
|       type: String,
 | |
|       default: () => ''
 | |
|     },
 | |
|     data: {
 | |
|       type: Object,
 | |
|       default: () => {}
 | |
|     },
 | |
|     trialClinicalId: {
 | |
|       type: String,
 | |
|       default: () => {
 | |
|         return ''
 | |
|       }
 | |
|     }
 | |
|   }
 | |
| }
 | |
| </script>
 | |
| 
 | |
| <style scoped>
 | |
| 
 | |
| </style>
 |