|
@@ -108,6 +108,15 @@
|
|
|
></span
|
|
|
>
|
|
|
</div>
|
|
|
+ <div v-else-if="item.scope === 'sex'">
|
|
|
+ {{
|
|
|
+ scope.row[item.prop] == 1
|
|
|
+ ? "男"
|
|
|
+ : scope.row[item.prop] == 2
|
|
|
+ ? "女"
|
|
|
+ : ""
|
|
|
+ }}
|
|
|
+ </div>
|
|
|
<div v-else-if="item.scope === 'set'">
|
|
|
<el-button type="text" @click="delStudent(scope.$index)"
|
|
|
>删除</el-button
|
|
@@ -176,14 +185,23 @@ export default {
|
|
|
label: "学员身份证",
|
|
|
prop: "idCard",
|
|
|
},
|
|
|
+ {
|
|
|
+ label: "科目",
|
|
|
+ prop: "subjectIds",
|
|
|
+ scope: "sujectList",
|
|
|
+ },
|
|
|
{
|
|
|
label: "所在公司",
|
|
|
prop: "companyName",
|
|
|
},
|
|
|
{
|
|
|
- label: "科目",
|
|
|
- prop: "subjectIds",
|
|
|
- scope: "sujectList",
|
|
|
+ label: "性别",
|
|
|
+ prop: "sex",
|
|
|
+ scope: "sex",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "学历",
|
|
|
+ prop: "eduLevel",
|
|
|
},
|
|
|
{
|
|
|
label: "操作",
|
|
@@ -247,7 +265,7 @@ export default {
|
|
|
for (let i = 0; i < this.newBusinessLevel.length; i++) {
|
|
|
if (this.newBusinessLevel[i].id === this.topData.businessId) {
|
|
|
this.topData.projectId = this.newBusinessLevel[i].projectId;
|
|
|
- this.topData.templateStatus = this.newBusinessLevel[i].templateStatus
|
|
|
+ this.topData.templateStatus = this.newBusinessLevel[i].templateStatus;
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
@@ -263,29 +281,41 @@ export default {
|
|
|
uploadList(arr) {
|
|
|
let ays = JSON.parse(JSON.stringify(arr));
|
|
|
ays.forEach((item) => {
|
|
|
- if(item.subjectIds){
|
|
|
+ if (item.sex) {
|
|
|
+ if (item.sex == "男") {
|
|
|
+ item.sex = 1;
|
|
|
+ }
|
|
|
+ if (item.sex == "女") {
|
|
|
+ item.sex = 2;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (item.subjectIds) {
|
|
|
item.subjectIds = item.subjectIds.split(",").map(Number);
|
|
|
- }else{
|
|
|
- item.subjectIds = []
|
|
|
+ } else {
|
|
|
+ item.subjectIds = [];
|
|
|
}
|
|
|
});
|
|
|
- if(this.tableData && this.tableData.length > 0){
|
|
|
- const data = new Set()
|
|
|
+ if (this.tableData && this.tableData.length > 0) {
|
|
|
+ const data = new Set();
|
|
|
this.tableData.forEach((item) => {
|
|
|
ays.forEach((as) => {
|
|
|
- if(item.telphone == as.telphone && as.companyName && as.companyName != ''){
|
|
|
- item.companyName = as.companyName
|
|
|
- }else{
|
|
|
- data.add(as)
|
|
|
+ if (
|
|
|
+ item.telphone == as.telphone &&
|
|
|
+ as.companyName &&
|
|
|
+ as.companyName != ""
|
|
|
+ ) {
|
|
|
+ item.companyName = as.companyName;
|
|
|
+ } else {
|
|
|
+ data.add(as);
|
|
|
}
|
|
|
- })
|
|
|
- })
|
|
|
- if(data && data.size > 0){
|
|
|
+ });
|
|
|
+ });
|
|
|
+ if (data && data.size > 0) {
|
|
|
let newObjs = this.tableData.concat(Array.from(data));
|
|
|
this.tableData = this.$methodsTools.uniqueFunc(newObjs, "userId");
|
|
|
}
|
|
|
- }else{
|
|
|
- this.tableData = ays
|
|
|
+ } else {
|
|
|
+ this.tableData = ays;
|
|
|
}
|
|
|
},
|
|
|
/**
|