NoFormatText.vue 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <template>
  2. <div class="no_format_text">
  3. <div class="name">{{ name }}</div>
  4. <div class="content" v-html="text"></div>
  5. <div class="bottom-time bottom-time-top">
  6. <div class="bottom-time-list">
  7. <span class="bottom-time-bold">医生签名:</span>
  8. <span>{{ data.doctor_name }}</span>
  9. </div>
  10. </div>
  11. <div class="bottom-time bottom-time-top">
  12. <div class="bottom-time-list" v-if="data.CJSJ">
  13. <span class="bottom-time-bold">创建时间:</span>
  14. <span>{{ data.CJSJ }}</span>
  15. </div>
  16. <div class="bottom-time-list" v-if="data.ZXSJ">
  17. <span class="bottom-time-bold">首次签名时间:</span>
  18. <span>{{ data.ZXSJ }}</span>
  19. </div>
  20. </div>
  21. <div class="bottom-time bottom-time-botom" v-if="data.WCSJ">
  22. <div class="bottom-time-list">
  23. <span class="bottom-time-bold">末次修改时间:</span>
  24. <span>{{ data.WCSJ }}</span>
  25. </div>
  26. </div>
  27. </div>
  28. </template>
  29. <script>
  30. export default {
  31. props: {
  32. text: {
  33. type: String,
  34. default() {
  35. return '';
  36. },
  37. },
  38. name: {
  39. type: String,
  40. default() {
  41. return '';
  42. },
  43. },
  44. data: {
  45. type: Object,
  46. default() {
  47. return {};
  48. },
  49. },
  50. },
  51. };
  52. </script>
  53. <style lang="scss" scoped>
  54. .no_format_text {
  55. line-height: 1.5;
  56. padding-bottom: 100px;
  57. .name {
  58. font-size: 24px;
  59. font-weight: bold;
  60. color: #2c3240;
  61. text-align: center;
  62. margin: 20px;
  63. }
  64. .content {
  65. padding: 20px;
  66. }
  67. }
  68. .bottom-time-top {
  69. margin-top: 30px;
  70. }
  71. .bottom-time-botom {
  72. margin-bottom: 30px;
  73. }
  74. .bottom-time {
  75. width: 100%;
  76. display: flex;
  77. justify-content: flex-start;
  78. align-items: center;
  79. margin-bottom: 10px;
  80. .bottom-time-bold {
  81. font-weight: bold;
  82. }
  83. .bottom-time-list {
  84. width: 50%;
  85. }
  86. }
  87. </style>