血透系统pad前端

dialysisComputer.vue 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <template>
  2. <div class="plate-box">
  3. <h2 class="title"><span class="line"></span><p>{{title}}</p><span class="line"></span> </h2>
  4. <div class="plate " >
  5. <ul>
  6. <li>
  7. <label>状态 : </label>
  8. <span class="content">{{stage}}</span>
  9. </li>
  10. </ul>
  11. </div>
  12. <!-- <div class="note">处方医生 : {{doctor}}</div> -->
  13. </div>
  14. </template>
  15. <script>
  16. export default {
  17. name: "DialysisComputer",
  18. data() {
  19. return {
  20. title: "透析上机 ",
  21. doctor: "刘小军 医生",
  22. // info1: [
  23. // { value: "1", label: "状态 : ", content: "", unit: "" },
  24. // ]
  25. };
  26. },
  27. props: {
  28. record: {
  29. type: Object,
  30. }
  31. },
  32. computed: {
  33. stage: function() {
  34. if (this.record == null || this.record.id == "") {
  35. return "未上机"
  36. }
  37. return this.record.stage == 1 ? "已上机" : "已下机"
  38. }
  39. },
  40. methods: {
  41. // setOrder(order) {
  42. // if (order == null) {
  43. // this.info1[0].content = "未上机"
  44. // } else {
  45. // this.info1[0].content = order.stage == 1 ? "已上机" : "已下机"
  46. // }
  47. // }
  48. }
  49. };
  50. </script>
  51. <style rel="stylesheet/scss" lang="scss" scoped>
  52. </style>