From 0d69ba6d38190e0cfff08d8ecdd42b3741e68e1e Mon Sep 17 00:00:00 2001 From: johnniang Date: Sun, 28 Apr 2019 15:16:29 +0800 Subject: [PATCH] Complete parts of installation --- src/api/user.js | 6 +- src/core/lazy_lib/components_use.js | 111 ++++++++--------- src/views/system/Installation.vue | 180 ++++++++++++++++++++++------ 3 files changed, 205 insertions(+), 92 deletions(-) diff --git a/src/api/user.js b/src/api/user.js index 3d01bd06..eb689fc4 100644 --- a/src/api/user.js +++ b/src/api/user.js @@ -6,14 +6,14 @@ const userApi = {} userApi.getProfile = () => { return service({ - url: `${baseUrl}/profile`, + url: `${baseUrl}/profiles`, method: 'get' }) } userApi.updateProfile = profile => { return service({ - url: `${baseUrl}/profile`, + url: `${baseUrl}/profiles`, method: 'put', data: profile }) @@ -21,7 +21,7 @@ userApi.updateProfile = profile => { userApi.updatePassword = (oldPassword, newPassword) => { return service({ - url: `${baseUrl}/profile/password`, + url: `${baseUrl}/profiles/password`, method: 'put', data: { oldPassword: oldPassword, diff --git a/src/core/lazy_lib/components_use.js b/src/core/lazy_lib/components_use.js index b88989b6..8f5e2dcb 100644 --- a/src/core/lazy_lib/components_use.js +++ b/src/core/lazy_lib/components_use.js @@ -1,4 +1,3 @@ -/* eslint-disable */ import Vue from 'vue' import { Anchor, @@ -47,59 +46,61 @@ import { Skeleton, Comment, ConfigProvider, - Timeline -} from 'ant-design-vue'; + Timeline, + Steps +} from 'ant-design-vue' -Vue.use(Anchor); -Vue.use(AutoComplete); -Vue.use(Alert); -Vue.use(Avatar); -Vue.use(Badge); -Vue.use(Breadcrumb); -Vue.use(Button); -Vue.use(Card); -Vue.use(Collapse); -Vue.use(Checkbox); -Vue.use(Col); -Vue.use(DatePicker); -Vue.use(Divider); -Vue.use(Drawer); -Vue.use(Dropdown); -Vue.use(Form); -Vue.use(Icon); -Vue.use(Input); -Vue.use(InputNumber); -Vue.use(Layout); -Vue.use(List); -Vue.use(LocaleProvider); -Vue.use(Menu); -Vue.use(Modal); -Vue.use(Pagination); -Vue.use(Popconfirm); -Vue.use(Popover); -Vue.use(Progress); -Vue.use(Radio); -Vue.use(Row); -Vue.use(Select); -Vue.use(Spin); -Vue.use(Switch); -Vue.use(Table); -Vue.use(Tree); -Vue.use(TreeSelect); -Vue.use(Tabs); -Vue.use(Tag); -Vue.use(TimePicker); -Vue.use(Tooltip); -Vue.use(Upload); -Vue.use(Skeleton); -Vue.use(Comment); -Vue.use(ConfigProvider); -Vue.use(Timeline); +Vue.use(Anchor) +Vue.use(AutoComplete) +Vue.use(Alert) +Vue.use(Avatar) +Vue.use(Badge) +Vue.use(Breadcrumb) +Vue.use(Button) +Vue.use(Card) +Vue.use(Collapse) +Vue.use(Checkbox) +Vue.use(Col) +Vue.use(DatePicker) +Vue.use(Divider) +Vue.use(Drawer) +Vue.use(Dropdown) +Vue.use(Form) +Vue.use(Icon) +Vue.use(Input) +Vue.use(InputNumber) +Vue.use(Layout) +Vue.use(List) +Vue.use(LocaleProvider) +Vue.use(Menu) +Vue.use(Modal) +Vue.use(Pagination) +Vue.use(Popconfirm) +Vue.use(Popover) +Vue.use(Progress) +Vue.use(Radio) +Vue.use(Row) +Vue.use(Select) +Vue.use(Spin) +Vue.use(Switch) +Vue.use(Table) +Vue.use(Tree) +Vue.use(TreeSelect) +Vue.use(Tabs) +Vue.use(Tag) +Vue.use(TimePicker) +Vue.use(Tooltip) +Vue.use(Upload) +Vue.use(Skeleton) +Vue.use(Comment) +Vue.use(ConfigProvider) +Vue.use(Timeline) +Vue.use(Steps) -Vue.prototype.$message = message; -Vue.prototype.$notification = notification; -Vue.prototype.$info = Modal.info; -Vue.prototype.$success = Modal.success; -Vue.prototype.$error = Modal.error; -Vue.prototype.$warning = Modal.warning; -Vue.prototype.$confirm = Modal.confirm; +Vue.prototype.$message = message +Vue.prototype.$notification = notification +Vue.prototype.$info = Modal.info +Vue.prototype.$success = Modal.success +Vue.prototype.$error = Modal.error +Vue.prototype.$warning = Modal.warning +Vue.prototype.$confirm = Modal.confirm diff --git a/src/views/system/Installation.vue b/src/views/system/Installation.vue index 5f7f58ca..c6a91b56 100644 --- a/src/views/system/Installation.vue +++ b/src/views/system/Installation.vue @@ -1,47 +1,139 @@