<!-- 第14套:铯原子 --> <script lang="ts" setup name="MeasureDataTemplateDetail"> import crystalOscillator from './components/crystalOscillator.vue' import clock from './components/clock.vue' import universalCounter from './components/universalCounter.vue' const props = defineProps({ infoId: String, // id dataNo: String, // 检定数据编号 itemCategoryName: String, // 检定项分类名称 }) const emits = defineEmits(['giveInfoId']) const giveInfoId = (value: any) => { emits('giveInfoId', value) } const templateDetailRef = ref() const checkout = templateDetailRef.value?.checkout const itemFormData = templateDetailRef.value?.itemFormData const templateFormAndTableRef = templateDetailRef.value?.templateFormAndTableRef const pageType = templateDetailRef.value?.pageType const getList = templateDetailRef.value?.getList defineExpose({ checkout, itemFormData, templateFormAndTableRef, pageType, getList }) </script> <template> <!-- 晶振 --> <crystal-oscillator v-if="props.itemCategoryName === '晶振'" ref="templateDetailRef" :data-no="props.dataNo" :info-id="props.infoId" @giveInfoId="giveInfoId" /> <!-- 铷钟 --> <clock v-if="props.itemCategoryName === '铷钟'" ref="templateDetailRef" :data-no="props.dataNo" :info-id="props.infoId" @giveInfoId="giveInfoId" /> <!-- 计数器 --> <universal-counter v-if="props.itemCategoryName.includes('计数器')" ref="templateDetailRef" :item-category-name="props.itemCategoryName" :data-no="props.dataNo" :info-id="props.infoId" @giveInfoId="giveInfoId" /> </template>