From b404ad06a9fe74036141c996aa89daa75a0d8407 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Tue, 03 Aug 2021 10:35:41 +0800
Subject: [PATCH] 考试报名删除修改为取消报名,报名状态修改,已取消报名的人无法打印准考证
---
src/views/trainApply/index.vue | 38 ++++++++++++++++++++++++++++++++------
1 files changed, 32 insertions(+), 6 deletions(-)
diff --git a/src/views/trainApply/index.vue b/src/views/trainApply/index.vue
index a0d9d02..429e3e8 100644
--- a/src/views/trainApply/index.vue
+++ b/src/views/trainApply/index.vue
@@ -45,6 +45,7 @@
:type="type"
size="small"
icon="el-icon-receiving"
+ :disabled="row.cancel==2"
@click="handlePrint(row)"
>准考证打印
</el-button>
@@ -65,6 +66,15 @@
import { mapState } from 'vuex'
+var DIC = {
+ cancel: [{
+ label: '已报名',
+ value: 1
+ }, {
+ label: '已取消',
+ value: 2
+ }]
+}
@@ -72,9 +82,6 @@
data () {
return {
- obj: {
- name: '张三',
- },
questionBankOption: {
// 操作栏多余按钮去除
delBtn: false,
@@ -327,7 +334,7 @@
? "0" + new Date().getSeconds()
: new Date().getSeconds())),
- width: 180
+ width: 160
},
{
label: "考试时间",
@@ -348,8 +355,27 @@
editDisplay: true,
// 表单编辑时是否为查看模式
editDetail: false,
- width: 180
- }
+ width: 160
+ },{
+ label: "报名状态",
+ prop: "cancel",
+ slot: true,
+ // 表单新增时是否禁止
+ addDisabled: false,
+ // 表单新增时是否可见
+ addDisplay: false,
+ // 表单新增时是否为查看模式
+ addDetail: false,
+ // 表单编辑时是否禁止
+ editDisabled: false,
+ // 表单编辑时是否可见
+ editDisplay: true,
+ // 表单编辑时是否为查看模式
+ editDetail: false,
+ dicData:DIC.cancel,
+ search:true,
+ type:"select"
+ },
]
},
questionBankSearch: {},
--
Gitblit v1.9.3