From 995839d70e4beac21010b7052bde7d87948fd805 Mon Sep 17 00:00:00 2001 From: yyy <2605810609@qq.com> Date: Wed, 21 May 2025 15:59:27 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E8=A7=86=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.local | 3 +- src/api/map/statistics.ts | 21 + src/styles/FormCreate/index.css | 19 + src/styles/FormCreate/index.css.map | 1 + .../components/locationSelectionDialog.vue | 9 + .../statisticalView/components/ChartCard.vue | 424 ++++++++++++++ src/views/statisticalView/index.vue | 554 +++++------------- 7 files changed, 612 insertions(+), 419 deletions(-) create mode 100644 src/api/map/statistics.ts create mode 100644 src/styles/FormCreate/index.css create mode 100644 src/styles/FormCreate/index.css.map create mode 100644 src/views/statisticalView/components/ChartCard.vue diff --git a/.env.local b/.env.local index 0a861d72..6656a80d 100644 --- a/.env.local +++ b/.env.local @@ -4,8 +4,7 @@ NODE_ENV=development VITE_DEV=true # 请求路径 -# VITE_BASE_URL='http://192.168.0.74:48080' -# VITE_BASE_URL='http://192.168.0.153:48080' +# VITE_BASE_URL='http://192.168.77.50:48080' VITE_BASE_URL='http://10.10.100.17:48080' # 文件上传类型:server - 后端上传, client - 前端直连上传,仅支持 S3 服务 diff --git a/src/api/map/statistics.ts b/src/api/map/statistics.ts new file mode 100644 index 00000000..7c3a1234 --- /dev/null +++ b/src/api/map/statistics.ts @@ -0,0 +1,21 @@ +import request from '@/config/axios' + +//统计车辆状态分类 +export const robotStatusClassification = async (params) => { + return await request.get({ url: `/system/statistics/robotStatusClassification`, params }) +} + +//统计任务人工完成-自动完成 +export const robotTaskAutomaticArtificial = async (params) => { + return await request.get({ url: `/system/statistics/robotTaskAutomaticArtificial`, params }) +} + +//统计故障根因分析 +export const robotWarnMsgClassification = async (params) => { + return await request.get({ url: `/system/statistics/robotWarnMsgClassification`, params }) +} + +//车辆工作时长统计 +export const robotWorkHourStatistics = async (params) => { + return await request.get({ url: `/system/statistics/robotWorkHourStatistics`, params }) +} diff --git a/src/styles/FormCreate/index.css b/src/styles/FormCreate/index.css new file mode 100644 index 00000000..0af1e1df --- /dev/null +++ b/src/styles/FormCreate/index.css @@ -0,0 +1,19 @@ +@font-face { + font-family: "fc-icon"; + src: url("@/styles/FormCreate/fonts/fontello.woff") format("woff"); +} +.icon-doc-text:before { + content: "\f0f6"; +} + +.icon-server:before { + content: "\f233"; +} + +.icon-address-card-o:before { + content: "\f2bc"; +} + +.icon-user-o:before { + content: "\f2c0"; +}/*# sourceMappingURL=index.css.map */ \ No newline at end of file diff --git a/src/styles/FormCreate/index.css.map b/src/styles/FormCreate/index.css.map new file mode 100644 index 00000000..fd7a155f --- /dev/null +++ b/src/styles/FormCreate/index.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["index.scss","index.css"],"names":[],"mappings":"AAEA;EACE,sBAAA;EACA,kEAAA;ACDF;ADIA;EACE,gBAAA;ACFF;;ADKA;EACE,gBAAA;ACFF;;ADKA;EACE,gBAAA;ACFF;;ADKA;EACE,gBAAA;ACFF","file":"index.css"} \ No newline at end of file diff --git a/src/views/mapPage/components/locationSelectionDialog.vue b/src/views/mapPage/components/locationSelectionDialog.vue index 46032f00..5bfe4d95 100644 --- a/src/views/mapPage/components/locationSelectionDialog.vue +++ b/src/views/mapPage/components/locationSelectionDialog.vue @@ -66,6 +66,15 @@ class="current-item" :class="currentItem && currentItem.id == floor.id ? 'tool-active' : ''" @click="chooseLocationPoint(floor)" + :style="{ + background: + floor.locationEnable === 0 || + floor.locationLock === 0 || + (floor.locationUseStatus === 1 && locationTypeStr === 'release') || + (floor.locationUseStatus === 0 && locationTypeStr === 'take') + ? '#FFE2E2' + : '#F6FFEF' + }" >
层数: 第{{ floor.locationStorey }}层
库位号: {{ floor.locationNo }}
diff --git a/src/views/statisticalView/components/ChartCard.vue b/src/views/statisticalView/components/ChartCard.vue new file mode 100644 index 00000000..4ed8db69 --- /dev/null +++ b/src/views/statisticalView/components/ChartCard.vue @@ -0,0 +1,424 @@ + + + + + diff --git a/src/views/statisticalView/index.vue b/src/views/statisticalView/index.vue index 879f3128..c3e9ecad 100644 --- a/src/views/statisticalView/index.vue +++ b/src/views/statisticalView/index.vue @@ -1,462 +1,182 @@ +el-col -