<!-- 人员登记 基本信息 --> <script name="RegisterTrainning" lang="ts" setup> const props = defineProps({ operation: { type: String, default: '' } }) const trainningColumns = ref([ { text: '培训编号', value: 'staffNo', align: 'center', width: '160' }, { text: '培训时间', value: 'staffName', align: 'center' }, { text: '培训场地', value: 'station', align: 'center' }, { text: '培训内容', value: 'certificateNumber', align: 'center' }, { text: '培训方式', value: 'certificateNumber', align: 'center' }, { text: '值班领导', value: 'attachment', align: 'center' }, { text: '效果成绩', value: 'attachment', align: 'center' }, ]) // 表头 const trainningList = ref([]) // 表格数据 // 逻辑 </script> <template> <app-container> <el-form ref="ruleFormRef" label-position="right" label-width="110px" border stripe> <table-container title="训练情况"> <!-- 表格区域 --> <normal-table id="registerTabel" :pagination="false" :data="trainningList" :columns="trainningColumns"> <template #preColumns> <el-table-column label="序号" width="55" align="center"> <template #default="scope"> {{ scope.$index + 1 }} </template> </el-table-column> </template> <template #columns> <el-table-column fixed="right" label="操作" align="center" width="130" /> </template> </normal-table> </table-container> </el-form> </app-container> </template>