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()