diff --git a/src/views/staffManage/editStaff.vue b/src/views/staffManage/editStaff.vue index eb369a7..5eeba8b 100644 --- a/src/views/staffManage/editStaff.vue +++ b/src/views/staffManage/editStaff.vue @@ -311,7 +311,7 @@ createData: function() { this.canEdit = false this.$refs['dataForm'].validate((valid) => { - console.log(this.staffForm) + this.staffForm.hiredate = this.staffForm.hireDate if (valid) { addStaff(this.staffForm).then(response => { if (response.code === 200) { @@ -344,6 +344,7 @@ this.canEdit = false this.$refs['dataForm'].validate((valid) => { if (valid) { + this.staffForm.hiredate = this.staffForm.hireDate updateStaff(this.staffForm).then(response => { if (response.code === 200) { this.$message.success('修改成功')