From 606e763126a033cc3110e37e0e7cdc3cee9b957f Mon Sep 17 00:00:00 2001 From: zhuoda Date: Sun, 10 Jan 2021 20:21:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96h5=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- smart-admin-h5/.env.development | 3 +- smart-admin-h5/.env.local | 2 +- smart-admin-h5/.env.pre | 2 +- smart-admin-h5/.env.prod | 2 +- smart-admin-h5/.env.sit | 2 +- smart-admin-h5/.postcssrc.js | 1 - smart-admin-h5/.sentryclirc | 4 +- smart-admin-h5/README.en.md | 36 ---- smart-admin-h5/README.md | 39 +---- smart-admin-h5/package.json | 22 ++- smart-admin-h5/src/App.vue | 2 +- smart-admin-h5/src/api/crm-school.js | 22 --- smart-admin-h5/src/api/employee.js | 20 +-- smart-admin-h5/src/api/login.js | 7 +- smart-admin-h5/src/api/user.js | 7 + smart-admin-h5/src/assets/css/index.scss | 18 +- smart-admin-h5/src/assets/css/mixin.scss | 36 ---- smart-admin-h5/src/assets/css/variables.scss | 3 - smart-admin-h5/src/components/TabBar.vue | 54 ------ .../employee/department-employee-selector.vue | 1 + .../mixin/session-mixin.js} | 4 +- smart-admin-h5/src/config/index.js | 4 +- .../src/constants/erp/contact-company.js | 165 ++++++++++++++++++ smart-admin-h5/src/constants/erp/index.js | 6 + smart-admin-h5/src/constants/index.js | 6 +- smart-admin-h5/src/constants/school.js | 71 ++++++++ smart-admin-h5/src/lib/erp-http.js | 65 +++++++ smart-admin-h5/src/lib/smart-sentry.js | 5 +- smart-admin-h5/src/lib/table-action.js | 84 --------- smart-admin-h5/src/main.js | 2 +- smart-admin-h5/src/router/dashboard/index.js | 42 +++++ smart-admin-h5/src/router/develop/develop.js | 21 +++ .../src/router/{other => error}/error.js | 17 +- smart-admin-h5/src/router/index.js | 19 ++ smart-admin-h5/src/router/login/login.js | 15 ++ smart-admin-h5/src/router/other/develop.js | 15 -- smart-admin-h5/src/router/other/index.js | 25 --- smart-admin-h5/src/router/other/school.js | 41 ----- smart-admin-h5/src/router/other/user.js | 15 -- smart-admin-h5/src/router/routers.js | 50 +++--- smart-admin-h5/src/router/tabbar/index.js | 49 ------ smart-admin-h5/src/router/user/user.js | 21 +++ smart-admin-h5/src/store/index.js | 2 + smart-admin-h5/src/store/module/app.js | 32 ++++ smart-admin-h5/src/themes/index.less | 6 - smart-admin-h5/src/themes/index.scss | 6 + smart-admin-h5/src/utils/index.js | 110 ++++++++++++ smart-admin-h5/src/utils/request.js | 58 ++++++ smart-admin-h5/src/utils/validate.js | 20 +++ smart-admin-h5/src/views/bpm/index.vue | 97 ---------- smart-admin-h5/src/views/business/index.vue | 66 ------- .../src/views/dashboard/dashboard.vue | 99 +++++++++++ smart-admin-h5/src/views/develop/config.vue | 3 +- smart-admin-h5/src/views/home/index.vue | 68 -------- smart-admin-h5/src/views/login/login.vue | 22 +-- smart-admin-h5/src/views/main/other-main.vue | 31 ---- smart-admin-h5/src/views/main/tabbar-main.vue | 96 ---------- .../views/{mine => user}/change-password.vue | 30 +--- .../src/views/{mine => user}/index.vue | 16 +- smart-admin-h5/vue.config.js | 12 +- .../smart-admin-api/doc/readme.txt | 2 + 61 files changed, 878 insertions(+), 923 deletions(-) delete mode 100644 smart-admin-h5/README.en.md delete mode 100644 smart-admin-h5/src/api/crm-school.js create mode 100644 smart-admin-h5/src/api/user.js delete mode 100644 smart-admin-h5/src/assets/css/mixin.scss delete mode 100644 smart-admin-h5/src/assets/css/variables.scss delete mode 100644 smart-admin-h5/src/components/TabBar.vue rename smart-admin-h5/src/{views/main/main-mixin.js => components/mixin/session-mixin.js} (77%) create mode 100644 smart-admin-h5/src/constants/erp/contact-company.js create mode 100644 smart-admin-h5/src/constants/erp/index.js create mode 100644 smart-admin-h5/src/constants/school.js create mode 100644 smart-admin-h5/src/lib/erp-http.js delete mode 100644 smart-admin-h5/src/lib/table-action.js create mode 100644 smart-admin-h5/src/router/dashboard/index.js create mode 100644 smart-admin-h5/src/router/develop/develop.js rename smart-admin-h5/src/router/{other => error}/error.js (51%) create mode 100644 smart-admin-h5/src/router/login/login.js delete mode 100644 smart-admin-h5/src/router/other/develop.js delete mode 100644 smart-admin-h5/src/router/other/index.js delete mode 100644 smart-admin-h5/src/router/other/school.js delete mode 100644 smart-admin-h5/src/router/other/user.js delete mode 100644 smart-admin-h5/src/router/tabbar/index.js create mode 100644 smart-admin-h5/src/router/user/user.js create mode 100644 smart-admin-h5/src/store/module/app.js delete mode 100644 smart-admin-h5/src/themes/index.less create mode 100644 smart-admin-h5/src/themes/index.scss create mode 100644 smart-admin-h5/src/utils/index.js create mode 100644 smart-admin-h5/src/utils/request.js create mode 100644 smart-admin-h5/src/utils/validate.js delete mode 100644 smart-admin-h5/src/views/bpm/index.vue delete mode 100644 smart-admin-h5/src/views/business/index.vue create mode 100644 smart-admin-h5/src/views/dashboard/dashboard.vue delete mode 100644 smart-admin-h5/src/views/home/index.vue delete mode 100644 smart-admin-h5/src/views/main/other-main.vue delete mode 100644 smart-admin-h5/src/views/main/tabbar-main.vue rename smart-admin-h5/src/views/{mine => user}/change-password.vue (62%) rename smart-admin-h5/src/views/{mine => user}/index.vue (77%) diff --git a/smart-admin-h5/.env.development b/smart-admin-h5/.env.development index 38de0149..b698907c 100644 --- a/smart-admin-h5/.env.development +++ b/smart-admin-h5/.env.development @@ -1,4 +1,3 @@ NODE_ENV = development VUE_APP_ENV = dev -VUE_APP_URL = http://127.0.0.1:10086/smart-admin-api/ - +VUE_APP_URL = http://127.0.0.1:10086/smart-admin-api diff --git a/smart-admin-h5/.env.local b/smart-admin-h5/.env.local index e1aa3c0e..6d07d04c 100644 --- a/smart-admin-h5/.env.local +++ b/smart-admin-h5/.env.local @@ -1,3 +1,3 @@ NODE_ENV = development VUE_APP_ENV = local -VUE_APP_URL=http://127.0.0.1:10086/smart-admin-api/ +VUE_APP_URL = http://127.0.0.1:10086/smart-admin-api diff --git a/smart-admin-h5/.env.pre b/smart-admin-h5/.env.pre index b22ff885..80c46b0e 100644 --- a/smart-admin-h5/.env.pre +++ b/smart-admin-h5/.env.pre @@ -1,3 +1,3 @@ NODE_ENV = production VUE_APP_ENV = pre -VUE_APP_URL = http://smartadmin.1024lab.net/api/ +VUE_APP_URL = http://smartadmin.1024lab.net/smart-admin-api diff --git a/smart-admin-h5/.env.prod b/smart-admin-h5/.env.prod index 1f390bca..0e1616d4 100644 --- a/smart-admin-h5/.env.prod +++ b/smart-admin-h5/.env.prod @@ -1,3 +1,3 @@ NODE_ENV = production VUE_APP_ENV = prod -VUE_APP_URL = http://smartadmin.1024lab.net/api/ +VUE_APP_URL = http://smartadmin.1024lab.net/smart-admin-api diff --git a/smart-admin-h5/.env.sit b/smart-admin-h5/.env.sit index f0b82667..411bc968 100644 --- a/smart-admin-h5/.env.sit +++ b/smart-admin-h5/.env.sit @@ -1,3 +1,3 @@ NODE_ENV = production VUE_APP_ENV = sit -VUE_APP_URL=http://127.0.0.1:10086/smart-admin-api/ +VUE_APP_URL = http://smartadmin.1024lab.net/smart-admin-api diff --git a/smart-admin-h5/.postcssrc.js b/smart-admin-h5/.postcssrc.js index 6483e7ba..e2783a57 100644 --- a/smart-admin-h5/.postcssrc.js +++ b/smart-admin-h5/.postcssrc.js @@ -1,4 +1,3 @@ -// 详情请看 https://github.com/michael-ciniawsky/postcss-load-config module.exports = { plugins: { autoprefixer: { diff --git a/smart-admin-h5/.sentryclirc b/smart-admin-h5/.sentryclirc index b676dbde..b6f61dbd 100644 --- a/smart-admin-h5/.sentryclirc +++ b/smart-admin-h5/.sentryclirc @@ -1,7 +1,7 @@ [defaults] url = https://sentry.1024lab.net/ -org = 1024lab +org = 1024lab-sentry project = smart-admin-h5 [auth] -token = 8bab45b9152d44b19d4e0a762a93dd34a1318ee8317f46a0a007c48da0e9888e +token = 8dflijsldjkasdo3u49230948pkjdasoia8023jl3k4jr29o81029i40534p545ke diff --git a/smart-admin-h5/README.en.md b/smart-admin-h5/README.en.md deleted file mode 100644 index 5f55837d..00000000 --- a/smart-admin-h5/README.en.md +++ /dev/null @@ -1,36 +0,0 @@ -# ren-min-yi-xue-manage-h5 - -#### Description -{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**} - -#### Software Architecture -Software architecture description - -#### Installation - -1. xxxx -2. xxxx -3. xxxx - -#### Instructions - -1. xxxx -2. xxxx -3. xxxx - -#### Contribution - -1. Fork the repository -2. Create Feat_xxx branch -3. Commit your code -4. Create Pull Request - - -#### Gitee Feature - -1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md -2. Gitee blog [blog.gitee.com](https://blog.gitee.com) -3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) -4. The most valuable open source project [GVP](https://gitee.com/gvp) -5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) -6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/smart-admin-h5/README.md b/smart-admin-h5/README.md index cdc9d586..c5f8fa10 100644 --- a/smart-admin-h5/README.md +++ b/smart-admin-h5/README.md @@ -1,39 +1,4 @@ -# ren-min-yi-xue-manage-h5 +# SmartAdmin-H5 #### 介绍 -{**以下是 Gitee 平台说明,您可以替换此简介** -Gitee 是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台 -无论是个人、团队、或是企业,都能够用 Gitee 实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)} - -#### 软件架构 -软件架构说明 - - -#### 安装教程 - -1. xxxx -2. xxxx -3. xxxx - -#### 使用说明 - -1. xxxx -2. xxxx -3. xxxx - -#### 参与贡献 - -1. Fork 本仓库 -2. 新建 Feat_xxx 分支 -3. 提交代码 -4. 新建 Pull Request - - -#### 特技 - -1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md -2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) -3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 -4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 -5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) -6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) +SmartAdmin-H5 是SmartAdmin 平台的移动端web项目 diff --git a/smart-admin-h5/package.json b/smart-admin-h5/package.json index 9efbc94d..cd09ecb3 100644 --- a/smart-admin-h5/package.json +++ b/smart-admin-h5/package.json @@ -1,7 +1,7 @@ { "name": "smart-admin-h5", "version": "1.0.0", - "description": "基于Smart-H5的SmartAdmin的H5端", + "description": "基于vue和vant的h5模板", "author": "zhuoluodada@qq.com", "private": true, "scripts": { @@ -26,12 +26,12 @@ "moment": "^2.29.0", "nprogress": "^0.2.0", "regenerator-runtime": "^0.13.5", - "vant": "^2.10.2", - "vue": "^2.6.11", + "vant": "^2.11.1", + "vue": "^2.6.12", "vue-enum": "^1.0.5", "vue-loading-overlay": "^3.4.2", - "vue-router": "^3.2.0", - "vuex": "^3.4.0" + "vue-router": "^3.4.0", + "vuex": "^3.6.0" }, "devDependencies": { "@sentry/webpack-plugin": "^1.11.1", @@ -46,15 +46,13 @@ "compression-webpack-plugin": "^3.1.0", "eslint": "^6.7.2", "eslint-plugin-vue": "^6.2.2", - "less": "^3.11.2", - "less-loader": "^6.1.0", "node-sass": "^4.14.1", "postcss-pxtorem": "^5.1.1", - "sass-loader": "^8.0.2", - "script-ext-html-webpack-plugin": "^2.1.4", + "sass": "^1.3.0", + "sass-loader": "^9.0.3", + "script-ext-html-webpack-plugin": "^2.1.5", "uglifyjs-webpack-plugin": "^2.2.0", - "vconsole": "^3.3.4", - "vue-template-compiler": "^2.6.11", - "webpack-bundle-analyzer": "^3.8.0" + "vue-template-compiler": "^2.6.12", + "webpack-bundle-analyzer": "^4.2.0" } } diff --git a/smart-admin-h5/src/App.vue b/smart-admin-h5/src/App.vue index 3f407985..f3b5bda4 100644 --- a/smart-admin-h5/src/App.vue +++ b/smart-admin-h5/src/App.vue @@ -8,7 +8,7 @@ export default { name: 'App' }; - diff --git a/smart-admin-h5/src/components/employee/department-employee-selector.vue b/smart-admin-h5/src/components/employee/department-employee-selector.vue index 3affe14f..7889136a 100644 --- a/smart-admin-h5/src/components/employee/department-employee-selector.vue +++ b/smart-admin-h5/src/components/employee/department-employee-selector.vue @@ -1,6 +1,7 @@ /** * @description:department-employee-selector * @author: zhuoda +* @date: 2020/10/30 13:56 */