From 447a2c832bf49013d35b352b65600c48efaae9c7 Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Wed, 27 Sep 2023 10:28:07 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/modules/systemmanage/system.vue | 8 +++++--- src/pages/modules/systemmanage/user.vue | 2 +- src/style/common.styl | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/pages/modules/systemmanage/system.vue b/src/pages/modules/systemmanage/system.vue index 3b5ec23..0549bd1 100644 --- a/src/pages/modules/systemmanage/system.vue +++ b/src/pages/modules/systemmanage/system.vue @@ -159,12 +159,14 @@ export default { this.code = '' this.name = '' this.value = '' + this.remark = '' this.unclick = true break case '2': this.code = e.code this.name = e.name this.value = e.value + this.remark = e.remark if (!this.code || !this.name || !this.value) { this.unclick = true } else { @@ -215,7 +217,7 @@ export default { try { let res = await paramAdd(this.code, this.name, this.value, this.remark) if (res.code === '1') { - this._usersQuery() + this._paramQuery() } this.toast(res.desc) this.$refs.child.active = false @@ -245,7 +247,7 @@ export default { try { let res = await paramEdit(this.pkObj.id, this.code, this.name, this.value, this.remark) if (res.code === '1') { - this._usersQuery() + this._paramQuery() } this.toast(res.desc) this.$refs.child.active = false @@ -260,7 +262,7 @@ export default { try { let res = await paramDelete([this.pkObj.id]) if (res.code === '1') { - this._usersQuery() + this._paramQuery() } this.toast(res.desc) this.$refs.child.active = false diff --git a/src/pages/modules/systemmanage/user.vue b/src/pages/modules/systemmanage/user.vue index 20dfa51..120662b 100644 --- a/src/pages/modules/systemmanage/user.vue +++ b/src/pages/modules/systemmanage/user.vue @@ -208,7 +208,7 @@ export default { this.username = e.username this.phone = e.phone this.name = e.personName - this.sex = this.gender + this.sex = e.gender this.options.map(el => { if (el.roleId === e.roles[0].roleId) { this.value = el.roleId diff --git a/src/style/common.styl b/src/style/common.styl index 0314198..3c8e4b7 100644 --- a/src/style/common.styl +++ b/src/style/common.styl @@ -245,8 +245,9 @@ width: 100%; border-radius: 16px .form_item__textarea - line-height 23px - height 69px + line-height 40px + height 110px + padding 15px .form_item__radio color: #606266; font-weight: 500;