|
@@ -142,7 +142,11 @@
|
|
],
|
|
],
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- onLoad() {
|
|
|
|
|
|
+ onLoad(op) {
|
|
|
|
+ if(op.id) {
|
|
|
|
+ this.companyId = op.id;
|
|
|
|
+ }
|
|
|
|
+
|
|
var date = new Date();
|
|
var date = new Date();
|
|
var year = date.getFullYear();
|
|
var year = date.getFullYear();
|
|
var month = date.getMonth()+1 >= 10 ? date.getMonth()+1 : '0'+(date.getMonth()+1);
|
|
var month = date.getMonth()+1 >= 10 ? date.getMonth()+1 : '0'+(date.getMonth()+1);
|
|
@@ -150,8 +154,8 @@
|
|
this.queryDate = year + '-' + month;
|
|
this.queryDate = year + '-' + month;
|
|
this.time = year + '年' + parseInt(month) + '月';
|
|
this.time = year + '年' + parseInt(month) + '月';
|
|
|
|
|
|
- this.getAbnormalAlarmRecord();
|
|
|
|
this.getAlarmConfiguration();
|
|
this.getAlarmConfiguration();
|
|
|
|
+ this.getAbnormalAlarmRecord();
|
|
},
|
|
},
|
|
onReady() {
|
|
onReady() {
|
|
|
|
|
|
@@ -221,6 +225,9 @@
|
|
|
|
|
|
if(response.data.companyInfoList && response.data.companyInfoList.length != 0) {
|
|
if(response.data.companyInfoList && response.data.companyInfoList.length != 0) {
|
|
list2 = response.data.companyInfoList.map(item => {
|
|
list2 = response.data.companyInfoList.map(item => {
|
|
|
|
+ if(item.id == this.companyId) {
|
|
|
|
+ this.device = item.name;
|
|
|
|
+ }
|
|
return {
|
|
return {
|
|
label: item.name,
|
|
label: item.name,
|
|
value: item.id
|
|
value: item.id
|