Browse Source

报错问题处理

master
suyanyan 4 months ago
parent
commit
4ed5ca8400
2 changed files with 3 additions and 9 deletions
  1. +1
    -4
      SafeCampus.WEB/src/views/userManage/keyPersonnel/index.vue
  2. +2
    -5
      SafeCampus.WEB/src/views/userManage/personnel/index.vue

+ 1
- 4
SafeCampus.WEB/src/views/userManage/keyPersonnel/index.vue View File

@@ -104,11 +104,8 @@ const columns: ColumnProps<SysUserPersonnel.SysUserPerInfo>[] = [
label: "年龄" label: "年龄"
}, },
{ {
prop: "personSets",
prop: "personSetName",
label: "所属班级", label: "所属班级",
render: scope => {
return scope.row.personSets.length > 0 ? scope.row.personSets[0].personSetName : ''
}
}, },
{ prop: "operation", label: "操作", width: 250, fixed: "right" } { prop: "operation", label: "操作", width: 250, fixed: "right" }
]; ];


+ 2
- 5
SafeCampus.WEB/src/views/userManage/personnel/index.vue View File

@@ -159,11 +159,8 @@ const columns: ColumnProps<SysUserPersonnel.SysUserPerInfo>[] = [
label: "手机号" label: "手机号"
}, },
{ {
prop: "personSets",
prop: "personSetName",
label: "所属班级", label: "所属班级",
render: scope => {
return scope.row.personSets.length > 0 ? scope.row.personSets[0].personSetName : ''
}
}, },
{ prop: "operation", label: "操作", width: 250, fixed: "right" } { prop: "operation", label: "操作", width: 250, fixed: "right" }
]; ];
@@ -267,7 +264,7 @@ function handleCommand(command: Command) {
case cmdEnum.UnderpantsUnBinding: case cmdEnum.UnderpantsUnBinding:
userManagePersonnelApi.personUnBindDfie({ userManagePersonnelApi.personUnBindDfie({
personId:command.row.personId, personId:command.row.personId,
personSetId: command.row.personSets[0].personSetId
personSetId: command.row.personSetId
}).then(res=>{ }).then(res=>{
ElMessage.success('底库解绑成功'); ElMessage.success('底库解绑成功');
RefreshTable() RefreshTable()


Loading…
Cancel
Save