From 795b86c36ce31d1e5feacab97e88ae2faa988ea7 Mon Sep 17 00:00:00 2001 From: caoxinyu Date: Mon, 24 Dec 2018 19:40:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=90=8C=E6=AD=A5=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E4=BA=91=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/login.js | 11 +++++++++++ .../BasicData/PersonnelManagement/index.vue | 17 ++++++++++++----- src/views/login/index.vue | 14 ++++++++++---- 3 files changed, 33 insertions(+), 9 deletions(-) diff --git a/src/api/login.js b/src/api/login.js index f83d46dc..7791a70d 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -36,3 +36,14 @@ export function editPassword(num1, num2, num3, num4) { } }) } +export function cloudEditPassword(num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '人事档案管理_人员名单_云上改密码', + param: 'id=' + num1 + '=int&新密码=' + num2 + '=string' + } + }) +} diff --git a/src/views/BasicData/PersonnelManagement/index.vue b/src/views/BasicData/PersonnelManagement/index.vue index ac53c58a..bee0dc9a 100644 --- a/src/views/BasicData/PersonnelManagement/index.vue +++ b/src/views/BasicData/PersonnelManagement/index.vue @@ -228,6 +228,7 @@ @@ -405,6 +407,7 @@ export default { List: [], total: null, nodeName: '', + btnLoading: false, department_DFV: false, department_Form: { DepartmentName: '' @@ -645,9 +648,11 @@ export default { } }, submitAddPeople() { - this.people_DFV = false + this.btnLoading = true addPeople(this.id, this.people_form.Sex, this.people_form.Education, this.people_form.Address, this.people_form.Nation, this.people_form.Post, this.people_form.AccountNumber, this.people_form.Password, this.people_form.Name, this.people_form.IDcard, this.people_form.TimeOfEntry, this.people_form.Birthday, this.people_form.ContactInformation).then(response => { + this.btnLoading = false if (response.data[0].result === '1') { + this.people_DFV = false this.i = 0 this.handleNodeClick() this.$message.success('添加成功') @@ -675,8 +680,9 @@ export default { this.people_form.ContactInformation = row.联系电话 }, submitEditPeople() { - this.people_DFV = false + this.btnLoading = true editPeople(this.people_form.PeopleID, this.people_form.Sex, this.people_form.Education, this.people_form.Address, this.people_form.Nation, this.people_form.Post, this.people_form.AccountNumber, this.people_form.Password, this.people_form.Name, this.people_form.IDcard, this.people_form.TimeOfEntry, this.people_form.Birthday, this.people_form.ContactInformation).then(response => { + this.btnLoading = false if (response.data[0].result === '1') { if (this.id !== '' && this.Name === '') { this.handleNodeClick() @@ -684,6 +690,7 @@ export default { this.feathPeopleForName() } this.$message.success('编辑成功') + this.people_DFV = false } else { this.$message.error('编辑失败') } diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 38cde6c8..589ce021 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -108,7 +108,7 @@