|
@@ -462,6 +462,7 @@
|
|
|
import axios from 'axios'
|
|
|
import { getBusiness, getDepartment, getOnlineProblem, getOnlineAllCount, getOnlineVitium, getHandlerCount, getClientInfo, getHotpatch, getCompareCount, getCompareCountOnline, getComparatorCount, getComparatorCountOnline } from '@/api/qualityCenter'
|
|
|
import echarts from 'echarts'
|
|
|
+import dayjs from 'dayjs'
|
|
|
|
|
|
export default {
|
|
|
filters: {
|
|
@@ -526,7 +527,8 @@ export default {
|
|
|
totalOneEchartsRate: '',
|
|
|
totalOneEchartsOnline: '',
|
|
|
dealWithBusinessDate: [],
|
|
|
- timeInterval: [new Date().getTime() - 7 * 24 * 60 * 60 * 1000, new Date().getTime()]
|
|
|
+ // timeInterval: [new Date().getTime() - 7 * 24 * 60 * 60 * 1000, new Date().getTime()],
|
|
|
+ timeInterval: [dayjs(dayjs(new Date()).subtract(7, 'days').format('YYYY-MM-DD')).valueOf(), dayjs(dayjs(new Date()).add(1, 'days').format('YYYY-MM-DD')).valueOf() - 1]
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -932,6 +934,7 @@ export default {
|
|
|
},
|
|
|
// 时间变化刷新页面
|
|
|
dataSearch() {
|
|
|
+ this.timeInterval[1] = dayjs(dayjs(new Date()).add(1, 'days').format('YYYY-MM-DD')).valueOf() - 1
|
|
|
if (this.pauseKey === 0) {
|
|
|
this._initBusinessTreeAndBeginInfo()
|
|
|
} else if (this.pauseKey === 3) {
|