From 7618dbc08c8f19da6580a4f783756167d27dc11a Mon Sep 17 00:00:00 2001 From: ruibaby Date: Sat, 27 Apr 2019 02:40:10 +0800 Subject: [PATCH] Change some method name. --- src/config/router.config.js | 4 +++ src/views/attachment/AttachmentList.vue | 12 ++++----- .../components/AttachmentDetailDrawer.vue | 16 +++++------ .../components/AttachmentDrawer.vue | 8 +++--- .../components/AttachmentSelectDrawer.vue | 8 +++--- src/views/comment/CommentList.vue | 18 ++++++------- src/views/interface/ThemeEdit.vue | 4 +-- src/views/interface/ThemeList.vue | 12 ++++----- src/views/post/CategoryList.vue | 12 ++++----- src/views/post/PostEdit.vue | 16 +++++------ src/views/post/PostList.vue | 27 +++++++++---------- src/views/post/TagList.vue | 10 +++---- src/views/sheet/SheetEdit.vue | 16 +++++------ src/views/sheet/SheetList.vue | 18 ++++++------- src/views/system/Installation.vue | 12 +++++++++ src/views/system/OptionForm.vue | 16 +++++------ src/views/user/Profile.vue | 16 +++++------ 17 files changed, 119 insertions(+), 106 deletions(-) create mode 100644 src/views/system/Installation.vue diff --git a/src/config/router.config.js b/src/config/router.config.js index cf454c65..d5fd62ac 100644 --- a/src/config/router.config.js +++ b/src/config/router.config.js @@ -223,6 +223,10 @@ export const constantRouterMap = [ path: '/login', component: () => import('@/views/user/Login') }, + { + path: '/install', + component: () => import('@/views/system/Installation') + }, { path: '/404', component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404') diff --git a/src/views/attachment/AttachmentList.vue b/src/views/attachment/AttachmentList.vue index 7dea534d..7764012e 100644 --- a/src/views/attachment/AttachmentList.vue +++ b/src/views/attachment/AttachmentList.vue @@ -60,7 +60,7 @@ >查询 重置 @@ -71,7 +71,7 @@ 上传 @@ -90,7 +90,7 @@
@@ -215,11 +215,11 @@ export default { this.mediaTypes = response.data.data }) }, - showDetailDrawer(attachment) { + handleShowDetailDrawer(attachment) { this.selectAttachment = attachment this.drawerVisiable = true }, - showUploadModal() { + handleShowUploadModal() { this.uploadVisible = true }, handleUploadSuccess() { @@ -232,7 +232,7 @@ export default { this.pagination.size = size this.loadAttachments() }, - resetParam() { + handleResetParam() { this.queryParam.keyword = null this.queryParam.mediaType = null this.queryParam.attachmentType = null diff --git a/src/views/attachment/components/AttachmentDetailDrawer.vue b/src/views/attachment/components/AttachmentDetailDrawer.vue index 37d98eae..80989611 100644 --- a/src/views/attachment/components/AttachmentDetailDrawer.vue +++ b/src/views/attachment/components/AttachmentDetailDrawer.vue @@ -38,7 +38,7 @@ > {{ tag.name }} @@ -81,17 +81,17 @@ export default { this.tags = response.data.data }) }, - createTag() { + handleCreateTag() { tagApi.create(this.tagToCreate).then(response => { this.loadTags() }) }, - updateTag(tagId) { + handleUpdateTag(tagId) { tagApi.update(tagId, this.tagToUpdate).then(response => { this.loadTags() }) }, - deleteTag(tagId) { + handleDeleteTag(tagId) { tagApi.delete(tagId).then(response => { this.$message.success('删除成功!') this.loadTags() diff --git a/src/views/sheet/SheetEdit.vue b/src/views/sheet/SheetEdit.vue index 39e6765c..c13141ca 100644 --- a/src/views/sheet/SheetEdit.vue +++ b/src/views/sheet/SheetEdit.vue @@ -87,7 +87,7 @@
@@ -121,12 +121,12 @@ 发布 附件库
@@ -195,13 +195,13 @@ export default { this.customTpls = response.data.data }) }, - showAttachDrawer() { + handleShowAttachDrawer() { this.attachmentDrawerVisible = true }, - showThumbDrawer() { + handleShowThumbDrawer() { this.thumDrawerVisible = true }, - showDrawer() { + handleShowDrawer() { this.visible = true }, handlePublishClick() { @@ -232,7 +232,7 @@ export default { onClose() { this.visible = false }, - selectSheetThumb(data) { + handleSelectSheetThumb(data) { this.sheetToStage.thumbnail = data.path this.thumDrawerVisible = false } diff --git a/src/views/sheet/SheetList.vue b/src/views/sheet/SheetList.vue index fefe3aa5..8c9f25f5 100644 --- a/src/views/sheet/SheetList.vue +++ b/src/views/sheet/SheetList.vue @@ -67,7 +67,7 @@ 查看 @@ -101,13 +101,13 @@ > 编辑 { this.$message.success('操作成功!') this.loadSheets() }) }, - onDeleteClick(sheetId) { + handleDeleteClick(sheetId) { sheetApi.delete(sheetId).then(response => { this.$message.success('删除成功!') this.loadSheets() }) }, - viewPage(id) { + handleViewPage(id) { this.$message.success('查看' + id) } } diff --git a/src/views/system/Installation.vue b/src/views/system/Installation.vue new file mode 100644 index 00000000..02e284b7 --- /dev/null +++ b/src/views/system/Installation.vue @@ -0,0 +1,12 @@ + + + + + diff --git a/src/views/system/OptionForm.vue b/src/views/system/OptionForm.vue index fb88bd99..4bcc1d80 100644 --- a/src/views/system/OptionForm.vue +++ b/src/views/system/OptionForm.vue @@ -52,7 +52,7 @@ 保存 @@ -113,7 +113,7 @@ 保存 @@ -156,7 +156,7 @@ 保存 @@ -277,7 +277,7 @@ 保存 @@ -445,7 +445,7 @@ 保存 @@ -518,7 +518,7 @@ 保存 @@ -593,7 +593,7 @@ 保存 @@ -630,7 +630,7 @@ export default { this.options = response.data.data }) }, - saveOptions() { + handleSaveOptions() { optionApi.save(this.options).then(response => { this.loadOptions() this.$message.success('保存成功!') diff --git a/src/views/user/Profile.vue b/src/views/user/Profile.vue index 74da77db..1d21ba89 100644 --- a/src/views/user/Profile.vue +++ b/src/views/user/Profile.vue @@ -22,7 +22,7 @@
@@ -97,7 +97,7 @@ 保存 @@ -129,7 +129,7 @@ 确认更改 @@ -143,7 +143,7 @@
@@ -181,7 +181,7 @@ export default { this.getCounts() }, methods: { - showAttachDrawer() { + handleShowAttachDrawer() { this.attachmentDrawerVisible = true }, loadUser() { @@ -196,7 +196,7 @@ export default { this.countsLoading = false }) }, - updatePassword() { + handleUpdatePassword() { // Check confirm password if (this.passwordParam.newPassword !== this.passwordParam.confirmPassword) { this.$message.error('确认密码和新密码不匹配!') @@ -205,13 +205,13 @@ export default { userApi.updatePassword(this.passwordParam.oldPassword, this.passwordParam.newPassword).then(response => {}) }, - updateProfile() { + handleUpdateProfile() { userApi.updateProfile(this.user).then(response => { this.user = response.data.data this.$message.success('资料更新成功!') }) }, - selectAvatar(data) { + handleSelectAvatar(data) { this.user.avatar = data.path this.attachmentDrawerVisible = false }