From ae6d054d53eb7e3f9c2439a0e25531c2ec9edb20 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Mon, 24 Jan 2022 16:02:16 +0800
Subject: [PATCH] 成绩申请修改
---
src/views/trainExam/performance.vue | 54 ++++++++++++++++++++++++++++++++++--------------------
1 files changed, 34 insertions(+), 20 deletions(-)
diff --git a/src/views/trainExam/performance.vue b/src/views/trainExam/performance.vue
index 931f977..a973217 100644
--- a/src/views/trainExam/performance.vue
+++ b/src/views/trainExam/performance.vue
@@ -1163,7 +1163,7 @@
submit(row, done, loading) {
var that = this;
row['createUser'] = this.userInfo.Id;
- console.log(row,1234660);
+ // console.log(row,1234660);
updateGrade(row).then(
() => {
that.$refs.form.resetFields();
@@ -1431,31 +1431,45 @@
endTime = endTime.replace(/-/g,'/');
//得到时间戳
var longtime = new Date(endTime).getTime();
- console.log(longtime,123466);
+ // console.log(longtime,123466);
getNowDate().then((res)=>{
var num = 24*3600*1000;
- if(res.data.data-longtime<=num){
- this.form = {
- id:null,
- examScoreId:row.id,
- examName:row.examName,
- candidateNo:row.candidateNo,
- account:row.account,
- securityName:row.securityName,
- theoryGrade:row.theoryGrade,
- learnGrade:row.learnGrade,
- allGrade:row.allGrade,
+ if(this.userInfo.role_name =="培训公司管理员"){
+ if(res.data.data-longtime<=num){
+ this.form = {
+ id:null,
+ examScoreId:row.id,
+ examName:row.examName,
+ candidateNo:row.candidateNo,
+ account:row.account,
+ securityName:row.securityName,
+ theoryGrade:row.theoryGrade,
+ learnGrade:row.learnGrade,
+ allGrade:row.allGrade,
+ }
+ this.gradeBoxVisible = true;
+ }else{
+ //提示
+ that.$message({
+ type: "warning",
+ message: "成绩修改申请只能在考试截止时间后的24小内提交!",
+ });
}
- this.gradeBoxVisible = true;
}else{
- //提示
- that.$message({
- type: "warning",
- message: "成绩修改申请只能在考试截止时间后的24小内提交!",
- });
+ this.form = {
+ id:null,
+ examScoreId:row.id,
+ examName:row.examName,
+ candidateNo:row.candidateNo,
+ account:row.account,
+ securityName:row.securityName,
+ theoryGrade:row.theoryGrade,
+ learnGrade:row.learnGrade,
+ allGrade:row.allGrade,
+ }
+ this.gradeBoxVisible = true;
}
})
-
},
uploadGrade(formName) {
--
Gitblit v1.9.3