diff --git a/.env.development b/.env.development index d74f104..0346afc 100644 --- a/.env.development +++ b/.env.development @@ -6,7 +6,7 @@ ENV = 'development' # 共享电动车管理系统/开发环境 # VUE_APP_BASE_API = 'https://dche.ccttiot.com/prod-api' -VUE_APP_BASE_API = 'http://localhost:8080' +VUE_APP_BASE_API = 'http://192.168.2.189:8080' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/src/api/system/area.js b/src/api/system/area.js index f019fe1..b4e1dec 100644 --- a/src/api/system/area.js +++ b/src/api/system/area.js @@ -16,7 +16,12 @@ export function getArea(areaId) { method: 'get' }) } - +export function getStatistics(areaId) { + return request({ + url: '/index/statistics?areaId=' + areaId, + method: 'get' + }) +} // 新增运营区 export function addArea(data) { return request({ diff --git a/src/main.js b/src/main.js index 5f5b981..55cc2df 100644 --- a/src/main.js +++ b/src/main.js @@ -4,6 +4,8 @@ import Cookies from 'js-cookie' import Element from 'element-ui' import './assets/styles/element-variables.scss' +// import * as echarts from 'echarts' +// Vue.prototype.$echarts = echarts; import '@/assets/styles/index.scss' // global css import '@/assets/styles/ruoyi.scss' // ruoyi css diff --git a/src/views/statistics/index.vue b/src/views/statistics/index.vue index 1fafa69..a457185 100644 --- a/src/views/statistics/index.vue +++ b/src/views/statistics/index.vue @@ -1,97 +1,713 @@ -