AmandaG 1 жил өмнө
parent
commit
1443bfd60c

+ 2 - 2
src/views/Dashboard/src/components/DashFiters.vue

@@ -113,7 +113,7 @@ const StartChange = (val: any) => {
   if (!props.isETDToETA) {
     const nextMonth = new Date(val)
     let currentYear = nextMonth.getFullYear() + 1
-    let currentMonth = nextMonth.getMonth() + 2
+    let currentMonth = nextMonth.getMonth()
     let current = currentYear + '-' + currentMonth
     EndDate.value = current
   }
@@ -126,7 +126,7 @@ const EndChange = (val: any) => {
   if (!props.isETDToETA) {
     const nextMonth = new Date(val)
     let currentYear = nextMonth.getFullYear() - 1
-    let currentMonth = nextMonth.getMonth()
+    let currentMonth = nextMonth.getMonth() + 2
     let current = currentYear + '-' + currentMonth
     startDate.value = current
   }

+ 1 - 1
src/views/Dashboard/src/components/SellerChart.vue

@@ -132,7 +132,7 @@ const initOption = reactive({
     {
       type: 'bar',
       data: sellerValue,
-      barWidth: '10%',
+      barWidth: '20',
       itemStyle: {
         color: function (params: { dataIndex: number }) {
           return ColorValue.value[params.dataIndex % ColorValue.value.length]