051a77599ca8b7972df8728ff46822d308627cbc..87393cfec0e482f1d0c1d36196a4788b104df859
2018-03-29 fengxiang
Merge branch 'develop' of http://blit.7drlb.com:8888/r/screen-frontend into...
87393c diff | tree
2018-03-29 fengxiang
value 为0 置为 横线 bug 修复
e03de5 diff | tree
1 files modified
3 ■■■■ changed files
src/app/routes/reports/query/query.component.ts 3 ●●●● patch | view | raw | blame | history
src/app/routes/reports/query/query.component.ts
@@ -503,6 +503,7 @@
      this.reloadChartTitle();
      // 清空数据
      this.grid.data = [];
      console.log(lineChartCriteria);
      this.http.post(environment.SERVER_BASH_URL + '/report/line-chart', lineChartCriteria).subscribe(
        (res: ResultBean<{[key: string]: Array<Array<number>>}>) => {
           if (res.code === 1) {
@@ -526,7 +527,7 @@
                                    weight = !!value ? weight : weight + 1;
                                }
                                // 四舍五入,保留2位
                                return !!value ? String(Math.round(value * 100) / 100) : '-';
                                return value != null ? String(Math.round(value * 100) / 100) : '-';
                           }
                       );
                       this.grid.data.push({sensor: sensor, data: sensorData, weight: weight});