|
@@ -174,6 +174,10 @@ export default {
|
|
label: "学员身份证",
|
|
label: "学员身份证",
|
|
prop: "idCard",
|
|
prop: "idCard",
|
|
},
|
|
},
|
|
|
|
+ {
|
|
|
|
+ label: "所在公司",
|
|
|
|
+ prop: "companyName",
|
|
|
|
+ },
|
|
{
|
|
{
|
|
label: "科目",
|
|
label: "科目",
|
|
prop: "subjectIds",
|
|
prop: "subjectIds",
|
|
@@ -263,8 +267,24 @@ export default {
|
|
item.subjectIds = []
|
|
item.subjectIds = []
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- let newObjs = this.tableData.concat(ays);
|
|
|
|
- this.tableData = this.$methodsTools.uniqueFunc(newObjs, "userId");
|
|
|
|
|
|
+ if(this.tableData && this.tableData.length > 0){
|
|
|
|
+ const data = new Set()
|
|
|
|
+ this.tableData.forEach((item) => {
|
|
|
|
+ ays.forEach((as) => {
|
|
|
|
+ if(item.telphone == as.telphone){
|
|
|
|
+ item.companyName = as.companyName
|
|
|
|
+ }else{
|
|
|
|
+ data.add(as)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ if(data && data.size > 0){
|
|
|
|
+ let newObjs = this.tableData.concat(Array.from(data));
|
|
|
|
+ this.tableData = this.$methodsTools.uniqueFunc(newObjs, "userId");
|
|
|
|
+ }
|
|
|
|
+ }else{
|
|
|
|
+ this.tableData = ays
|
|
|
|
+ }
|
|
},
|
|
},
|
|
/**
|
|
/**
|
|
* 导入
|
|
* 导入
|