|
|
@ -687,6 +687,7 @@ export default {
|
|
|
|
Authorization: "Bearer " + getAccessToken(),
|
|
|
|
Authorization: "Bearer " + getAccessToken(),
|
|
|
|
"tenant-id": getTenantId(),
|
|
|
|
"tenant-id": getTenantId(),
|
|
|
|
}, // 设置上传的请求头
|
|
|
|
}, // 设置上传的请求头
|
|
|
|
|
|
|
|
optType: undefined,
|
|
|
|
fileList: [], // 文件列表
|
|
|
|
fileList: [], // 文件列表
|
|
|
|
// 部门树选项
|
|
|
|
// 部门树选项
|
|
|
|
deptOptions: undefined,
|
|
|
|
deptOptions: undefined,
|
|
|
@ -986,24 +987,24 @@ export default {
|
|
|
|
/** 查看按钮操作 */
|
|
|
|
/** 查看按钮操作 */
|
|
|
|
handleView(row) {
|
|
|
|
handleView(row) {
|
|
|
|
this.reset();
|
|
|
|
this.reset();
|
|
|
|
this.optType = "view";
|
|
|
|
|
|
|
|
const id = row.id;
|
|
|
|
const id = row.id;
|
|
|
|
getElectronicEmployee(id).then((response) => {
|
|
|
|
getElectronicEmployee(id).then((response) => {
|
|
|
|
this.form = response.data;
|
|
|
|
this.form = response.data;
|
|
|
|
this.dateArray(this.form.birthdate);
|
|
|
|
this.dateArray(this.form.birthdate);
|
|
|
|
this.open = true;
|
|
|
|
this.open = true;
|
|
|
|
|
|
|
|
this.optType = "view";
|
|
|
|
this.title = "查看员工档案";
|
|
|
|
this.title = "查看员工档案";
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/** 修改按钮操作 */
|
|
|
|
/** 修改按钮操作 */
|
|
|
|
handleUpdate(row) {
|
|
|
|
handleUpdate(row) {
|
|
|
|
this.reset();
|
|
|
|
this.reset();
|
|
|
|
this.optType = "edit";
|
|
|
|
|
|
|
|
const id = row.id;
|
|
|
|
const id = row.id;
|
|
|
|
getElectronicEmployee(id).then((response) => {
|
|
|
|
getElectronicEmployee(id).then((response) => {
|
|
|
|
this.form = response.data;
|
|
|
|
this.form = response.data;
|
|
|
|
this.dateArray(this.form.birthdate);
|
|
|
|
this.dateArray(this.form.birthdate);
|
|
|
|
this.open = true;
|
|
|
|
this.open = true;
|
|
|
|
|
|
|
|
this.optType = "edit";
|
|
|
|
this.title = "修改员工档案";
|
|
|
|
this.title = "修改员工档案";
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|