Commit 278e0c67 authored by 朱超's avatar 朱超

数据总览更新

parent 2f1b1dfa
...@@ -396,6 +396,9 @@ function postGYCompanyEnergyFun() { ...@@ -396,6 +396,9 @@ function postGYCompanyEnergyFun() {
function postGYWeatherFun() { function postGYWeatherFun() {
postGYWeather().then((res) => { postGYWeather().then((res) => {
if (res.success === true) { if (res.success === true) {
gYWeather.data1 = [];
gYWeather.data2 = [];
gYWeather.time = [];
res.data.forEach((element, index) => { res.data.forEach((element, index) => {
if (index % 2 == 0) { if (index % 2 == 0) {
gYWeather.time.push(element.gatherTime); gYWeather.time.push(element.gatherTime);
......
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