处理新增账号问题

This commit is contained in:
andy 2025-07-16 11:01:00 +08:00
parent d80fe249f2
commit 9aa780b617
2 changed files with 4 additions and 3 deletions

View File

@ -1261,9 +1261,9 @@ export default {
}, },
reEmployment(row){ reEmployment(row){
reEmployment(row.userId).then(response => { reEmployment(row.userId).then(response => {
if(response.data.code==200){ if(response.code==200){
this.$modal.msgSuccess("重新入职成功"); this.$modal.msgSuccess("重新入职成功");
this.getList(); this.getList();
}else{ }else{
this.$modal.msgError(response.data.msg); this.$modal.msgError(response.data.msg);
} }

View File

@ -352,6 +352,7 @@ export default {
status: undefined, status: undefined,
deptId: undefined deptId: undefined
}, },
columns:[],
// //
rules: { rules: {
userName: [ userName: [
@ -583,7 +584,7 @@ export default {
for(var i=0;i<this.staffList.length;i++){ for(var i=0;i<this.staffList.length;i++){
if(val == this.staffList[i].name){ if(val == this.staffList[i].name){
this.form.deptName = this.staffList[i].deptName this.form.deptName = this.staffList[i].deptName
this.form.deptId = this.staffList[i].dept this.form.deptId = this.staffList[i].deptId
} }
} }
}, },