time.vue 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <template>
  2. <div class="main-contain">
  3. <div class="position">
  4. <bread-crumb :crumbs="crumbs"></bread-crumb>
  5. </div>
  6. <div class="app-container">
  7. <div class="page_treatment">
  8. <el-tabs v-model="activeName" @tab-click="handleClick">
  9. <el-tab-pane label="患者透析次数统计" name="first"></el-tab-pane>
  10. <el-tab-pane label="患者检验检查统计" name="second"></el-tab-pane>
  11. </el-tabs>
  12. <div class="cell clearfix">
  13. <label class="title">
  14. <span class="name">转归状态</span> :
  15. </label>
  16. <div class="time">
  17. <ul class>
  18. <li
  19. :class="item.state == wayType ? 'active' : ''"
  20. @click="chooseWay(item.state)"
  21. v-for="item in way"
  22. :key="item.value"
  23. >{{ item.label }}</li>
  24. </ul>
  25. </div>
  26. </div>
  27. <div v-if="wayType == 0">
  28. <time-personal></time-personal>
  29. </div>
  30. <div v-if="wayType == 1">
  31. <time-all></time-all>
  32. </div>
  33. </div>
  34. </div>
  35. </div>
  36. </template>
  37. <script>
  38. import BreadCrumb from "@/xt_pages/components/bread-crumb";
  39. import LineChart from "../../qcd/components/LineChart";
  40. import TimePersonal from "../treatmentControlAnalysis/components/TimePersonal";
  41. import TimeAll from "../treatmentControlAnalysis/components/TimeAll";
  42. export default {
  43. components: {
  44. LineChart,
  45. BreadCrumb,
  46. TimePersonal,
  47. TimeAll
  48. },
  49. data() {
  50. return {
  51. crumbs: [
  52. { path: false, name: "科室质控" },
  53. { path: false, name: "治疗信息统计" },
  54. { path: false, name: "患者透析次数统计" }
  55. ],
  56. activeName: "first",
  57. way: [
  58. { value: 0, label: "统计个人", state: 0 },
  59. { value: 1, label: "统计全部", state: 1 }
  60. ],
  61. wayType: 0
  62. };
  63. },
  64. methods: {
  65. handleClick() {
  66. if (this.activeName == "second") {
  67. this.$router.push({ path: "/qcd/treatmentControlAnalysis/check" });
  68. }
  69. },
  70. chooseWay(way) {
  71. this.wayType = way;
  72. }
  73. }
  74. };
  75. </script>
  76. <style lang="scss">
  77. .page_treatment {
  78. .el-form-item {
  79. margin-bottom: 0;
  80. }
  81. }
  82. </style>