Commit 3d7eb5f7 authored by zhengke's avatar zhengke

修改

parent 9dd5a202
...@@ -566,7 +566,7 @@ ...@@ -566,7 +566,7 @@
this.data = res.Data.PageData; this.data = res.Data.PageData;
this.pageCount = res.Data.PageCount; this.pageCount = res.Data.PageCount;
let UserIds = []; let UserIds = [];
this.data .forEach(x=>{ this.data.forEach(x=>{
UserIds.push(x.EmAccountId); UserIds.push(x.EmAccountId);
x.PropertyNumber=0 x.PropertyNumber=0
}) })
...@@ -581,14 +581,15 @@ ...@@ -581,14 +581,15 @@
getEduEmployeeNumList({UserIds:UserIds}).then(res => { getEduEmployeeNumList({UserIds:UserIds}).then(res => {
this.loading = false; this.loading = false;
let data = res.data.data let data = res.data.data
var mydata=JSON.parse(JSON.stringify(this.data));
data.forEach(x=>{ data.forEach(x=>{
this.data.map(j=>{ mydata.forEach(j=>{
if(x.EmployeeId == j.EmAccountId){ if(x.EmployeeId == j.EmAccountId){
j.PropertyNumber = x.PropertyNumber; j.PropertyNumber = x.PropertyNumber;
return
} }
}) })
}); });
this.data=mydata;
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = 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 to comment