CaseIndexAnalysisListTable.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <template>
  2. <div>
  3. <div class="btn-box">
  4. <Title :title="$route.query.ruleName" style="float: left; margin-top: 11px;" />
  5. <el-button type="primary" plain style="float: right;" @click="onExport">导出Excel</el-button>
  6. </div>
  7. <el-table
  8. :data="list"
  9. style="width: 100%">
  10. <el-table-column
  11. type="index"
  12. label="序号"
  13. width="80"
  14. align="center">
  15. </el-table-column>
  16. <el-table-column
  17. prop="AAA28"
  18. label="住院号"
  19. width="160">
  20. </el-table-column>
  21. <el-table-column
  22. prop="AAA01"
  23. label="患者姓名"
  24. width="120">
  25. </el-table-column>
  26. <el-table-column
  27. prop="AAC11N"
  28. label="出院科室"
  29. width="160">
  30. </el-table-column>
  31. <el-table-column
  32. prop="AAC01"
  33. label="出院时间"
  34. width="160">
  35. </el-table-column>
  36. <el-table-column
  37. prop="AAB01"
  38. label="入院时间"
  39. width="160">
  40. </el-table-column>
  41. <el-table-column
  42. prop="status"
  43. label="状态"
  44. width="100">
  45. <template slot-scope="scope">
  46. <el-tag v-if="scope.row.status === '正确'" type="success">正确</el-tag>
  47. <el-tag v-else type="danger">错误</el-tag>
  48. </template>
  49. </el-table-column>
  50. <el-table-column
  51. prop="describe"
  52. label="描述">
  53. </el-table-column>
  54. </el-table>
  55. </div>
  56. </template>
  57. <script>
  58. import Title from '@/components/Title';
  59. export default {
  60. components: {
  61. Title
  62. },
  63. props: {
  64. list: {
  65. type: Array,
  66. default() {
  67. return []
  68. }
  69. }
  70. },
  71. methods: {
  72. onExport() {
  73. this.$emit('export')
  74. }
  75. }
  76. }
  77. </script>
  78. <style lang="scss" scoped>
  79. .btn-box {
  80. overflow: hidden;
  81. margin-bottom: 15px;
  82. }
  83. ::v-deep.el-table .el-table__header tr th {
  84. background: #f1f6ff;
  85. color: #13171e;
  86. border-bottom: 0px;
  87. }
  88. ::v-deep.el-table .el-table__row td {
  89. color: #7e8bab;
  90. border-bottom: 1px solid #f4f4f4;
  91. }
  92. ::v-deep.el-table .el-table__header tr th:first-child {
  93. border-radius: 5px 0px 0px 5px;
  94. }
  95. ::v-deep.el-table .el-table__header tr th:nth-child(3) {
  96. border-radius: 0px 5px 5px 0px;
  97. }
  98. </style>