# web_project_echarts_element **Repository Path**: huoyou/web_project_echarts_element ## Basic Information - **Project Name**: web_project_echarts_element - **Description**: base_model - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-11-12 - **Last Updated**: 2021-11-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ###1. 项目代码结构
├── build // 构建相关
├── config // 配置相关
│ ├── proxy-config.js // 代理配置
├── src // 源代码
│ ├── assets // 主题、字体、json 等静态资源
│ │ ├── scss // 所有公共的的 scss 预编译 css 样式文件
│ ├── axios // axios 请求
│ ├── components // 全局公用组件
│ │ ├── layout // 布局组件
│ ├── directive // 全局指令
│ ├── filter // 全局 filter
│ ├── libs // 第三组件库
│ ├── enum // 所有公共枚举
│ ├── mock // 项目 mock 模拟数据
│ ├── router // 路由
│ ├── store // 全局 store 管理
│ ├── services // 所有请求
│ ├── styles // 全局样式
│ ├── utils // 全局公用方法
│ ├── views // view
│ │ ├── assets // 资产管理
│ │ ├── dashboard // 首页
│ │ ├── data-compare // 数据比较
│ │ ├── data-rank // 数据排名
│ │ ├── energy // 用能管理
│ │ ├── operation // 运维管理
│ │ ├── plat-manage // 平台管理
│ │ ├── report-manage // 报表管理
│ │ ├── safety // 安全管理
│ │ ├── system-settings // 系统设置
│ ├── App.vue // 入口页面
│ ├── main.js // 入口 加载组件 初始化等
│ └── base-config.js // 全局配置
├── static // 第三方不打包资源
│ └──
├── .babelrc // babel-loader 配置
├── eslintrc.js // eslint 配置项
├── .gitignore // git 忽略项
├── favicon.ico // favicon 图标
├── index.html // html 模板
└── package.json // package.json
###2. VS Code Eslint 配置 VS Code 配置文件路径:/doc/settings.json
VS Code 需要安装插件 ESLint
安装 eslint
`npm i` 或者
`npm install eslint --save-dev`
安装 eslint-plugin-html
`npm install --save-dev eslint-plugin-html`
安装 eslint-plugin-vue
`npm install eslint-plugin-vue --save-dev` ###组件使用说明
####charts 组件
代码结构如下: `
` `import MyEcharts from '@/components/echarts/index' // echarts` ``` export default { components: { MyEcharts }, data() { return { chartOption: {}, } }, mounted() { this.initCharts() }, methods: { initCharts() { this.chartOption = {} } } } ```