|
|
@ -369,15 +369,10 @@ export default {
|
|
|
|
linechartData: []
|
|
|
|
linechartData: []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
async created() {
|
|
|
|
this.loading = true
|
|
|
|
this.loading = true
|
|
|
|
client_list().then(
|
|
|
|
|
|
|
|
res => {
|
|
|
|
|
|
|
|
this.clientOptions = res.data.data_list
|
|
|
|
|
|
|
|
this.client_id = this.clientOptions[0].client_id
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
this.getMonitoringData()
|
|
|
|
this.getMonitoringData()
|
|
|
|
|
|
|
|
await this.initClientData()
|
|
|
|
home_info().then(res => {
|
|
|
|
home_info().then(res => {
|
|
|
|
this.initDataFunc(res.data)
|
|
|
|
this.initDataFunc(res.data)
|
|
|
|
this.initAllCharts()
|
|
|
|
this.initAllCharts()
|
|
|
@ -391,6 +386,17 @@ export default {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
initClientData() {
|
|
|
|
|
|
|
|
return new Promise((resolve, reject) => {
|
|
|
|
|
|
|
|
client_list().then(
|
|
|
|
|
|
|
|
res => {
|
|
|
|
|
|
|
|
this.clientOptions = res.data.data_list
|
|
|
|
|
|
|
|
this.client_id = this.clientOptions[0].client_id
|
|
|
|
|
|
|
|
resolve()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
valueChange(t, value) {
|
|
|
|
valueChange(t, value) {
|
|
|
|
this.getMonitoringData()
|
|
|
|
this.getMonitoringData()
|
|
|
|
this.lineCharts(t)
|
|
|
|
this.lineCharts(t)
|
|
|
@ -497,10 +503,6 @@ export default {
|
|
|
|
return item
|
|
|
|
return item
|
|
|
|
})
|
|
|
|
})
|
|
|
|
const option = {
|
|
|
|
const option = {
|
|
|
|
// legend: {
|
|
|
|
|
|
|
|
// orient: 'vertical',
|
|
|
|
|
|
|
|
// left: 'left'
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
series: [
|
|
|
|
series: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
name: 'Nightingale Chart',
|
|
|
|
name: 'Nightingale Chart',
|
|
|
|