DeathText.vue 1.8 KB

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