# ElectricMonistor **Repository Path**: logo_zeizei/electric-monistor ## Basic Information - **Project Name**: ElectricMonistor - **Description**: 停电发电监控 - **Primary Language**: NodeJS - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2023-03-06 - **Last Updated**: 2023-08-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README
基站电能监控平台
## 介绍 平台基于VueCli +django开发,是崇左网络运营中心联合区公司网络运营中心监控室联合,自主设计研发的一套通过物联网监控市电控制活动油机关停的一套基站发电精准管控系统,可实现站上市电和油机发电的精准监控,并且实现市电、活动油机自动切换的功能,提高发电效益。 ## 准备 本框架需要你本地安装 Node.js (opens new window)和 Git (opens new window),同时安装并使用 Yarn 做为包管理工具。 做好准备工作后,依次执行下面的命令: ··· ### 克隆项目(如果本地已有源码,可跳过这步) ####从 gitee 克隆项目 git clone https://gitee.com/logo_zeizei/electric-monistor.git #### 进入项目目录 cd auto-driver #### 安装项目依赖 npm install #### 或者 yarn #### 运行项目 npm run serve #### 或者 yarn run serve ··· 运行成功后,会自动访问页面,默认情况下,地址为 http://localhost:8080 ## 代码规范 代码规范主要基于 ESLint 和 stylelint 运行,所以为保证代码风格统一,请统一使用 VS Code (opens new window)做为开发工具,并安装以下扩展: EditorConfig for VS Code(opens new window) ESLint(opens new window) Vetur(opens new window) Prettier - Code formatter(opens new window) stylelint(opens new window) 安装完后在 settings.json 中增加如下配置: ··· "editor.codeActionsOnSave": { "source.fixAll.eslint": true, "source.fixAll.stylelint": true } ··· 完成以上配置,并确保项目已安装好依赖,便可查看最终效果:在保存代码时,会自动对当前文件进行代码格式化操作。 ###注意 若以上扩展和配置均设置好后,依旧无法实现自动格式化代码的效果,请随便打开一个 .js 或 .vue 文件,检查编辑器右下角的 ESLint 是否显示为✔️,如果显示为🚫,则需要点击并选择“Allow”。