CN-1461 提取界面各功能的默认时间条件至config.js
This commit is contained in:
@@ -129,7 +129,8 @@ export default {
|
||||
showDetail () {
|
||||
let str = ''
|
||||
if (this.dateRangeValue !== -1) {
|
||||
str = this.dateRangeArr.find(item => item.value === this.dateRangeValue).name
|
||||
const rangeItem = this.dateRangeArr.find(item => item.value === this.dateRangeValue)
|
||||
str = rangeItem ? rangeItem.name : this.dateRangeArr[0].name
|
||||
}
|
||||
return str
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user