沈斌
2018-02-08 521e90a01a6249834e12e68a930e4d3e239b0a2d
src/app/routes/devices/basic-info/device-edit/device-edit.component.ts
@@ -39,7 +39,7 @@
    }
    const validates:Device = {
         name:[data.name,[Validators.required]],
         mac:[data.mac],
         mac:[data.mac,[Validators.required]],
         deviceVersionId:[data.deviceVersionId],
         monitorPointId:[data.monitorPointId],
         operateUserId:[data.operateUserId],
@@ -71,7 +71,7 @@
    const pageBean: PageBean = {pageIndex: 0, pageSize: 20};
    this.monitorPointService.getPagingList(pageBean, text).subscribe(
      (res: PageBean) => {
           if (res != null && res.data != null) {
           if (res != null && res.data != null) {
               this.monitorPoints = res.data;
           }
           const monitorPoint = this.data.monitorPoint;
@@ -83,7 +83,7 @@
               );
               if ( hasSelectedValue ) {
                  this.monitorPoints.push(monitorPoint);
               }
               }
           }
      }
   );
@@ -92,7 +92,7 @@
    const pageBean: PageBean = {pageIndex: 0, pageSize: 20};
    this.versionService.getPagingList(pageBean, text).subscribe(
      (res: PageBean) => {
           if (res != null && res.data != null) {
           if (res != null && res.data != null) {
               this.deviceVersions = res.data;
           }
           const deviceVersion = this.data.deviceVersion;
@@ -104,7 +104,7 @@
               );
               if ( hasSelectedValue ) {
                  this.monitorPoints.push(deviceVersion);
               }
               }
           }
      }
   );
@@ -113,7 +113,7 @@
    const pageBean: PageBean = {pageIndex: 0, pageSize: 20};
    this.operateUserService.getPagingList(pageBean, text).subscribe(
      (res: PageBean) => {
           if (res != null && res.data != null) {
           if (res != null && res.data != null) {
               this.operateUsers = res.data;
           }
           const operateUser = this.data.operateUser;
@@ -125,7 +125,7 @@
               );
               if ( hasSelectedValue ) {
                  this.monitorPoints.push(operateUser);
               }
               }
           }
      }
   );