From bbf70bab993f9954b7ac7fc5f4ac61168df0727d Mon Sep 17 00:00:00 2001 From: xing Date: Tue, 30 Jun 2020 15:06:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8echarts=20=E7=AE=80=E5=8D=95?= =?UTF-8?q?=E7=BB=98=E5=88=B6=E5=9B=BE=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + src/components/report/report.vue | 74 ++++++++++++++++++++++++++++++++ src/router/router.js | 4 +- yarn.lock | 12 ++++++ 4 files changed, 90 insertions(+), 1 deletion(-) create mode 100644 src/components/report/report.vue diff --git a/package.json b/package.json index 694772d..49ff78c 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "dependencies": { "axios": "^0.19.2", "core-js": "^3.6.5", + "echarts": "^4.8.0", "element-ui": "^2.13.2", "lodash": "^4.17.15", "vue": "^2.6.11", diff --git a/src/components/report/report.vue b/src/components/report/report.vue new file mode 100644 index 0000000..cd23233 --- /dev/null +++ b/src/components/report/report.vue @@ -0,0 +1,74 @@ + + + + diff --git a/src/router/router.js b/src/router/router.js index 1739fd1..340953c 100644 --- a/src/router/router.js +++ b/src/router/router.js @@ -11,6 +11,7 @@ import params from '../components/goods/params' import goods from '../components/goods/goods' import goodsEdit from '../components/goods/edit' import order from '../components/order/order' +import report from '../components/report/report' Vue.use(VueRouter) @@ -30,7 +31,8 @@ const routes = [ { path: '/params', component: params }, { path: '/goods', component: goods }, { path: '/goods/add', component: goodsEdit }, - { path: '/orders', component: order } + { path: '/orders', component: order }, + { path: '/reports', component: report } ] } ] diff --git a/yarn.lock b/yarn.lock index 4a0e745..40d6522 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3111,6 +3111,13 @@ ecc-jsbn@~0.1.1: jsbn "~0.1.0" safer-buffer "^2.1.0" +echarts@^4.8.0: + version "4.8.0" + resolved "https://registry.npm.taobao.org/echarts/download/echarts-4.8.0.tgz?cache=0&sync_timestamp=1590400613192&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fecharts%2Fdownload%2Fecharts-4.8.0.tgz#b2c1cfb9229b13d368ee104fc8eea600b574d4c4" + integrity sha1-ssHPuSKbE9No7hBPyO6mALV01MQ= + dependencies: + zrender "4.3.1" + ee-first@1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" @@ -8711,3 +8718,8 @@ yorkie@^2.0.0: is-ci "^1.0.10" normalize-path "^1.0.0" strip-indent "^2.0.0" + +zrender@4.3.1: + version "4.3.1" + resolved "https://registry.npm.taobao.org/zrender/download/zrender-4.3.1.tgz?cache=0&sync_timestamp=1588759616979&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fzrender%2Fdownload%2Fzrender-4.3.1.tgz#baf8aa6dc8187a2f819692d7d5f9bedfa2b90fa3" + integrity sha1-uviqbcgYei+BlpLX1fm+36K5D6M=