fengxiang
2018-06-19 27bd4a08bf807f4f6132bb524da33490b6d22f87
src/app/routes/devices/monitor-point/monitor-point-edit/monitor-point-edit.component.ts
@@ -77,7 +77,7 @@
     }
  }
  areaLazyLoad(event: { option: CascaderOption, index: number, resolve: (children: CascaderOption[]) => void, reject: () => void }) {
    console.info(event);
    // console.info(event);
    const index = event['index'];
    const option = event.option;  
    switch (index) {
@@ -94,7 +94,8 @@
         }
       ); break;
       case 1:
       this.areacodeService.getAreas(option.value).subscribe(
       // 区不是叶节点 兼容旧组件
       this.areacodeService.getAreas(option.value , false).subscribe(
         (res: {label: string, value: string}[]) => {
             event.resolve( res );
         }