diff --git a/pages/realName/workbench/personEnter/addPeople.vue b/pages/realName/workbench/personEnter/addPeople.vue
index b12483a..7913bed 100644
--- a/pages/realName/workbench/personEnter/addPeople.vue
+++ b/pages/realName/workbench/personEnter/addPeople.vue
@@ -212,7 +212,7 @@
非必填
-
+
-
- 安规培训
+
+ 公司级考试成绩
-
-
+
+
-
- 保命教育实操
+
+ 部门级考试成绩
-
-
+
+
-
- 保命教育理论
+
+ 班组级考试成绩
-
-
+
+
-
-
+
提醒事项:
@@ -779,10 +779,10 @@ export default {
"practical": "",//保命教育实操
"theory": "",//保命教育理论
"militarize": "",//准军事化培训
- "safetyScore": "",//安规培训分数
- "practicalScore": "",//保命教育实操分数
- "theoryScore": "",//保命教育理论分数
- "militarizeScore": "",//准军事化培训分数
+ "companyExamScore": "",//安规培训分数
+ "deptExamScore": "",//保命教育实操分数
+ "teamExamScore": "",//保命教育理论分数
+ // "militarizeScore": "",//准军事化培训分数
"isPass": ""//是否合格
},
entrySubTeamBean:{
@@ -1308,23 +1308,23 @@ export default {
},
matchScore1(e){
if(Number(e)>100){
- this.entryTrainBean.safetyScore=100;
+ this.entryTrainBean.companyExamScore=100;
}else if(Number(e)<0){
- this.entryTrainBean.safetyScore=0;
+ this.entryTrainBean.companyExamScore=0;
}
},
matchScore2(e){
if(Number(e)>100){
- this.entryTrainBean.practicalScore=100;
+ this.entryTrainBean.deptExamScore=100;
}else if(Number(e)<0){
- this.entryTrainBean.practicalScore=0;
+ this.entryTrainBean.deptExamScore=0;
}
},
matchScore3(e){
if(Number(e)>100){
- this.entryTrainBean.theoryScore=100;
+ this.entryTrainBean.teamExamScore=100;
}else if(Number(e)<0){
- this.entryTrainBean.theoryScore=0;
+ this.entryTrainBean.teamExamScore=0;
}
},
matchScore4(e){
@@ -1425,6 +1425,15 @@ export default {
},
addEntryPerson(){
console.log('add')
+ if (
+ Number(this.entryTrainBean.safetyTraining) >= 90
+ && Number(this.entryTrainBean.deptExamScore) >= 80
+ && Number(this.entryTrainBean.teamExamScore) >= 80
+ && Number(this.entryTrainBean.militarizeScore) >= 80) {
+ this.entryTrainBean.isPass = '1';
+ } else {
+ this.entryTrainBean.isPass = '0';
+ }
let param={
entryIdNumberBean:this.entryIdNumberBean,
entryCruxBean:this.entryCruxBean,
diff --git a/pages/realName/workbench/personEnter/editPeople.vue b/pages/realName/workbench/personEnter/editPeople.vue
index 087c940..048867a 100644
--- a/pages/realName/workbench/personEnter/editPeople.vue
+++ b/pages/realName/workbench/personEnter/editPeople.vue
@@ -227,7 +227,7 @@
非必填
-
+
-
- 安规培训
+
+ 公司级考试成绩
-
-
+
-
- 保命教育实操
+
+ 部门级考试成绩
-
-
+
-
- 保命教育理论
+
+ 班组级考试成绩
-
-
+
-
+
提醒事项:
@@ -827,10 +827,10 @@
"practical": "", //保命教育实操
"theory": "", //保命教育理论
"militarize": "", //准军事化培训
- "safetyScore": "", //安规培训分数
- "practicalScore": "", //保命教育实操分数
- "theoryScore": "", //保命教育理论分数
- "militarizeScore": "", //准军事化培训分数
+ "companyExamScore": "", //安规培训分数
+ "deptExamScore": "", //保命教育实操分数
+ "teamExamScore": "", //保命教育理论分数
+ // "militarizeScore": "", //准军事化培训分数
"isPass": "" //是否合格
},
entrySubTeamBean: {
@@ -1407,23 +1407,23 @@
},
matchScore1(e) {
if (Number(e) > 100) {
- this.entryTrainBean.safetyScore = 100;
+ this.entryTrainBean.companyExamScore = 100;
} else if (Number(e) < 0) {
- this.entryTrainBean.safetyScore = 0;
+ this.entryTrainBean.companyExamScore = 0;
}
},
matchScore2(e) {
if (Number(e) > 100) {
- this.entryTrainBean.practicalScore = 100;
+ this.entryTrainBean.deptExamScore = 100;
} else if (Number(e) < 0) {
- this.entryTrainBean.practicalScore = 0;
+ this.entryTrainBean.deptExamScore = 0;
}
},
matchScore3(e) {
if (Number(e) > 100) {
- this.entryTrainBean.theoryScore = 100;
+ this.entryTrainBean.teamExamScore = 100;
} else if (Number(e) < 0) {
- this.entryTrainBean.theoryScore = 0;
+ this.entryTrainBean.teamExamScore = 0;
}
},
matchScore4(e) {
@@ -1527,6 +1527,15 @@
updateEntryPerson() {
this.isLoading = true
console.log('add')
+ if (
+ Number(this.entryTrainBean.companyExamScore) >= 80
+ && Number(this.entryTrainBean.deptExamScore) >= 80
+ && Number(this.entryTrainBean.teamExamScore) >= 80
+ ) {
+ this.entryTrainBean.isPass = '1';
+ } else {
+ this.entryTrainBean.isPass = '0';
+ }
let param = {
entryIdNumberBean: this.entryIdNumberBean,
entryCruxBean: this.entryCruxBean,