登录日志详情国际化
continuous-integration/drone/push Build is passing Details

main
wangxiaoshuang 2025-09-01 14:35:05 +08:00
parent 8ce1ffab48
commit b415c21440
1 changed files with 9 additions and 17 deletions

View File

@ -2,26 +2,17 @@
<base-model v-if="config.visible" :config="config">
<template slot="dialog-body">
<el-table :data="curData" border style="width: 100%" size="small">
<el-table-column
prop="key"
:label="$t('system:loginLog:table:cfgItem')"
show-overflow-tooltip
/>
<el-table-column
prop="value"
:label="$t('system:loginLog:table:cfgVal')"
show-overflow-tooltip
>
<el-table-column prop="key" :label="$t('system:loginLog:table:cfgItem')" show-overflow-tooltip />
<el-table-column prop="value" :label="$t('system:loginLog:table:cfgVal')" show-overflow-tooltip>
<template slot-scope="scope">
<span v-if="scope.row.prop !== 'UserRoleList'">{{
<span v-if="scope.row.prop === 'HospitalGroupList'">{{
Array.isArray(scope.row.value) ? scope.row.value.map(item => item.Name).join(", ") : ''
}}</span>
<span v-else-if="scope.row.prop !== 'UserRoleList'">{{
scope.row.value
}}</span>
<template v-else>
<div
v-for="item in scope.row.value"
:key="item.UserTypeEnum"
style="margin: 0"
>
<div v-for="item in scope.row.value" :key="item.UserTypeEnum" style="margin: 0">
{{ item.UserTypeShortName
}}{{ $t('system:loginLog:form:symbol')
}}{{ $fd('IsEnable', !item.IsUserRoleDisabled) }}
@ -70,6 +61,7 @@ export default {
'EMail',
'Phone',
'Status',
'HospitalGroupList',
'OrganizationName',
'PositionName',
'DepartmentName',
@ -94,7 +86,7 @@ export default {
prop: key,
}
if (key === 'Status') {
o.value = this.$fd('IsUserEnable', obj[key])
o.value = this.$fd('IsEnable', !!obj[key])
}
curData.push(o)
}