If you want to use local server, you can do this:
# Install client dependencies
npm install
# Install server dependencies
npm run api-install
# Compiles and start client & local server simultaneously
npm run dev
If you want to use remote server, you can change target
of vue.config.js and do this:
# Project setup
npm install
# Compiles and hot-reloads for development
npm run serve
src/shims-tsx.d.ts
Tell us that we can use JSX to code.
src/shims-vue.d.ts
Help us import *.vue to *.ts
assets
Store static source
components/Charts.vue
Draw line,bar,pie charts
store/
Use Vuex to store data
utils/http.ts
Intercept requests & response
views/
Some pages
404.vue
No FoundHome.vue
Home pageDataManage/
Show DataTableData.vue
EditDialog.vue
ChartsData.vue
FormData.vue
Layout/
LayoutContent.vue
Index.vue
LayoutHeader.vue
Sidebar.vue
Login
Login & forget passwordLogin.vue
LoginHeader.vue
Password.vue
UserManage
- login & forget password page
- home page
- display, edit, delete, search, add table data
- display, edit, delete, add user data
- display 3 kinds of charts by using echarts
- limit permission of vistor & editor
.
│ .gitignore
│ babel.config.js
│ package-lock.json
│ package.json
│ README.md
│ tsconfig.json
│ vue.config.js
│
├─public
│ │ favicon.ico
│ │ index.html
│ │
│ └─css
│ reset.css
│
├─screenshort
│ ......
│
└─src
│ App.vue
│ main.ts
│ router.ts
│ shims-tsx.d.ts
│ shims-vue.d.ts
│
├─assets
│ │ admin.jpg
│ │ bg.jpg
│ │ editor.jpg
│ │ login-back.svg
│ │ paperCraneBlue.png
│ │ paperCraneRed.png
│ │ visitor.jpg
│ │
│ └─404_images
│ 404.png
│ 404_cloud.png
│
├─components
│ Charts.vue
│
├─store
│ actions.ts
│ getters.ts
│ mutations.ts
│ state.ts
│ store.ts
│
├─utils
│ http.ts
│
└─views
│ 404.vue
│ Home.vue
│
├─DataManage
│ ChartsData.vue
│ EditDialog.vue
│ FormData.vue
│ TableData.vue
│
├─Layout
│ Content.vue
│ Index.vue
│ LayoutHeader.vue
│ Sidebar.vue
│
├─Login
│ Login.vue
│ LoginHeader.vue
│ Password.vue
│
└─UserManage
AccountData.vue
AddAccount.vue
UserInfo.vue
npm i element-ui -S
npm i axios @types/axios -S
npm i vuex-class -S
npm i jwt-decode @types/jwt-decode -S
npm i echarts @types/echarts -S
npm i concurrently -S
admin 123456
$message(Property '$message' does not exist on type ...)
(this as any).$message({
type: 'success',
message: '已收藏'
})
reference:https://www.jianshu.com/p/286ceb8e866b
Just show parts of them.
Login page | Forget password |
Home page | Table page |
table-edit | table-delete |
charts-line page | charts-bar page |
charts-pie page | form page |
userinfo page | users page |
user-edit page | user-delete page |