Commit 5fa8b162 authored by yating.lin's avatar yating.lin

修改测试用数据

parent 2b78f959
......@@ -15,7 +15,7 @@
<span class="alarmNum">{{item.total}}</span>
<span style="float:right; padding-right: 5px;">
<!--<ion-popover-controller></ion-popover-controller>-->
<a (click)="presentPopover(item)" id="intervalValue">近一年</a>
<a (click)="presentPopover(item)" [id]="item.fieldRegionNo">近一年</a>
</span>
</div>
</ion-card-title>
......
......@@ -14,7 +14,7 @@ export class EnvAlarmPage implements OnInit {
alarmItems = [{
factoryNo: 'FN108050436279648256',
factoryName: '一厂',
fieldRegionNo: 'FRN110268534764224512',
fieldRegionNo: 'FRN110268534764224511',
fieldRegionName: '1号牛舍',
devErr: 36,
devErrTotal: 55,
......@@ -34,7 +34,7 @@ export class EnvAlarmPage implements OnInit {
}, {
factoryNo: 'FN108050436279648256',
factoryName: '一厂',
fieldRegionNo: 'FRN110268534764224512',
fieldRegionNo: 'FRN110268534764224513',
fieldRegionName: '3号牛舍',
devErr: 36,
devErrTotal: 55,
......@@ -44,7 +44,7 @@ export class EnvAlarmPage implements OnInit {
}, {
factoryNo: 'FN108050436279648256',
factoryName: '一厂',
fieldRegionNo: 'FRN110268534764224512',
fieldRegionNo: 'FRN110268534764224514',
fieldRegionName: '4号牛舍',
devErr: 36,
devErrTotal: 55,
......@@ -182,6 +182,6 @@ export class EnvAlarmPage implements OnInit {
case 1: displayValue = '近一个月'; break;
default: displayValue = '近一年'; break;
}
document.getElementById('intervalValue').innerText = displayValue;
document.getElementById(this.curFieldRegion.fieldRegionNo).innerText = displayValue;
}
}
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