From 4ed5ca8400eef929a6d994e4a9d89ba89d6835a5 Mon Sep 17 00:00:00 2001 From: suyanyan <1321717064@qq.com> Date: Wed, 24 Jul 2024 09:24:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SafeCampus.WEB/src/views/userManage/keyPersonnel/index.vue | 5 +---- SafeCampus.WEB/src/views/userManage/personnel/index.vue | 7 ++----- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/SafeCampus.WEB/src/views/userManage/keyPersonnel/index.vue b/SafeCampus.WEB/src/views/userManage/keyPersonnel/index.vue index 8c2a5d2..594cf60 100644 --- a/SafeCampus.WEB/src/views/userManage/keyPersonnel/index.vue +++ b/SafeCampus.WEB/src/views/userManage/keyPersonnel/index.vue @@ -104,11 +104,8 @@ const columns: ColumnProps[] = [ label: "年龄" }, { - prop: "personSets", + prop: "personSetName", label: "所属班级", - render: scope => { - return scope.row.personSets.length > 0 ? scope.row.personSets[0].personSetName : '' - } }, { prop: "operation", label: "操作", width: 250, fixed: "right" } ]; diff --git a/SafeCampus.WEB/src/views/userManage/personnel/index.vue b/SafeCampus.WEB/src/views/userManage/personnel/index.vue index 9c2e6e2..ca34c02 100644 --- a/SafeCampus.WEB/src/views/userManage/personnel/index.vue +++ b/SafeCampus.WEB/src/views/userManage/personnel/index.vue @@ -159,11 +159,8 @@ const columns: ColumnProps[] = [ label: "手机号" }, { - prop: "personSets", + prop: "personSetName", label: "所属班级", - render: scope => { - return scope.row.personSets.length > 0 ? scope.row.personSets[0].personSetName : '' - } }, { prop: "operation", label: "操作", width: 250, fixed: "right" } ]; @@ -267,7 +264,7 @@ function handleCommand(command: Command) { case cmdEnum.UnderpantsUnBinding: userManagePersonnelApi.personUnBindDfie({ personId:command.row.personId, - personSetId: command.row.personSets[0].personSetId + personSetId: command.row.personSetId }).then(res=>{ ElMessage.success('底库解绑成功'); RefreshTable()