CriticalLabTest.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <template>
  2. <div>
  3. <crumbs
  4. title="危急值提醒-实验室检查规则测试-失败条数"
  5. class="topBack"
  6. :param="$route.params"
  7. linkTo="KnowledgeMapRuleTest"
  8. >
  9. <el-form :inline="true" class="demo-form-inline">
  10. <el-form-item style="marginBottom: 0px">
  11. <el-button size="mini" @click="exportData">导出</el-button>
  12. </el-form-item>
  13. </el-form>
  14. </crumbs>
  15. <div style="margin: 60px 20px 0">
  16. <el-table :data="list" border >
  17. <el-table-column :resizable="false" type="index" :index="indexMethod" label="编号" width="80"></el-table-column>
  18. <el-table-column :resizable="false" prop="gmtModified" label="测试时间"></el-table-column>
  19. <el-table-column :resizable="false" prop="hisName" label="实验室检查名称(标准术语)" show-overflow-tooltip></el-table-column>
  20. <el-table-column :resizable="false" prop="uniqueName" label="实验室检查名称(医院术语)" show-overflow-tooltip></el-table-column>
  21. <el-table-column :resizable="false" prop="uniqueName" label="高危急值" show-overflow-tooltip></el-table-column>
  22. <el-table-column :resizable="false" prop="uniqueName" label="低危急值" show-overflow-tooltip></el-table-column>
  23. <el-table-column :resizable="false" prop="uniqueName" label="输入值" show-overflow-tooltip></el-table-column>
  24. <el-table-column :resizable="false" prop="uniqueName" label="实际结果" show-overflow-tooltip></el-table-column>
  25. <el-table-column :resizable="false" prop="uniqueName" label="预期结果" show-overflow-tooltip></el-table-column>
  26. <el-table-column :resizable="false" prop="uniqueName" label="测试结果" show-overflow-tooltip></el-table-column>
  27. <el-table-column :resizable="false" prop="uniqueName" label="失败原因" show-overflow-tooltip></el-table-column>
  28. </el-table>
  29. <div class="pagination pagepage">
  30. <el-pagination
  31. :current-page.sync="currentPage"
  32. @current-change="currentChange"
  33. background
  34. :page-size="pageSize"
  35. :page-sizes="pageSizeArr"
  36. @size-change="handleSizeChange"
  37. :layout="pageLayout"
  38. :total="total"
  39. ></el-pagination>
  40. </div>
  41. </div>
  42. </div>
  43. </template>
  44. <script>
  45. import api from '@api/cdss.js';
  46. import config from '@api/config.js';
  47. import utils from '@api/utils.js';
  48. export default {
  49. data() {
  50. return {
  51. list: [],
  52. currentPage: 1,
  53. pageSize: config.pageSize,
  54. pageSizeArr: config.pageSizeArr,
  55. pageLayout: config.pageLayout,
  56. total: 0
  57. };
  58. },
  59. created() {
  60. this.getDataList()
  61. // 非首页 编辑页返回 设置 this.currentPage
  62. if (Object.keys(this.$route.params).length !== 0) {
  63. this.currentPage = this.$route.params.currentPage;
  64. }
  65. },
  66. beforeRouteEnter(to, from, next) {
  67. next(vm => {
  68. //const pm = to.param;
  69. Object.assign(vm, to.params);
  70. vm.inCurrentPage = to.params.currentPage;
  71. });
  72. },
  73. methods: {
  74. indexMethod(index) {
  75. return (this.currentPage - 1) * this.pageSize + index + 1;
  76. },
  77. currentChange(next) {
  78. this.currentPage = next;
  79. this.getDataList(true);
  80. },
  81. handleSizeChange(val) {
  82. this.pageSize = val;
  83. this.currentPage = utils.getCurrentPage(
  84. this.currentPage,
  85. this.total,
  86. this.pageSize
  87. );
  88. this.getDataList();
  89. },
  90. getDataList(){
  91. },
  92. // 导出
  93. exportData() {}
  94. }
  95. };
  96. </script>
  97. <style lang="less" scored>
  98. @import '../../../less/admin.less';
  99. </style>