You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
772 B
37 lines
772 B
<template>
|
|
<view class="padding">
|
|
<!-- 日期组件 -->
|
|
<date-selector @change="getData" />
|
|
<!-- 健康上报组件 -->
|
|
<health-data />
|
|
<!-- 校园轨迹组件 -->
|
|
<location-map />
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import DateSelector from './components/date-selector';
|
|
import HealthData from './components/health-data';
|
|
import LocationMap from './components/location-map';
|
|
|
|
export default {
|
|
name: 'Statistics',
|
|
components: { DateSelector, LocationMap, HealthData },
|
|
data() {
|
|
return {};
|
|
},
|
|
|
|
onLoad() {},
|
|
|
|
methods: {
|
|
/**
|
|
* 获取数据
|
|
* @param {string} start 开始时间
|
|
* @param {string} end 截止时间
|
|
*/
|
|
getData(start, end) {
|
|
console.log('start, end: ', start, end);
|
|
},
|
|
},
|
|
};
|
|
</script>
|
|
|