From 62aa7268c26686d5cf389a1eea102d12c0fe3602 Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Mon, 27 Mar 2023 17:27:20 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E8=AE=A1=20=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 +- .env.production | 4 +- src/api/report/index.js | 10 +- .../morecharts}/BarChart.vue | 0 .../morecharts}/LineChart.vue | 0 .../morecharts}/PanelGroup.vue | 0 .../morecharts}/PieChart.vue | 0 .../morecharts}/mixins/resize.js | 0 src/views/dashboard/components/PanelGroup.vue | 127 ++++++---- src/views/dashboard/index.vue | 66 +++++- src/views/report/components/BarChart.vue | 146 ------------ src/views/report/components/mixins/resize.js | 55 ----- src/views/report/month.vue | 221 +++++++++-------- src/views/report/park.vue | 221 +++++++++-------- src/views/report/time.vue | 224 ++++++++++-------- 15 files changed, 497 insertions(+), 581 deletions(-) rename src/{views/dashboard/components => components/morecharts}/BarChart.vue (100%) rename src/{views/report/components => components/morecharts}/LineChart.vue (100%) rename src/{views/report/components => components/morecharts}/PanelGroup.vue (100%) rename src/{views/report/components => components/morecharts}/PieChart.vue (100%) rename src/{views/dashboard/components => components/morecharts}/mixins/resize.js (100%) delete mode 100644 src/views/report/components/BarChart.vue delete mode 100644 src/views/report/components/mixins/resize.js diff --git a/.env.development b/.env.development index 6c00342..5a5271d 100644 --- a/.env.development +++ b/.env.development @@ -2,5 +2,5 @@ ENV = 'development' # base api -VUE_APP_BASE_API = http://bd-fangke.ali251.langye.net -VUE_APP_UPLOAD_API = http://bd-fangke.ali251.langye.net/api/admin/upload-file +VUE_APP_BASE_API = https://bd-fangke.ali251.langye.net +VUE_APP_UPLOAD_API = https://bd-fangke.ali251.langye.net/api/admin/upload-file diff --git a/.env.production b/.env.production index f837c50..80bba44 100644 --- a/.env.production +++ b/.env.production @@ -2,5 +2,5 @@ ENV = 'production' # base api -VUE_APP_BASE_API = http://starter.ali251.langye.net -VUE_APP_UPLOAD_API =http://starter.ali251.langye.net/api/admin/upload-file \ No newline at end of file +VUE_APP_BASE_API = https://starter.ali251.langye.net +VUE_APP_UPLOAD_API =https://starter.ali251.langye.net/api/admin/upload-file \ No newline at end of file diff --git a/src/api/report/index.js b/src/api/report/index.js index 7571f63..db8a51c 100644 --- a/src/api/report/index.js +++ b/src/api/report/index.js @@ -1,8 +1,8 @@ import request from "@/utils/request"; -export function carList(params){ +export function monthList(params){ return request({ - url:'/api/admin/study/index', + url:'/api/admin/chart/month', method:'get', params }) @@ -10,15 +10,15 @@ export function carList(params){ export function timeList(params){ return request({ - url:'/api/admin/study/index', + url:'/api/admin/chart/time', method:'get', params }) } -export function monthList(params){ +export function carList(params){ return request({ - url:'/api/admin/study/index', + url:'/api/admin/chart/car', method:'get', params }) diff --git a/src/views/dashboard/components/BarChart.vue b/src/components/morecharts/BarChart.vue similarity index 100% rename from src/views/dashboard/components/BarChart.vue rename to src/components/morecharts/BarChart.vue diff --git a/src/views/report/components/LineChart.vue b/src/components/morecharts/LineChart.vue similarity index 100% rename from src/views/report/components/LineChart.vue rename to src/components/morecharts/LineChart.vue diff --git a/src/views/report/components/PanelGroup.vue b/src/components/morecharts/PanelGroup.vue similarity index 100% rename from src/views/report/components/PanelGroup.vue rename to src/components/morecharts/PanelGroup.vue diff --git a/src/views/report/components/PieChart.vue b/src/components/morecharts/PieChart.vue similarity index 100% rename from src/views/report/components/PieChart.vue rename to src/components/morecharts/PieChart.vue diff --git a/src/views/dashboard/components/mixins/resize.js b/src/components/morecharts/mixins/resize.js similarity index 100% rename from src/views/dashboard/components/mixins/resize.js rename to src/components/morecharts/mixins/resize.js diff --git a/src/views/dashboard/components/PanelGroup.vue b/src/views/dashboard/components/PanelGroup.vue index ffc9509..a866905 100644 --- a/src/views/dashboard/components/PanelGroup.vue +++ b/src/views/dashboard/components/PanelGroup.vue @@ -3,26 +3,29 @@