NEZ-2569 fix:时间选择器检验错误
This commit is contained in:
@@ -344,6 +344,13 @@ export default {
|
||||
this.$store.commit('setChartLastPosition', position)
|
||||
})
|
||||
}
|
||||
this.copyDataList.forEach(item => {
|
||||
this.tempList.forEach(subItem => {
|
||||
if (item.id == subItem.id) {
|
||||
subItem.y = item.y
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
onScroll (scrollTop = 0, groupTop = 0) {
|
||||
if (!this.variablesInit) { // 变量未加载完成 不请求数据
|
||||
@@ -613,7 +620,7 @@ export default {
|
||||
if (item.type === 'group' && repeatVariable && this.$loadsh.get(this.showHidden[item.id], 'visibility') !== 'hidden' && repeatEnable) {
|
||||
const itemPrev = arr[index - 1]
|
||||
const repeatPrevVariable = this.$loadsh.get(itemPrev.param.repeat, 'variable')
|
||||
const repeatPrevEnable = this.$loadsh.get(item.param.enable, 'repeat')
|
||||
const repeatPrevEnable = this.$loadsh.get(itemPrev.param.enable, 'repeat')
|
||||
if (itemPrev && itemPrev.type === 'group' && repeatPrevVariable === repeatVariable && repeatPrevEnable) {
|
||||
const arr = variablesRepeat[repeatVariable]
|
||||
arr[arr.length - 1].repeatArr.push(item)
|
||||
|
||||
@@ -411,10 +411,11 @@ export default {
|
||||
this.oldSearchTime[1] = bus.timeFormate(this.oldSearchTime[1])
|
||||
}
|
||||
}
|
||||
// console.log(moment(this.oldSearchTime[0], timeFormatMain).isValid(), moment(this.oldSearchTime[1], timeFormatMain).isValid(), !moment(this.oldSearchTime[0]).isBefore(this.oldSearchTime[1]))
|
||||
if (moment(this.oldSearchTime[0], timeFormatMain).isValid() && moment(this.oldSearchTime[1], timeFormatMain).isValid() && !moment(this.oldSearchTime[0]).isBefore(this.oldSearchTime[1])) {
|
||||
this.oldSearchTimeError[0] = true
|
||||
this.inputError = this.$t('date.fromGreaterTo')
|
||||
} else if (moment(this.oldSearchTime[0], timeFormatMain).isValid() && moment(this.oldSearchTime[1], timeFormatMain).isValid() && moment(this.oldSearchTime[0]).isBefore(this.oldSearchTime[1])) {
|
||||
this.oldSearchTimeError[0] = false
|
||||
}
|
||||
},
|
||||
dateChange () {
|
||||
@@ -422,7 +423,6 @@ export default {
|
||||
this.oldSearchTimeError[1] = false
|
||||
},
|
||||
setCustomTime (timeGroup, timeRange) {
|
||||
console.log(timeGroup)
|
||||
if (timeGroup) {
|
||||
this.showTime = this.nowTimeType = this.timeData.find(
|
||||
(item) => item.id == timeGroup.id
|
||||
|
||||
Reference in New Issue
Block a user