From b6313d085d21c27de8082514bca43de818fc569a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=AD=A3=E6=98=93?= Date: Thu, 16 May 2024 13:18:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20vue-echarts=20echarts=20?= =?UTF-8?q?=E7=AD=89=E7=9B=B8=E5=85=B3=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 + src/main.js | 5 +- src/views/wmsManagement/WmpatchSearch.vue | 2 +- .../TheWmBatchSearch/仓库数据总看板/index.css | 90 ++++++++++++++++++ .../TheWmBatchSearch/仓库数据总看板/index.vue | 92 ++++++++++++++++++- 5 files changed, 186 insertions(+), 5 deletions(-) create mode 100644 src/views/wmsManagement/components/TheWmBatchSearch/仓库数据总看板/index.css diff --git a/package.json b/package.json index c7f7963..8f06303 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ "@jiaminghi/data-view": "^2.10.0", "@microsoft/signalr": "^6.0.23", "@riophae/vue-treeselect": "0.4.0", + "@vue/composition-api": "^1.7.2", "af-table-column": "^1.0.3", "animate.css": "^4.1.1", "axios": "^0.21.4", @@ -56,6 +57,7 @@ "vue-count-to": "1.0.13", "vue-cropper": "0.4.9", "vue-easytable": "^2.27.1", + "vue-echarts": "^6.7.2", "vue-qr": "^4.0.9", "vue-router": "3.4.9", "vue-seamless-scroll": "^1.1.23", diff --git a/src/main.js b/src/main.js index 18493be..172e122 100644 --- a/src/main.js +++ b/src/main.js @@ -41,9 +41,9 @@ import DictData from '@/components/DictData'; // 二维码与打印组件相关 KrPrintDesigner+VueQr import VueQr from 'vue-qr' import printJS from 'print-js' -// echarts +// echarts相关插件引入 import * as echarts from 'echarts'; - +import ECharts from 'vue-echarts' // VXE-Table相关组件 import VXETable from 'vxe-table'; @@ -90,6 +90,7 @@ Vue.component('Editor', Editor) Vue.component('UploadImage', UploadImage) Vue.component('UploadFile', UploadFile) Vue.component('VueQr', VueQr) +Vue.component('v-charts', ECharts) // Vue.use(printJS); Vue.use(permission) Vue.use(plugins) diff --git a/src/views/wmsManagement/WmpatchSearch.vue b/src/views/wmsManagement/WmpatchSearch.vue index a52ad34..a934e69 100644 --- a/src/views/wmsManagement/WmpatchSearch.vue +++ b/src/views/wmsManagement/WmpatchSearch.vue @@ -1,7 +1,7 @@