TabPage.vue 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <template>
  2. <div class="tab-wrap">
  3. <div class="tab" v-if="modlues&&modlues.length>0">
  4. <p v-for="(it,index) in modlues" :key="it.id">
  5. <span :class="{current:index==0}" v-if="type[it.type]==1">
  6. <i>{{it.type}}</i>
  7. {{it.name}}
  8. </span>
  9. </p>
  10. </div>
  11. <!-- 内容 -->
  12. <div class="content">
  13. <Symptom />
  14. </div>
  15. <!-- <div class="footer">下一步</div> -->
  16. </div>
  17. </template>
  18. <script type="text/javascript">
  19. import Symptom from './Symptom.vue';
  20. export default {
  21. name:'TabPage',
  22. data(){
  23. let sysConfig = this.$store.state.sysConfig;
  24. let allMoudles = this.$store.state.allMoudles;
  25. return{
  26. config:sysConfig,
  27. modlues:allMoudles,
  28. type:{
  29. "1":sysConfig.filter(item=>item.code=="symptoms_show")[0].value,
  30. "2":sysConfig.filter(item=>item.code=="diagnosis_show")[0].value,
  31. "3":sysConfig.filter(item=>item.code=="omhistory_show")[0].value,
  32. "4":sysConfig.filter(item=>item.code=="replenish_show")[0].value,
  33. }
  34. }
  35. },
  36. created(){
  37. // console.log('配置信息:',this.config,'type',this.type)
  38. },
  39. components:{
  40. Symptom
  41. }
  42. }
  43. </script>
  44. <style lang="less" scoped>
  45. .tab-wrap{
  46. width: 100%;
  47. height: 100%;
  48. padding-bottom: .88rem;
  49. .tab{
  50. height: .82rem;
  51. line-height: .82rem;
  52. border-bottom: 1px solid #EDEDED;
  53. box-sizing: border-box;
  54. padding-top: .16rem;
  55. p{
  56. display: inline-block;
  57. }
  58. span{
  59. font-size: .24rem;
  60. display: inline-block;
  61. vertical-align: top;
  62. width:1.48rem;
  63. height: .5rem;
  64. line-height: .5rem;
  65. color: #7C828E;
  66. text-align: center;
  67. margin-left: .2rem;
  68. margin-right: .19rem;
  69. }
  70. .current{
  71. color: #0043E8;
  72. background: #E5ECFC;
  73. border-radius: 25px;
  74. }
  75. }
  76. .content{
  77. font-size: .3rem;
  78. padding: .45rem .6rem;
  79. }
  80. /* .footer{
  81. width:100%;
  82. height: .88rem;
  83. line-height: .88rem;
  84. color:#fff;
  85. font-size: .32rem;
  86. text-align: center;
  87. // background: linear-gradient(-270deg, #4F8BFF 0%, #4F4FFF 100%);
  88. background: linear-gradient(-270deg, #4F4FFF,#4F8BFF);
  89. position: fixed;
  90. bottom: 0;
  91. left: 0;
  92. } */
  93. }
  94. </style>