70 lines
1.6 KiB
Vue
70 lines
1.6 KiB
Vue
|
<template>
|
||
|
<div class="deviceStatistics card">
|
||
|
<div class="card-head">
|
||
|
<div class="title">内容数据</div>
|
||
|
<div class="condition">
|
||
|
<el-button-group>
|
||
|
<el-button type="primary">心率</el-button>
|
||
|
<el-button>血氧</el-button>
|
||
|
<el-button>体表温度</el-button>
|
||
|
</el-button-group>
|
||
|
<div class="condition-time">
|
||
|
<el-date-picker
|
||
|
style="width: 350px"
|
||
|
v-model="value1"
|
||
|
type="datetimerange"
|
||
|
start-placeholder="Start date"
|
||
|
end-placeholder="End date"
|
||
|
format="YYYY-MM-DD HH:mm:ss"
|
||
|
date-format="YYYY/MM/DD ddd"
|
||
|
time-format="A hh:mm:ss"
|
||
|
/>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<slot name="chart"></slot>
|
||
|
</div>
|
||
|
</template>
|
||
|
<script setup>
|
||
|
import { ref } from "vue";
|
||
|
const value1 = ref("");
|
||
|
</script>
|
||
|
<style scoped lang="less">
|
||
|
.card {
|
||
|
height: 100%;
|
||
|
background: #ffffff;
|
||
|
padding: 16px 10px;
|
||
|
box-sizing: border-box;
|
||
|
overflow: hidden;
|
||
|
display: flex;
|
||
|
flex-direction: column;
|
||
|
.card-head {
|
||
|
color: #061451;
|
||
|
font-size: 20px;
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
justify-content: space-between;
|
||
|
.title {
|
||
|
&::before {
|
||
|
display: inline-block;
|
||
|
margin-right: 10px;
|
||
|
content: "";
|
||
|
width: 2px;
|
||
|
height: 14px;
|
||
|
border-radius: 20px;
|
||
|
background: #061451;
|
||
|
}
|
||
|
}
|
||
|
.condition {
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
margin-left: 20px;
|
||
|
.condition-time {
|
||
|
overflow: hidden;
|
||
|
margin-left: 20px;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
</style>
|