From ad7fde1681bfedec5f35c2853a71fb79197d6c7d Mon Sep 17 00:00:00 2001 From: Yjhon Date: Mon, 14 Mar 2022 17:50:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=B9=E8=AE=AD=E8=AE=A1=E5=88=92=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/project/trainPlan/TrainPlanForm.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/views/project/trainPlan/TrainPlanForm.vue b/src/views/project/trainPlan/TrainPlanForm.vue index d6325ea..b087edc 100644 --- a/src/views/project/trainPlan/TrainPlanForm.vue +++ b/src/views/project/trainPlan/TrainPlanForm.vue @@ -10,7 +10,11 @@ 选择项目 - + + + {{ index + 1 }} + + @@ -63,8 +67,11 @@ export default { name: [{ required: true, message: '请输入培训计划名称', trigger: 'blur' }], year: [{ required: true, message: '请选择培训计划年度', trigger: 'change' }], }, + wayEmun:['培训','考试','培训-练习','培训-练习-考试'], columns: [ + { title: '序号', key: 'id', dataIndex: 'id', width: 60, scopedSlots: { customRender: 'serial' } }, { title: '项目名称', dataIndex: 'projectName', key: 'projectName' }, + { title: '项目类型', key: 'trainWay', dataIndex: 'trainWay',customRender: (text, record, index) => { return this.wayEmun[Number(text)-1] } }, { title: '创建人', dataIndex: 'createBy', key: 'createBy' }, { title: '创建时间', dataIndex: 'createDate', key: 'createDate' } ], @@ -214,6 +221,7 @@ export default { this.columns = this.columns.filter(item => { return item.key != 'createBy' }) this.columns = this.columns.filter(item => { return item.key != 'createDate' }) + this.columns.push({title:'参与人数',dataIndex:'signCount',key:'signCount'}); }) } if (this.$route.query.t != 'year') {