Commit 02941768 authored by xiexingan's avatar xiexingan

室外气象站

parent cee6fdcb
......@@ -109,8 +109,13 @@ card-warp(title="室外气象数据", height="45px", showBackground)
@parentMethod="getDataList"
)
.echartsWarp(v-else, width="100%", flex)
div(v-for='item in chartList' :key='item.id')
chart(:id="item.id", :data="data", :title="item.title", :color="item.color")
div(v-for="item in chartList", :key="item.id")
chart(
:id="item.id",
:data="data",
:title="item.title",
:color="item.color"
)
div
pie
history(
......@@ -177,18 +182,33 @@ export default {
]
}
},
mounted () {
this.getDataList()
},
methods: {
toggle() {
this.showList = !this.showList
// 获取数据
getDataList() {
this.$http({
url: this.$http.adornUrl('/kanban/getSwqxzInfoTj'),
method: 'get',
params: {
type: '9a570e608d0840499551eca89d76449d' //室外气象站
}
}).then((data) => {
if (data && data.code === 0) {
console.log('数据', data)
}
})
},
getDataList() {},
showParams(data, type) {
console.log(111)
this.historyVisible = true
this.$nextTick(() => {
this.$refs.history.init(data, type)
})
},
toggle() {
this.showList = !this.showList
}
}
}
......
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