Commit 02941768 authored by xiexingan's avatar xiexingan

室外气象站

parent cee6fdcb
...@@ -109,8 +109,13 @@ card-warp(title="室外气象数据", height="45px", showBackground) ...@@ -109,8 +109,13 @@ card-warp(title="室外气象数据", height="45px", showBackground)
@parentMethod="getDataList" @parentMethod="getDataList"
) )
.echartsWarp(v-else, width="100%", flex) .echartsWarp(v-else, 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="data", :title="item.title", :color="item.color") chart(
:id="item.id",
:data="data",
:title="item.title",
:color="item.color"
)
div div
pie pie
history( history(
...@@ -177,18 +182,33 @@ export default { ...@@ -177,18 +182,33 @@ export default {
] ]
} }
}, },
mounted () {
this.getDataList()
},
methods: { 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) { showParams(data, type) {
console.log(111) console.log(111)
this.historyVisible = true this.historyVisible = true
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.history.init(data, type) 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