登录日志详情国际化
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
8ce1ffab48
commit
b415c21440
|
@ -2,26 +2,17 @@
|
||||||
<base-model v-if="config.visible" :config="config">
|
<base-model v-if="config.visible" :config="config">
|
||||||
<template slot="dialog-body">
|
<template slot="dialog-body">
|
||||||
<el-table :data="curData" border style="width: 100%" size="small">
|
<el-table :data="curData" border style="width: 100%" size="small">
|
||||||
<el-table-column
|
<el-table-column prop="key" :label="$t('system:loginLog:table:cfgItem')" show-overflow-tooltip />
|
||||||
prop="key"
|
<el-table-column prop="value" :label="$t('system:loginLog:table:cfgVal')" show-overflow-tooltip>
|
||||||
: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">
|
<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
|
scope.row.value
|
||||||
}}</span>
|
}}</span>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<div
|
<div v-for="item in scope.row.value" :key="item.UserTypeEnum" style="margin: 0">
|
||||||
v-for="item in scope.row.value"
|
|
||||||
:key="item.UserTypeEnum"
|
|
||||||
style="margin: 0"
|
|
||||||
>
|
|
||||||
{{ item.UserTypeShortName
|
{{ item.UserTypeShortName
|
||||||
}}{{ $t('system:loginLog:form:symbol')
|
}}{{ $t('system:loginLog:form:symbol')
|
||||||
}}{{ $fd('IsEnable', !item.IsUserRoleDisabled) }}
|
}}{{ $fd('IsEnable', !item.IsUserRoleDisabled) }}
|
||||||
|
@ -70,6 +61,7 @@ export default {
|
||||||
'EMail',
|
'EMail',
|
||||||
'Phone',
|
'Phone',
|
||||||
'Status',
|
'Status',
|
||||||
|
'HospitalGroupList',
|
||||||
'OrganizationName',
|
'OrganizationName',
|
||||||
'PositionName',
|
'PositionName',
|
||||||
'DepartmentName',
|
'DepartmentName',
|
||||||
|
@ -94,7 +86,7 @@ export default {
|
||||||
prop: key,
|
prop: key,
|
||||||
}
|
}
|
||||||
if (key === 'Status') {
|
if (key === 'Status') {
|
||||||
o.value = this.$fd('IsUserEnable', obj[key])
|
o.value = this.$fd('IsEnable', !!obj[key])
|
||||||
}
|
}
|
||||||
curData.push(o)
|
curData.push(o)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue