mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-13 19:35:24 +00:00
fix: 修复工单详情 account 显示
This commit is contained in:
@@ -33,7 +33,7 @@ export default {
|
||||
return object.type === 'login_confirm' ? [] : [
|
||||
{
|
||||
key: this.$t('acl.apply_login_asset'),
|
||||
value: object.apply_login_asset.name
|
||||
value: object.apply_login_asset?.name
|
||||
},
|
||||
{
|
||||
key: this.$t('acl.apply_login_account'),
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { formatTime, getDateTimeStamp } from '@/utils/index'
|
||||
import { formatTime, getDateTimeStamp } from '@/utils'
|
||||
import { toSafeLocalDateStr } from '@/utils/common'
|
||||
import { STATUS_MAP, treeNodes } from '../../const'
|
||||
import GenericTicketDetail from '@/views/tickets/components/GenericTicketDetail'
|
||||
@@ -57,6 +57,7 @@ import AccountFormatter from '@/views/perms/AssetPermission/components/AccountFo
|
||||
import Select2 from '@/components/FormFields/Select2'
|
||||
import BasicTree from '@/components/FormFields/BasicTree'
|
||||
import IBox from '@/components/IBox'
|
||||
import { AccountLabelMapper } from '@/views/perms/const'
|
||||
|
||||
export default {
|
||||
name: '',
|
||||
@@ -127,7 +128,7 @@ export default {
|
||||
},
|
||||
{
|
||||
key: this.$tc('perms.Account'),
|
||||
value: object.apply_accounts.join(', ')
|
||||
value: object.apply_accounts.map(item => AccountLabelMapper[item] || item).join(', ')
|
||||
},
|
||||
{
|
||||
key: this.$tc('assets.Action'),
|
||||
@@ -169,7 +170,7 @@ export default {
|
||||
},
|
||||
{
|
||||
key: this.$tc('perms.Account'),
|
||||
value: (object.apply_accounts || []).join(', ')
|
||||
value: object.apply_accounts.map(item => AccountLabelMapper[item] || item).join(', ')
|
||||
},
|
||||
{
|
||||
key: this.$tc('assets.Action'),
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
<script>
|
||||
import { STATUS_MAP } from '../const'
|
||||
import { formatTime, getDateTimeStamp } from '@/utils/index'
|
||||
import { formatTime, getDateTimeStamp } from '@/utils'
|
||||
import { toSafeLocalDateStr } from '@/utils/common'
|
||||
import GenericTicketDetail from '@/views/tickets/components/GenericTicketDetail'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user