Commit bf3f4d47 by cocomilk2012

update

parent a5d1d006
......@@ -132,7 +132,7 @@ class EmployeeService implements EmployeeInterface {
* @param params 请求参数
*/
public savePersonInfo(params: any): Promise<any> {
let url = urls.employeeUrl + `/api/user/employee/${params.edId}/info`;
let url = urls.employeeUrl + `/api/user/employee/${params.id}/info`;
return request.post(url, params, this.header);
}
......
......@@ -361,17 +361,20 @@ export default class personInfo extends Vue {
updatePersonInfo() {
let params = {
id: this.$route.query.ed_id,
infoBirthCity: this.obj.infoBirthCity,
infoFileLocation: this.obj.infoFileLocation,
infoHighestEducation: this.obj.infoHighestEducation,
infoMaritalStatus: this.obj.infoMaritalStatus,
infoMaternityStatus: this.obj.infoMaternityStatus,
infoNation: this.obj.infoNation,
infoPoliticalStatus: this.obj.infoPoliticalStatus,
infoWorkStartDate: this.obj.infoWorkStartDate
infoBirthCity: '',//this.obj.infoBirthCity,
infoFileLocation: '',//this.obj.infoFileLocation,
infoHighestEducation: '',//this.obj.infoHighestEducation,
infoMaritalStatus: '',//this.obj.infoMaritalStatus,
infoMaternityStatus: '',//this.obj.infoMaternityStatus,
infoNation: '',//this.obj.infoNation,
infoPoliticalStatus: '',//this.obj.infoPoliticalStatus,
infoWorkStartDate: '',//this.obj.infoWorkStartDate,
};
this.$server.EmployeeService.savePersonInfo(params)
.then(res => {
console.log(res);
Toast.success("保存成功");
this.show = false;
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment