From e32e1fcf03ddd3d61e5ce27c795a03a8fe995a9f Mon Sep 17 00:00:00 2001 From: suyanyan <1321717064@qq.com> Date: Wed, 9 Oct 2024 15:13:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=97=E8=A1=A8=E5=AD=97=E6=AE=B5=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/violation/portrait/index.vue | 24 +++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/SafeCampus.WEB/src/views/violation/portrait/index.vue b/SafeCampus.WEB/src/views/violation/portrait/index.vue index 5d625f4..5a9d0b5 100644 --- a/SafeCampus.WEB/src/views/violation/portrait/index.vue +++ b/SafeCampus.WEB/src/views/violation/portrait/index.vue @@ -67,16 +67,32 @@ const columns: ColumnProps[] = [ label: "姓名" }, { - prop: "personId", - label: "人员ID" + prop: "personSetName", + label: "所属班级", + }, + { + prop: "gender", + label: "性别", + enum: [ + { + label: "男", + value: "GENDER_MALE" + }, + { + label: "女", + value: "GENDER_FEMALE" + }], }, { prop: "phone", label: "手机号" }, { - prop: "personSetName", - label: "所属班级", + prop: "age", + label: "年龄", + render: scope => { + return scope.row.age ? scope.row.age : '--'; + } }, { prop: "operation", label: "操作", width: 250, fixed: "right" } ];