analysis.vue 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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_analysis">
  8. <new-nav activeName="analysis"></new-nav>
  9. <div class="cell clearfix">
  10. <!--<label class="title">-->
  11. <!--</label>-->
  12. <div class="time">
  13. <ul class>
  14. <li
  15. :class="item.state == wayType ? 'active' : ''"
  16. @click="chooseWay(item.state)"
  17. v-for="item in way"
  18. :key="item.value"
  19. >{{ item.label }}</li>
  20. </ul>
  21. </div>
  22. </div>
  23. <div v-if="wayType == 0">
  24. <office></office>
  25. </div>
  26. <div v-if="wayType == 1">
  27. <personal></personal>
  28. </div>
  29. </div>
  30. </div>
  31. </div>
  32. </template>
  33. <script>
  34. import NewNav from "../indicatorControlAnalysis/components/NewNav";
  35. import BreadCrumb from "@/xt_pages/components/bread-crumb";
  36. import LineChart from "../../qcd/components/LineChart";
  37. import office from "../indicatorControlAnalysis/components/office";
  38. import personal from "../indicatorControlAnalysis/components/personal";
  39. export default {
  40. components: {
  41. LineChart,
  42. BreadCrumb,
  43. office,
  44. personal,
  45. NewNav
  46. },
  47. data() {
  48. return {
  49. crumbs: [
  50. { path: false, name: "质控管理" },
  51. { path: false, name: "指标评估统计" },
  52. { path: false, name: "化验指标统计" }
  53. ],
  54. way: [
  55. { value: 0, label: "科室", state: 0 },
  56. { value: 1, label: "患者", state: 1 }
  57. ],
  58. wayType: 0
  59. };
  60. },
  61. methods: {
  62. chooseWay(way) {
  63. this.wayType = way;
  64. }
  65. }
  66. };
  67. </script>
  68. <style lang="scss">
  69. .page_analysis{
  70. .el-tabs{
  71. margin-bottom:0 !important;
  72. }
  73. }
  74. </style>