From 3923ac5c68d111484719a9eb28dd3544f7bce57b Mon Sep 17 00:00:00 2001 From: HAHA Date: Tue, 2 Aug 2022 10:20:13 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=92=E8=89=B2=EF=BC=8C=E6=80=A7=E5=88=AB?= =?UTF-8?q?=E5=BC=80=E5=8F=91=E7=8E=AF=E5=A2=83=E6=B2=A1=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/base/organization/organization.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/views/modules/base/organization/organization.vue b/src/views/modules/base/organization/organization.vue index 7630c8b8..caf9fbcb 100644 --- a/src/views/modules/base/organization/organization.vue +++ b/src/views/modules/base/organization/organization.vue @@ -1392,6 +1392,16 @@ export default { console.log(this.peoForm.gender) + if(this.peoForm.gender === '男'){ + this.peoForm.gender = 1 + } else if (this.peoForm.gender === '女') { + this.peoForm.gender = 2 + } else if (this.peoForm.gender === 1) { + this.peoForm.gender = 1 + } else if (this.peoForm.gender === 2) { + this.peoForm.gender = 2 + } + let params = { staffId: this.userStaffId, name: this.peoForm.name,