postdischarge-ui/src/views/manage/components/healthEducation.vue
2024-02-26 17:16:31 +08:00

133 lines
4.8 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<div class="header">
<div class="leftheader">
<div class="item" v-for="(item, index) in categorylist" :key="item.id" @click="clickcategory(item, index)"
:class="index == categoryindex ? 'selectitem' : ''">
<div class="name">
{{ item.title }}
</div>
</div>
</div>
<div class="rightheader">
<div class="richtext">
饮食种类宣教知多少
00:00:00
00:02:26
1 普通饮食
适用范围:病情较轻或疾病恢复期无消化道疾患不必限制饮食的病人
饮食要求:一般易消化无刺激性食物均可大多数疾病恢复期的病人需要补充蛋白质热量和多种维生素故可多合动物理白加H内难内マ向饮食种类宣教知多少
00:00:00
00:02:26
1 普通饮食
适用范围:病情较轻或疾病恢复期无消化道疾患不必限制饮食的病人
饮食要求:一般易消化无刺激性食物均可大多数疾病恢复期的病人需要补充蛋白质热量和多种维生素故可多合动物理白加H内难内マ向饮食种类宣教知多少
00:00:00
00:02:26
1 普通饮食
适用范围:病情较轻或疾病恢复期无消化道疾患不必限制饮食的病人
饮食要求:一般易消化无刺激性食物均可大多数疾病恢复期的病人需要补充蛋白质热量和多种维生素故可多合动物理白加H内难内マ向饮食种类宣教知多少
00:00:00
00:02:26
1 普通饮食
适用范围:病情较轻或疾病恢复期无消化道疾患不必限制饮食的病人
饮食要求:一般易消化无刺激性食物均可大多数疾病恢复期的病人需要补充蛋白质热量和多种维生素故可多合动物理白加H内难内マ向饮食种类宣教知多少
00:00:00
00:02:26
1 普通饮食
适用范围:病情较轻或疾病恢复期无消化道疾患不必限制饮食的病人
饮食要求:一般易消化无刺激性食物均可大多数疾病恢复期的病人需要补充蛋白质热量和多种维生素故可多合动物理白加H内难内マ向
</div>
</div>
</div>
</template>
<script>
export default {
name: "visitRecords",
data() {
return {
pickerOptions: {
disabledDate(time) {
return time.getTime() > Date.now(); //禁止选择今天以后的时间
},
},
//选择时间区间
datePickerStart: "",
datePickerEnd: "",
//右侧标题选中
recordindex: 0,
//左侧类型选中
categoryindex: 0,
//左侧选中的item
categoryItem: {},
//左侧list
categorylist: [{
id: 1,
title: '冠状动脉粥样硬化性心脏病',
}, {
id: 2,
title: '冠状动脉粥样硬化性心脏病冠状动脉粥样硬化性心脏病',
}]
};
},
created() {
this.categoryItem = this.categorylist[0]
},
methods: {
clickcategory(item, index) {
this.categoryindex = index
this.categoryItem = item
}
}
};
</script>
<style lang="scss" scoped>
.header {
background-color: #fff !important;
padding: 0 !important;
display: flex;
.rightheader {
width: 75%;
padding-top: 20px;
border-left: 3px solid #DFE4ED;
.richtext {
overflow: scroll;
// 隐藏表头的滚动条
overflow-x: hidden !important;
width: 400px;
margin: 0 auto;
height: 450px;
border: 1px solid #CCCCCC;
}
}
.leftheader {
width: 20%;
margin-top: 20px;
height: 450px;
overflow: scroll;
// 隐藏表头的滚动条
overflow-x: hidden !important;
.selectitem {
background-color: #D2E9FC;
border-left: 2px solid #1890ff !important;
border-bottom: 1px solid #fff !important;
}
.item {
padding: 25px 10px;
position: relative;
border-left: 2px solid #fff;
border-bottom: 1px solid #E7E7E7;
.name {
font-size: 18px;
font-weight: 600;
}
}
}
}
</style>