SolutionPkLine.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. <template>
  2. <div class="container">
  3. <div class="bgimg"></div>
  4. <div class="content">
  5. <div class="title">预防治疗方案的PK曲线</div>
  6. <div class="PKLineForm">
  7. <v-chart :option="pklineOption" style="height: 250px"></v-chart>
  8. </div>
  9. <div class="PKLineForm baseInfo">
  10. <mt-cell title="活性大于5%的时间:9.3" value="峰活性:12.05%"></mt-cell>
  11. <mt-cell title="活性大于3%的时间:14.4" value="谷活性(IU/kg):1.16"></mt-cell>
  12. <mt-cell title="活性大于1%的时间:14.4"></mt-cell>
  13. <hr>
  14. <mt-cell :title="'姓名:'+caseInfo.name" :value="'病例ID:'+caseInfo.code"></mt-cell>
  15. <mt-cell :title="'年龄:'+caseInfo.age" :value="'性别:'+caseInfo.sex"></mt-cell>
  16. <mt-cell :title="'使用产品:'+caseInfo.mpro" :value="'注射剂量:'+caseInfo.zsjl"></mt-cell>
  17. <mt-cell :title="'注射频次:'+caseInfo.mfreq"></mt-cell>
  18. <div style="font-size:12px;text-align:left;padding-left:10px;">方案时间时间:{{caseInfo.ctime}}</div>
  19. </div>
  20. <div class="footer">
  21. <div class="jbbtn" @click="goPage(-1)">上一页</div>
  22. <div class="jbbtn" @click="goPage('/')">返回</div>
  23. </div>
  24. </div>
  25. </div>
  26. </template>
  27. <script>
  28. import {
  29. Field,
  30. Cell
  31. } from 'mint-ui'
  32. // import ECharts from 'vue-echarts'
  33. export default {
  34. name: 'Index',
  35. components: {
  36. Field,
  37. Cell
  38. },
  39. data() {
  40. return {
  41. msg: 'Welcome to Your Vue.js App',
  42. caseInfo: {},
  43. pklineOption: {
  44. title: {},
  45. calculable: true,
  46. xAxis: [{
  47. type: 'category',
  48. boundaryGap: false,
  49. data: ['0', '6', '12', '18', '24', '24.01', '30', '36', '42', '48', '48.01', '54', '60', '66', '72',
  50. '72.01', '78', '84', '90', '96', '96.01', '102', '108', '114', '120', '120.01', '126', '132', '138',
  51. '144', '144.01', '150', '156', '162', '168', '168.01', '174', '180', '186', '192', '192.01'
  52. ]
  53. }],
  54. yAxis: [{
  55. type: 'value',
  56. axisLabel: {
  57. formatter: '{value}.00'
  58. }
  59. }],
  60. series: [{
  61. name: '最低气温',
  62. type: 'line',
  63. data: [11, 11, 15, 13, 12, 13, 10, 3, 11, 11, 15, 13, 12, 13, 10, 3, 11, 11, 15, 13, 12, 13, 10, 3, 11,
  64. 11, 15, 13, 12, 13, 10, 3, 11, 11, 15, 13, 12, 13, 10, 3, 11, 11, 15, 13, 12, 13, 10, 3, 4
  65. ],
  66. markLine: {
  67. data: [{
  68. type: 'average',
  69. name: '平均值'
  70. }]
  71. }
  72. }]
  73. }
  74. }
  75. },
  76. methods: {
  77. goPage(path) {
  78. if (path === -1) {
  79. this.$router.go(-1)
  80. }
  81. this.$router.push(path)
  82. },
  83. getData() {
  84. let id = this.$route.query.id
  85. this.$api.getPatientCaseInfo({
  86. id: id
  87. }).then(res => {
  88. if (!res.data.code) {
  89. this.caseInfo = res.data.data
  90. }
  91. })
  92. }
  93. },
  94. created() {
  95. this.getData()
  96. }
  97. }
  98. </script>
  99. <style scoped lang="scss">
  100. .footer {
  101. display: flex;
  102. }
  103. .PKLineForm {
  104. width: 84%;
  105. margin: auto;
  106. margin-top: 1rem;
  107. background: #fff;
  108. padding: 1rem;
  109. border-radius: 5px;
  110. .formTitle {
  111. height: 1rem;
  112. line-height: 1rem;
  113. text-align: left;
  114. color: #2882F4;
  115. padding-bottom: 0.5rem;
  116. border-bottom: 1px solid #2882F4;
  117. font-weight: bold;
  118. }
  119. .mint-cell {
  120. min-height: 1.8rem;
  121. }
  122. /deep/ .mint-cell .mint-cell-title {
  123. width: 60%;
  124. text-align: left;
  125. }
  126. /deep/ .mint-cell .mint-cell-value {
  127. width: 40%;
  128. text-align: right;
  129. }
  130. /deep/ .mint-cell .mint-cell-wrapper {
  131. font-size: 14px;
  132. background-image: none;
  133. }
  134. }
  135. .container {
  136. height: 100%;
  137. }
  138. .jbbtn {
  139. width: 42%;
  140. }
  141. </style>