|
@@ -2,7 +2,7 @@
|
|
<div class="tab-wrap">
|
|
<div class="tab-wrap">
|
|
<div class="tab" v-if="modlues&&modlues.length>0">
|
|
<div class="tab" v-if="modlues&&modlues.length>0">
|
|
<p v-for="(it,index) in modlues" :key="it.id">
|
|
<p v-for="(it,index) in modlues" :key="it.id">
|
|
- <span :class="{current:index==0}" v-if="type[it.type]==1">
|
|
|
|
|
|
+ <span :class="{current:index==step}" v-if="type[it.type]==1">
|
|
<i>{{it.type}}</i>
|
|
<i>{{it.type}}</i>
|
|
{{it.name}}
|
|
{{it.name}}
|
|
</span>
|
|
</span>
|
|
@@ -10,13 +10,15 @@
|
|
</div>
|
|
</div>
|
|
<!-- 内容 -->
|
|
<!-- 内容 -->
|
|
<div class="content">
|
|
<div class="content">
|
|
- <Symptom />
|
|
|
|
|
|
+ <Symptom @nextStep="nextStep" v-show="step == 0"/>
|
|
|
|
+ <AddContent v-show="step == 3"/>
|
|
</div>
|
|
</div>
|
|
<!-- <div class="footer">下一步</div> -->
|
|
<!-- <div class="footer">下一步</div> -->
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script type="text/javascript">
|
|
<script type="text/javascript">
|
|
import Symptom from './Symptom.vue';
|
|
import Symptom from './Symptom.vue';
|
|
|
|
+ import AddContent from './AddContent.vue';
|
|
export default {
|
|
export default {
|
|
name:'TabPage',
|
|
name:'TabPage',
|
|
data(){
|
|
data(){
|
|
@@ -30,14 +32,22 @@
|
|
"2":sysConfig.filter(item=>item.code=="diagnosis_show")[0].value,
|
|
"2":sysConfig.filter(item=>item.code=="diagnosis_show")[0].value,
|
|
"3":sysConfig.filter(item=>item.code=="omhistory_show")[0].value,
|
|
"3":sysConfig.filter(item=>item.code=="omhistory_show")[0].value,
|
|
"4":sysConfig.filter(item=>item.code=="replenish_show")[0].value,
|
|
"4":sysConfig.filter(item=>item.code=="replenish_show")[0].value,
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ step:0
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created(){
|
|
created(){
|
|
// console.log('配置信息:',this.config,'type',this.type)
|
|
// console.log('配置信息:',this.config,'type',this.type)
|
|
},
|
|
},
|
|
|
|
+ methods:{
|
|
|
|
+ nextStep(idx){
|
|
|
|
+ console.log(idx)
|
|
|
|
+ this.step = idx
|
|
|
|
+ }
|
|
|
|
+ },
|
|
components:{
|
|
components:{
|
|
- Symptom
|
|
|
|
|
|
+ Symptom,
|
|
|
|
+ AddContent,
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|