From acbc11794afbd91ad8ef40ad6974f4746489371a Mon Sep 17 00:00:00 2001 From: zouzhibing Date: Fri, 10 Jun 2022 15:04:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 77 ++- deploy.sh | 18 + package.json | 3 - push.sh | 13 + src/components/u-info/index.vue | 19 +- src/layout/components/AppMain.vue | 21 +- src/router/modules/other.ts | 128 ++--- .../charts/components/migration/index.vue | 501 +++++++++--------- src/views/charts/migration.vue | 1 - src/views/components-demo/button.vue | 3 +- src/views/other/grid-sorter.vue | 96 ++-- src/views/table/components/comprehensive.vue | 93 ++-- src/views/table/comprehensive.vue | 437 +++++++-------- src/views/table/inline-edit-table.vue | 163 +++--- 14 files changed, 824 insertions(+), 749 deletions(-) create mode 100644 deploy.sh create mode 100644 push.sh diff --git a/README.md b/README.md index c365725..4195884 100644 --- a/README.md +++ b/README.md @@ -1,24 +1,75 @@ -# ad +# 简介 +vue-element-perfect 是一个后台前端解决方案, 基于Vue3.0+TS+Element-plus实现。它使用了最新的前端技术栈、动态路由,权限验证,并且有着丰富的组件。 + +## 效果预览 + +### 在线预览点击 —— [企业级、通用型中后台前端解决方案 ](http://182.61.5.190:8889/) + +### 附上github地址点击跳转 [vue-admin-perfect](https://github.com/zouzhibin/vue-admin-perfect) + +## 目录结构介绍 -## Project setup -``` -yarn install ``` -### Compiles and hot-reloads for development +├─assets 放置一些静态文件 +├─components 放置组件 +├─layout 首页布局 +│ ├─components +│ │ ├─Sidebar 侧边栏配置 +│ │ ├─TagsView 标签栏配置 +│ │ └─UHeader 头部内容配置 +│ └─hooks +├─router 路由配置 +├─store 数据存储 +├─styles 样式文件 +├─utils 工具方法 +└─views 页面配置方法 +└─permission 路由拦截 权限配置 ``` + +## 技术栈 +vue3.0 + Typescript + vuex + vue-router + Element-Plus scss + +## 实现功能 +- 登录逻辑 +- 权限校验 +- 侧边栏导航显示 +- 打印 +- 地图 +- 头像裁剪 +- 无限滚动 +- 多标签显示 +- 退出 +- 其他各组件 + + +## 项目 master 分支 基于vue3.0 + Typescript + vuex + vue-router + Element-Plus scss +``` +# 克隆项目 +git clone https://github.com/zouzhibin/vue-admin-perfect.git + +# 安装依赖 +yarn + +# 本地开发 启动项目 yarn serve ``` -### Compiles and minifies for production + +## 项目 uniapp 分支 基于 uniapp +vuex +element scss + ``` -yarn build +# 克隆项目 切换 uniapp分支 +git clone https://github.com/zouzhibin/vue-admin-perfect.git + +# 安装依赖 +yarn + +# 本地开发 启动项目 +hbuilder运行浏览器启动 ``` -### Lints and fixes files -``` -yarn lint -``` -### Customize configuration -See [Configuration Reference](https://cli.vuejs.org/config/). + + + diff --git a/deploy.sh b/deploy.sh new file mode 100644 index 0000000..f31ae91 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,18 @@ +#强制推送 +#!/usr/bin/env bash +set -e +npm run build +cd dist +touch .nojekyll +git init +git add -A +git commit -m 'deploy' +git push -f "https://${access_token}@gitee.com/yuanzbz/vue-admin-perfect.git" master:gh-pages +git push -f "https://${access_token}@github.com/zouzhibin/vue-admin-perfect.git" master:gh-pages + +cd - +exec /bin/bash + + + + diff --git a/package.json b/package.json index 9685106..2a221c9 100644 --- a/package.json +++ b/package.json @@ -60,9 +60,6 @@ "sass-loader": "^8.0.2", "typescript": "~4.1.5" }, - "gitHooks": { - "pre-commit": "lint-staged" - }, "lint-staged": { "*.{js,jsx,vue,ts,tsx}": [ "vue-cli-service lint", diff --git a/push.sh b/push.sh new file mode 100644 index 0000000..884fc8a --- /dev/null +++ b/push.sh @@ -0,0 +1,13 @@ +#强制推送 +#!/usr/bin/env bash +set -e +git init +git add -A +git commit -m '🎉 feat: init project' +git push -f "https://${access_token}@gitee.com/yuanzbz/vue-admin-perfect.git" master +git push -f "https://${access_token}@github.com/zouzhibin/vue-admin-perfect.git" master +exec /bin/bash + + + + diff --git a/src/components/u-info/index.vue b/src/components/u-info/index.vue index edc6ea3..00a37f4 100644 --- a/src/components/u-info/index.vue +++ b/src/components/u-info/index.vue @@ -20,22 +20,21 @@ -