Commit 891819dd authored by xiexingan's avatar xiexingan

fix

parent 6fbb9435
...@@ -174,7 +174,12 @@ ...@@ -174,7 +174,12 @@
methods: { methods: {
handleStation(id) { handleStation(id) {
console.log('站点id', id) let currenLinetItem = this.stationList.filter(e => e.id === id)
localStorage.currenLineId = currenLinetItem[0].lineId
this.sId = id
localStorage.stationName = currenLinetItem[0].stationName
localStorage.stationId = id
localStorage.lineId = this.lineId
that.$http({ that.$http({
url: that.$http.adornUrl('/sys/menu/nav1'), url: that.$http.adornUrl('/sys/menu/nav1'),
method: 'get', method: 'get',
...@@ -370,10 +375,10 @@ ...@@ -370,10 +375,10 @@
params: this.$http.adornParams(params) params: this.$http.adornParams(params)
}).then(data => { }).then(data => {
if (data && data.code === 0) { if (data && data.code === 0) {
console.log('alarm', data) // console.log('alarm', data)
this.alarmList = data.list this.alarmList = data.list
this.stationAlarmList = data.stationAlarmList this.stationAlarmList = data.stationAlarmList
console.log('stationAlarmList:', this.stationAlarmList) // console.log('stationAlarmList:', this.stationAlarmList)
isSuccess = true isSuccess = true
this.oneCount = data.countList.oneCount this.oneCount = data.countList.oneCount
this.twoCount = data.countList.twoCount this.twoCount = data.countList.twoCount
...@@ -407,7 +412,7 @@ ...@@ -407,7 +412,7 @@
params: this.$http.adornParams(params) params: this.$http.adornParams(params)
}).then(data => { }).then(data => {
if (data) { if (data) {
console.log('stationList:', data.list[0]) // console.log('stationList:', data.list[0])
// 站点集合 // 站点集合
this.stationList = data.list[0] this.stationList = data.list[0]
// 线路 // 线路
......
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