NEZ-2860 fix:Chart preview 时间范围错误
This commit is contained in:
@@ -183,7 +183,10 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
chartLastPosition () {
|
chartLastPosition () {
|
||||||
return this.$store.getters.getChartLastPosition
|
return this.$store.getters.getChartLastPosition
|
||||||
}
|
},
|
||||||
|
timeRange () {
|
||||||
|
return this.$store.getters.getTimeRange
|
||||||
|
},
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
@@ -198,7 +201,7 @@ export default {
|
|||||||
id: '',
|
id: '',
|
||||||
name: ''
|
name: ''
|
||||||
},
|
},
|
||||||
timeRange: [],
|
// timeRange: [],
|
||||||
prevChart: '',
|
prevChart: '',
|
||||||
filterPanel: '',
|
filterPanel: '',
|
||||||
groupArr: [],
|
groupArr: [],
|
||||||
@@ -507,9 +510,9 @@ export default {
|
|||||||
if (show) {
|
if (show) {
|
||||||
this.prevChart = ''
|
this.prevChart = ''
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
const start = new Date().setHours(new Date().getHours() - 1)
|
// const start = new Date().setHours(new Date().getHours() - 1)
|
||||||
const end = new Date()
|
// const end = new Date()
|
||||||
this.timeRange = [bus.computeTimezoneTime(start), bus.computeTimezoneTime(end)]
|
// this.timeRange = [bus.computeTimezoneTime(start), bus.computeTimezoneTime(end)]
|
||||||
this.prevChart = {
|
this.prevChart = {
|
||||||
...lodash.cloneDeep(this.editChart),
|
...lodash.cloneDeep(this.editChart),
|
||||||
loaded: true
|
loaded: true
|
||||||
|
|||||||
Reference in New Issue
Block a user