fix:编辑查看交接记录时人员显示
This commit is contained in:
parent
b505568d64
commit
023abaff33
|
@ -698,25 +698,23 @@ export default {
|
||||||
let that = this;
|
let that = this;
|
||||||
this.totalCount = data.count?data.count:data.handoverb.count;
|
this.totalCount = data.count?data.count:data.handoverb.count;
|
||||||
Object.assign(this.form, data);
|
Object.assign(this.form, data);
|
||||||
if(data.type==30){
|
this.$API.system.user.list.req({ depts: data.send_dept, page: 0 }).then((res) => {
|
||||||
this.getUserList3();
|
that.userList = res;
|
||||||
}else{
|
});
|
||||||
this.$API.system.user.list.req({ depts: data.recive_dept, page: 0 }).then((res) => {
|
this.$API.system.user.list.req({ depts: data.recive_dept, page: 0 }).then((res) => {
|
||||||
that.userList2 = res;
|
that.userList2 = res;
|
||||||
});
|
});
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
let arr =that.userList2.filter((item) => {
|
let arr =that.userList2.filter((item) => {
|
||||||
return item.id == data.recive_user
|
return item.id == data.recive_user
|
||||||
})
|
})
|
||||||
if(arr.length>0){}else{
|
if(arr.length>0){}else{
|
||||||
let obj = {};
|
let obj = {};
|
||||||
obj.id = data.recive_user;
|
obj.id = data.recive_user;
|
||||||
obj.name = data.recive_user_name;
|
obj.name = data.recive_user_name;
|
||||||
that.userList2.push(obj);
|
that.userList2.push(obj);
|
||||||
}
|
}
|
||||||
},500)
|
},500)
|
||||||
|
|
||||||
}
|
|
||||||
if(data.new_batch!==''&&data.new_batch!==undefined&&data.new_batch!==null){
|
if(data.new_batch!==''&&data.new_batch!==undefined&&data.new_batch!==null){
|
||||||
this.change_batch = true;
|
this.change_batch = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue