# momfront **Repository Path**: pannal/momfront ## Basic Information - **Project Name**: momfront - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-02-27 - **Last Updated**: 2024-02-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # imes mom 前端工程。 ## Environment * [nodejs](https://nodejs.org/en/) 下载 v14.18.1 版本以上,安装时选择环境变量和npm(默认都选择了) * VUE 打开命令行输入 npm install yarn -g ## Project setup # 设置淘宝源 yarn config set registry https://registry.npmmirror.com/ # 安装项目依赖 yarn install # 手动导入甘特图7.0.11到node_modules中 mac, linux 下 cp -rf ./gantt_7.0.11_ultimate/* node_modules/dhtmlx-gantt # windows 下 cp -R -Force ./gantt_7.0.11_ultimate/* node_modules/dhtmlx-gantt ### Compiles and hot-reloads for development # 开发环境启动: yarn dev # 正式环境启动 yarn start ### Compiles and minifies for production # 打包 yarn build 打包出现内存溢出 ```bash # windows,cmd 窗口下执行下面命令,之后重新启动一个窗口再次执行打包命令 setx NODE_OPTIONS --max-old-space-size=6144 # unix like export NODE_OPTIONS=--max-old-space-size=6144 ``` ### Run your tests # yarn test ### Lints and fixes files # 代码规范检测修复: yarn lint ### Customize configuration See [Configuration Reference](https://cli.vuejs.org/config/). ### 文件目录说明 ├── dist # 打包之后文件 ├── node_modules # 依赖模块 ├── public # 静态资源 │ │── favicon.ico # favicon图标 | │── index.html # html模板 │ └── robots.txt # 是否允许爬虫 ├── src # 源代码 │ ├── api # 所有请求 │ ├── assets # 主题 字体等静态资源 │ ├── components # 全局公用组件 │ ├── mock # mockjs │ ├── router # 路由 │ ├── store # 全局 store管理 │ ├── styles # 全局样式 │ ├── utils # 全局公用方法 │ ├── views # views 所有页面 │ ├── App.vue # 入口页面 │ ├── main.js # 入口文件 加载组件 初始化等 │ └── permission.js # 权限管理 ├── static # 静态文件js ├── .env.xxx # 环境变量配置 ├── .gitignore # git忽略文件 ├── .babel.config.js # babel配置 ├── debug.log # debug日志 ├── package.json # package.json ├── README.md # 项目说明 └── vue.config.js # vue-cli 配置 ### 组件说明(封装过的组件) |组件名|名称及预览地址| |:-:|:-:| |editTable|[行内编辑表格](http://61.130.105.158:8091/imes/imes-frontend/-/wikis/%E5%89%8D%E7%AB%AF%E7%BB%84%E4%BB%B6/EditTable)| | customTable | [用户自定义表格](http://61.130.105.158:8091/imes/imes-frontend/-/wikis/%E5%89%8D%E7%AB%AF%E7%BB%84%E4%BB%B6/customTable)| | Pagination | [分页 ](http://61.130.105.158:8091/imes/imes-frontend/-/wikis/%E5%89%8D%E7%AB%AF%E7%BB%84%E4%BB%B6/Pagination)| | 物料选择 | [MaterialSelect](http://61.130.105.158:8091/imes/imes-frontend/-/blob/1.34/src/components/MaterialSelect/index.vue)| eg:生产计划列表->新增 | 城市选择 | [citySelect](http://61.130.105.158:8091/imes/imes-frontend/-/blob/develop/src/components/citySelect/index.vue)| | JtBadge | [徽章](http://61.130.105.158:8091/imes/imes-frontend/-/wikis/%E5%89%8D%E7%AB%AF%E7%BB%84%E4%BB%B6/JtBadge)| | j-input | [el-input的封装](http://61.130.105.158:8091/imes/imes-frontend/-/wikis/%E5%89%8D%E7%AB%AF%E7%BB%84%E4%BB%B6/j-input:-%E5%8F%AF%E8%BE%93%E5%85%A5%E5%8F%AF%E7%82%B9%E5%87%BB...%E9%80%89%E6%8B%A9%E7%9A%84input%E6%A1%86)| | j-dialog | [el-dialog封装](http://61.130.105.158:8091/imes/imes-frontend/-/wikis/%E5%89%8D%E7%AB%AF%E7%BB%84%E4%BB%B6/j-dialog)| | j-form | [el-form封装,高级搜索](http://61.130.105.158:8091/imes/imes-frontend/-/wikis/%E5%89%8D%E7%AB%AF%E7%BB%84%E4%BB%B6/j-form)| | j-select | [el-select封装](http://61.130.105.158:8091/imes/imes-frontend/-/wikis/http://61.130.105.158:8091/imes/imes-frontend/-/wikis/%E5%89%8D%E7%AB%AF%E7%BB%84%E4%BB%B6/EditAllTable) | | EditAllTable | [可编辑的一次性保存表格](http://61.130.105.158:8091/imes/imes-frontend/-/wikis/%E5%89%8D%E7%AB%AF%E7%BB%84%E4%BB%B6/EditAllTable)| | CustomerIndicator | [通用选择客户指标](http://61.130.105.158:8091/imes/imes-frontend/-/tree/1.35/src/components/CustomerIndicator/index.vue)| | searchTable | [高级搜索+自定义列表格+分页](http://61.130.105.158:8091/imes/imes-frontend/-/wikis/%E5%89%8D%E7%AB%AF%E7%BB%84%E4%BB%B6/SearchTable)| | preview | [附件预览弹框](src/components/accessory/index.vue)|