Commit e284acd5 authored by xiexingan's avatar xiexingan

日期

parent 58290845
...@@ -8,14 +8,24 @@ card-warp(title="室外气象分析", height="45px", showBackground) ...@@ -8,14 +8,24 @@ card-warp(title="室外气象分析", height="45px", showBackground)
el-form-item(label="设备名称:") el-form-item(label="设备名称:")
el-input(type="primary", size="mini", v-model="name", readOnly) el-input(type="primary", size="mini", v-model="name", readOnly)
el-form-item(label="时间范围:") el-form-item(label="时间范围:")
el-button( //- el-button(
size="mini", //- size="mini",
type="primary", //- type="primary",
@click="handleDate(item.id)", //- @click="handleDate(item.id)",
v-for="(item, index) in typeList", //- v-for="(item, index) in typeList",
:key="index", //- :key="index",
:class="[item.id == currentActive ? 'isActive' : '']" //- :class="[item.id == currentActive ? 'isActive' : '']"
) {{ item.name }} //- ) {{ item.name }}
el-date-picker(
v-model="startTime"
type="date"
placeholder="开始日期")
span  至 
el-date-picker(
v-model="endTime"
type="date"
placeholder="结束日期")
.echartsWarp(width="100%", flex) .echartsWarp(width="100%", flex)
div(v-for='item in chartList' :key='item.id') div(v-for='item in chartList' :key='item.id')
chart(:id="item.id", :data="item.data", :title="item.title", :color="item.color") chart(:id="item.id", :data="item.data", :title="item.title", :color="item.color")
...@@ -31,6 +41,8 @@ export default { ...@@ -31,6 +41,8 @@ export default {
}, },
data() { data() {
return { return {
startTime: '',
endTime: '',
chartList: [ chartList: [
{ id: '11', title: '温度(℃)', color: '#21ACFC', data: [] }, { id: '11', title: '温度(℃)', color: '#21ACFC', data: [] },
{ id: '22', title: '湿度(%RH)', color: '#36CBCB', data: [] }, { id: '22', title: '湿度(%RH)', color: '#36CBCB', data: [] },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment