|
@@ -63,20 +63,18 @@ const props = defineProps({
|
|
const state: any = reactive({
|
|
const state: any = reactive({
|
|
layout: {
|
|
layout: {
|
|
width: 480,
|
|
width: 480,
|
|
- left: 70,
|
|
|
|
- top: 10
|
|
|
|
|
|
+ left: 85,
|
|
|
|
+ top: 110
|
|
},
|
|
},
|
|
})
|
|
})
|
|
const getDuration = (value) => {
|
|
const getDuration = (value) => {
|
|
- // let start = null
|
|
|
|
- // const end = value.real[value.real.length - 1].mergeTime
|
|
|
|
- // if (value.history.length > 0) {
|
|
|
|
- // start = value.history[0].mergeTime
|
|
|
|
- // } else if (value.real.length > 0) {
|
|
|
|
- // start = value.real[0].mergeTime
|
|
|
|
- // }
|
|
|
|
- const end = new Date().getTime()
|
|
|
|
- const start = end - 1000 * 60 * 60
|
|
|
|
|
|
+ let start = null
|
|
|
|
+ const end = value.real[value.real.length - 1].mergeTime
|
|
|
|
+ if (value.history.length > 0) {
|
|
|
|
+ start = value.history[0].mergeTime
|
|
|
|
+ } else if (value.real.length > 0) {
|
|
|
|
+ start = value.real[0].mergeTime
|
|
|
|
+ }
|
|
return comTimeByArea(start, end, true)
|
|
return comTimeByArea(start, end, true)
|
|
}
|
|
}
|
|
const handleColor = (value) => {
|
|
const handleColor = (value) => {
|