AddContent.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <template>
  2. <div class="symp-wrap">
  3. <div class="choose">
  4. <ul class="addPart">
  5. <li v-for="(item,idx) in dataTrd">
  6. <p class="question">{{idx+1 + '. ' +item.name}}</p>
  7. <ComTextArea
  8. v-if="item.controlType == 6"
  9. @changeAreaVal="changeAreaVal($event,idx)"
  10. ></ComTextArea>
  11. <template
  12. v-if="item.controlType == 3"
  13. v-for="(part,index) in item.questionDetailList"
  14. >
  15. <MultiLineInput
  16. v-if="item.controlType == 3"
  17. @changeMultipVal="changeMultipVal($event,idx)"
  18. :msg="part.name"
  19. ></MultiLineInput>
  20. </template>
  21. </li>
  22. </ul>
  23. <div class="thanks">
  24. <p>感谢您的回答,您的病历已经自动生成。</p>
  25. <p>您可以点击预览病历回顾病情;或者点击顶部修改病历采集信息。</p>
  26. <p>如果没有需要修改的内容,请点击提交,医生便能看到您的病历。</p>
  27. </div>
  28. </div>
  29. <div class="foot">
  30. <span class="back" @click="back">{{'返回'+ preName}}</span>
  31. <span class="next" @click="next">预览</span>
  32. </div>
  33. </div>
  34. </template>
  35. <script type="text/javascript">
  36. import ComTextArea from '../common/ComTextArea.vue';
  37. import MultiLineInput from '../common/MultiLineInput.vue';
  38. export default {
  39. name: 'AddContent',
  40. props: ['allMoudles','preName'],
  41. data() {
  42. return {
  43. dataTrd: [],
  44. val: ''
  45. }
  46. },
  47. mounted() {
  48. this.dataTrd = this.allMoudles && this.allMoudles.moduleDetailDTOList
  49. },
  50. methods: {
  51. back() {
  52. this.$emit("back");
  53. },
  54. changeAreaVal(value, idx) {
  55. // console.log(value,idx)
  56. this.val = value
  57. },
  58. changeMultipVal(value, idx) {
  59. console.log(value, idx)
  60. },
  61. next(){
  62. this.$emit('next','preview')
  63. }
  64. },
  65. components: {
  66. ComTextArea,
  67. MultiLineInput,
  68. }
  69. }
  70. </script>
  71. <style lang="less" scoped>
  72. @import "../less/base.less";
  73. .symp-wrap {
  74. font-size: 0.3rem;
  75. h3 {
  76. color: #000;
  77. margin-bottom: 0.36rem;
  78. }
  79. }
  80. .choose {
  81. padding-bottom: 0.2rem;
  82. .addPart {
  83. li {
  84. margin-bottom: 0.5rem /* 50/100 */;
  85. }
  86. .question {
  87. margin-bottom: 0.3rem /* 30/100 */;
  88. font-weight: bold;
  89. }
  90. }
  91. }
  92. .foot{
  93. .dbfooter;
  94. }
  95. .thanks {
  96. font-size: .28rem /* 28/100 */;
  97. color: #666666;
  98. letter-spacing: 0;
  99. text-align: justify;
  100. line-height: .48rem /* 48/100 */;
  101. }
  102. </style>