Commit 31aa56c7 by zhangxw

警情日历 警情等级显示修改

1 parent 9bc0b27b
......@@ -327,7 +327,14 @@ export default {
let arr = this.calendarData.calendarList.filter(val => val.alarmTime && val.alarmTime.split(' ')[0] === data.day) || []
if (arr.length > 0) {
flag = true
data.alarmLevel = (arr[this.currIdx] && arr[this.currIdx].alarmLevel) || arr[0].alarmLevel
data.alarmLevel = arr[0].alarmLevel
this.currItem.map(val => {
arr.map(item => {
if (val.id === item.id) {
data.alarmLevel = this.currItem[this.currIdx].alarmLevel
}
})
})
}
return flag;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!