|
@@ -162,7 +162,7 @@ export default {
|
|
|
|
|
|
mounted() {
|
|
|
this.getSystemList();
|
|
|
- this.getEquipmentOfSystem();
|
|
|
+ // this.getEquipmentOfSystem();
|
|
|
this.getTableData();
|
|
|
},
|
|
|
|
|
@@ -182,6 +182,14 @@ export default {
|
|
|
})
|
|
|
})
|
|
|
this.systemList = newData;
|
|
|
+ const { query } = this.$route;
|
|
|
+ if (!_.isEmpty(query)) {
|
|
|
+ this.systemId = query.smsxt || newData[0].id;
|
|
|
+ } else {
|
|
|
+ this.systemId = newData[0].id;
|
|
|
+ }
|
|
|
+ console.log('this', this.$route)
|
|
|
+ this.getEquipmentOfSystem();
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -190,6 +198,7 @@ export default {
|
|
|
*/
|
|
|
changeCurSystem(val) {
|
|
|
console.log('val', val)
|
|
|
+ this.getEquipmentOfSystem();
|
|
|
},
|
|
|
/**
|
|
|
* 获取系统下的设备
|
|
@@ -198,9 +207,7 @@ export default {
|
|
|
let param = {
|
|
|
plazaId: 1000423,
|
|
|
ccode: 1002347,
|
|
|
- }
|
|
|
- if (this.systemId !== '') {
|
|
|
- param.smsxt = this.systemId;
|
|
|
+ smsxt: this.systemId
|
|
|
}
|
|
|
queryEquipmentList('/data/home/querySystemCard', param).then((res) => {
|
|
|
console.log('res', res)
|