From 5c405f5fec00b5876a31fa75df1f4388f4b9e39d Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Mon, 28 Feb 2022 11:50:00 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E8=A7=92=E8=89=B2=E7=AD=89?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/account/login/index.vue | 6 +- src/pages/role/list/index.vue | 11 +- src/pages/stat/list/index.vue | 4 + src/pages/user/list/index.vue | 197 ++++++++++++++++-------------- src/plugins/requests/index.js | 2 +- 5 files changed, 121 insertions(+), 99 deletions(-) diff --git a/src/pages/account/login/index.vue b/src/pages/account/login/index.vue index 282f862..dcc1165 100644 --- a/src/pages/account/login/index.vue +++ b/src/pages/account/login/index.vue @@ -239,8 +239,12 @@ export default { right: 0; } .login{ + z-index: 4; + position: absolute; + top: 48%; + left: 50%; + transform: translate(-50%, -50%); width: 436px; - margin: 188px auto 150px; .form{ padding: 38px 38px 60px; border-radius: 6px; diff --git a/src/pages/role/list/index.vue b/src/pages/role/list/index.vue index 3b9af71..158ec12 100644 --- a/src/pages/role/list/index.vue +++ b/src/pages/role/list/index.vue @@ -95,7 +95,8 @@ export default { roleVisible: false, searchTimer: null, permissions: [], - checkedIds: [] + checkedIds: [], + submiting: false }; }, computed: { @@ -196,10 +197,11 @@ export default { this.roleVisible = true }, confirm() { + if (this.submiting) return false if(!this.form.roleName) return util.warningMsg('请填写角色名称') if(!this.form.remark) return util.warningMsg('请填写角色描述') // if(!this.$refs.per.getCheckedKeys().length) return util.warningMsg('请选择角色权限') - + this.submiting = true let data = { id: this.form.id, roleName: this.form.roleName, @@ -211,7 +213,10 @@ export default { util.successMsg(this.form.id ? '修改成功' : '新增成功') this.getData() this.roleVisible = false - }).catch(res => {}) + this.submiting = false + }).catch(res => { + this.submiting = false + }) }, handleDelete(row) { // 获取用户列表,如果该角色已经有绑定的用户,要更换提示 diff --git a/src/pages/stat/list/index.vue b/src/pages/stat/list/index.vue index 7e7b206..b47a8fa 100644 --- a/src/pages/stat/list/index.vue +++ b/src/pages/stat/list/index.vue @@ -409,6 +409,10 @@ export default { exportDatabase(){ let data = this.listDataAll if(this.multipleSelection.length) data = this.multipleSelection + const date = (this.date && this.date.length) ? this.date.join(' - ') : '' + data.map(e => { + e.time = date + }) axios.post(this.api.databaseInfoExport,data,{ headers: { token: this.token diff --git a/src/pages/user/list/index.vue b/src/pages/user/list/index.vue index a0f785f..be693b1 100644 --- a/src/pages/user/list/index.vue +++ b/src/pages/user/list/index.vue @@ -1,9 +1,9 @@