一、首先使用npm創建vue項目框架:
1、安裝vue-cli: $ npm install --global vue-cli
2、初始化項目:$ npm init webpack 項目名
3、在項目目錄下安裝element-ui依賴:
$ npm i element-ui -S
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI)
4、引入echarts.js圖表庫:
$ npm install echarts --save
import echarts from 'echarts'
Vue.prototype.$echarts=echarts
5、開始創建項目
個人創建的項目展示地址:GitHub地址:https://github.com/HLHAOGH/myrepository/tree/HLHAOGH-patch-1
6、系統部分截圖: