From 326cdff899f5d6451bb1981eeda629a88bfe9e75 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Mon, 17 Jan 2022 17:42:01 +0800
Subject: [PATCH] 报名列表修改,考试成绩修改,成绩申请修改修改
---
src/views/trainExam/singleperformance.vue | 50 ++++++++++++++++++++++++++++++--------------------
1 files changed, 30 insertions(+), 20 deletions(-)
diff --git a/src/views/trainExam/singleperformance.vue b/src/views/trainExam/singleperformance.vue
index 2eaa39a..ae963bb 100644
--- a/src/views/trainExam/singleperformance.vue
+++ b/src/views/trainExam/singleperformance.vue
@@ -115,6 +115,7 @@
import { mapGetters } from "vuex";
import { getRoleDetail } from "@/api/system/role";
import Qs from "qs";
+import { getToken } from "@/util/auth";
export default {
data() {
var validatePass = (rule, value, callback) => {
@@ -192,13 +193,13 @@
viewDisplay: false,
},
{
- label: "考试名称",
- prop: "examName",
- search: true,
- searchSpan: 5,
- searchLabelWidth: 80,
- slot: true,
- viewDisplay: false,
+ label: "考试时间",
+ prop: "startTime",
+ type: "datetime",
+ format: "yyyy-MM-dd",
+ valueFormat: "yyyy-MM-dd",
+ width: 90,
+ viewDisplay: true,
// 表单新增时是否禁止
addDisabled: false,
// 表单新增时是否可见
@@ -207,19 +208,19 @@
addDetail: false,
// 表单编辑时是否禁止
editDisabled: true,
+ viewDisabled: true,
// 表单编辑时是否可见
- editDisplay: false,
+ editDisplay: true,
// 表单编辑时是否为查看模式
editDetail: false,
rules: [
{
required: true,
- message: "请输入试卷名称",
+ message: "请输入考试时间",
trigger: "blur",
},
],
- // overHidden:true,
- minWidth: 230,
+ overHidden:true,
},
{
label: "姓名",
@@ -310,6 +311,7 @@
label: "所属公司",
prop: "companyName",
search: true,
+ sortable: true,
searchSpan: 4,
// dicUrl: '/api/blade-system/dept/tree',
// props: {
@@ -384,7 +386,7 @@
editDetail: false,
},
{
- label: "状态",
+ label: "考试状态",
prop: "isExam",
type: "select",
slot: true,
@@ -442,7 +444,7 @@
editDisplay: true,
// 表单编辑时是否为查看模式
editDetail: false,
- width: 68,
+ width: 95,
},
{
label: "实操成绩",
@@ -461,7 +463,7 @@
editDisplay: true,
// 表单编辑时是否为查看模式
editDetail: false,
- width: 68,
+ width: 95,
rules: [
{ validator: validatePass, required: true, trigger: "blur" },
],
@@ -483,7 +485,7 @@
editDisplay: true,
// 表单编辑时是否为查看模式
editDetail: false,
- width: 58,
+ width: 80,
rules: [
{
required: true,
@@ -496,11 +498,11 @@
label: "是否合格",
prop: "qualified",
type: "select",
+ sortable: true,
slot: true,
search: true,
searchSpan: 4,
- // width: 110,
- width: 68,
+ width: 120,
dicData: [
{
label: "合格",
@@ -552,7 +554,8 @@
},
created() {
// console.log(this.$route.query,111);
- this.questionBankSearch["examName"] = this.$route.query.examName;
+ this.questionBankSearch["examId"] = this.$route.query.id;
+ // console.log(this.$route.query,111);
},
mounted() {},
computed: {
@@ -598,6 +601,9 @@
}
if(value.prop=="allGrade"){
this.sortName = "all_grade";
+ }
+ if(value.prop=="companyName"){
+ this.sortName = "companyName";
}
this.questionBankOnLoad(this.questionBankPage);
},
@@ -707,7 +713,7 @@
isExam: this.questionBankSearch.isExam,
qualified: this.questionBankSearch.qualified,
securityName: this.questionBankSearch.securityName,
- examName: this.questionBankSearch.examName,
+ examId:this.questionBankSearch.examId,
};
//导出
if (
@@ -722,9 +728,13 @@
data["trainUnitId"] = this.userInfo.dept_id;
}
data["examType"] = 2;
+ console.log(data,1234567989);
//序列号url形式,用&拼接
data = Qs.stringify(data);
- window.open(`/api/examScore/export-examScore?` + data);
+ window.open(`/api/examScore/export-examScore?${
+ this.website.tokenHeader
+ }=${getToken()}&` + data
+ );
});
},
},
--
Gitblit v1.9.3