@@ -33,7 +31,6 @@
@@ -77,7 +74,9 @@ const visitorOption: any = reactive({
color: 'red'
},
tooltip: {
- trigger: 'axis'
+ trigger: 'axis',
+ confine: true,
+
},
series: [
{
@@ -118,12 +117,12 @@ function getLastMonthRange() {
const startEndTime = ref([new Date(), new Date()]);
-const startEndTime2 = ref(getLastMonthRange());
-
+const startEndTime2 = ref();
+console.log(new Date().getFullYear())
const getData2 = () => {
let date = '';
- if (startEndTime2.value[0] && startEndTime2.value[1]) date = moment(startEndTime2.value[0]).format('YYYY/MM/DD') + '-' + moment(startEndTime2.value[1]).format('YYYY/MM/DD');
+ date = (moment(startEndTime2.value).format('YYYY') + '/01/31') + '-' + (moment(startEndTime2.value).format('YYYY') + '/12/31');
getWorkbench({
date: date
}).then(res => {
diff --git a/stats.html b/stats.html
index 6233e89..996b2ba 100644
--- a/stats.html
+++ b/stats.html
@@ -4822,7 +4822,7 @@ var drawChart = (function (exports) {