| | |
| | | <el-table-column show-overflow-tooltip prop="physicalExamDate" label="体检日期" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="physicalExamType" :formatter="typeFormat" label="体检类型" width="80" /> |
| | | <el-table-column show-overflow-tooltip prop="bloodPressure" label="血压" width="60" /> |
| | | <el-table-column show-overflow-tooltip prop="transaminase" label="转氨酶" width="60" /> |
| | | <el-table-column show-overflow-tooltip prop="ecg" label="心电图" width="60" /> |
| | | <el-table-column show-overflow-tooltip prop="conclusion" label="体检结论" /> |
| | | <el-table-column show-overflow-tooltip prop="reviewRecord" label="复查记录" /> |
| | | <el-table-column show-overflow-tooltip prop="transaminase" label="转氨酶" width="70" /> |
| | | <el-table-column show-overflow-tooltip prop="ecg" label="心电图" width="70" /> |
| | | <el-table-column show-overflow-tooltip prop="conclusion" label="体检结论" min-width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="reviewRecord" label="复查记录" min-width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="remark" label="备注" /> |
| | | </el-table> |
| | | <pagination |
| | |
| | | <script> |
| | | // 引用翻页组件 |
| | | import Pagination from '@/components/Pagination' |
| | | import dictMixin from '../../utils/dictMixin' |
| | | export default { |
| | | components: { |
| | | Pagination |
| | | }, |
| | | mixins: [dictMixin], |
| | | props: { |
| | | dialogVisible: { |
| | | type: Boolean, |
| | |
| | | }, // 查询参数 |
| | | sort: {}, // 排序 |
| | | pagination: { // 分页参数 |
| | | size: 5, |
| | | size: 15, |
| | | num: 1 |
| | | }, |
| | | list: [], // 给table显示的数据 |
| | | defaultProps: { |
| | | children: 'children', |
| | | label: 'label' |
| | | }, |
| | | ecgOptions: [], |
| | | physicalExamTypeOptions: [] |
| | | } |
| | | // ecgOptions: [], |
| | | // physicalExamTypeOptions: [] |
| | | } |
| | | }, |
| | | computed: { |
| | |
| | | get() { |
| | | return this.dialogVisible |
| | | } |
| | | } |
| | | }, |
| | | // 字典选项计算属性 |
| | | physicalExamTypeOptions() { return this.getDictOptions('PHYSICALEXAMTYPE') }, |
| | | ecgOptions() { return this.getDictOptions('ECG') } |
| | | }, |
| | | mounted() { |
| | | this.getDicts('PHYSICALEXAMTYPE').then(response => { |
| | | this.physicalExamTypeOptions = response.data |
| | | }) |
| | | this.getDicts('ECG').then(response => { |
| | | this.ecgOptions = response.data |
| | | }) |
| | | // 字典数据已在登录时预加载,直接从 Vuex 获取 |
| | | this.initDictTypes(['PHYSICALEXAMTYPE', 'ECG']) |
| | | }, |
| | | methods: { |
| | | typeFormat(row, column) { |