xufenglei
2018-06-12 4d0fd6e3bb6c3dcd48763338255075e2662622e6
src/app/routes/reports/demo/demo.component.ts
@@ -51,39 +51,7 @@
  get sensorNames(): string {
    return this._sensorNames;
  }
  options = [{
  value: 'zhejiang',
  label: 'Zhejiang',
  children: [{
    value: 'hangzhou',
    label: 'Hangzhou',
    children: [{
      value: 'xihu',
      label: 'West Lake',
      isLeaf: true
    }]
  }, {
    value: 'ningbo',
    label: 'Ningbo',
    isLeaf: true
  }]
}, {
  value: 'jiangsu',
  label: 'Jiangsu',
  children: [{
    value: 'nanjing',
    label: 'Nanjing',
    children: [{
      value: 'zhonghuamen',
      label: 'Zhong Hua Men',
      children: [{
      value: 'zhonghuamen12',
      label: 'Zhong Hua Men12',
      isLeaf: true
    }]
    }]
  }]
}];
  constructor(
    public http: HttpClient,
    public dateSrv: DateService,
@@ -259,7 +227,7 @@
        areaName = option.parent.parent.parent.parent.label + '/' + option.parent.parent.parent.label + '/' + option.parent.parent.label + '/' + option.parent.label + '/' + option.label;
        break;
    }
    //this.items[i].areaName = areaName;
    this.items[i].areaName = areaName;
    this.http.get(environment.SERVER_BASH_URL + 'monitor-point/list/region', {params: {name: name, value: option.value}}).subscribe((res: any) => {
      if (res.code === 0) {
        this.msgSrv.error(res.message);