mirror of
https://github.com/jumpserver/lina.git
synced 2025-10-22 08:08:39 +00:00
fix: 修复已知Issues
修复审计员权限无法打开用户界面的问题 修复英文状态下基础列表宽度问题 修复收藏节点无法右键的问题 修复Firefox无法打开系统用户详情的问题
This commit is contained in:
@@ -164,9 +164,14 @@ export default {
|
|||||||
$('body').bind('mousedown', this.onBodyMouseDown)
|
$('body').bind('mousedown', this.onBodyMouseDown)
|
||||||
},
|
},
|
||||||
onRightClick: function(event, treeId, treeNode) {
|
onRightClick: function(event, treeId, treeNode) {
|
||||||
|
console.log(treeNode)
|
||||||
if (!this.setting.showMenu) {
|
if (!this.setting.showMenu) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
// 屏蔽收藏资产
|
||||||
|
if (treeNode.id === '-12') {
|
||||||
|
return
|
||||||
|
}
|
||||||
if (!treeNode && event.target.tagName.toLowerCase() !== 'button' && $(event.target).parents('a').length === 0) {
|
if (!treeNode && event.target.tagName.toLowerCase() !== 'button' && $(event.target).parents('a').length === 0) {
|
||||||
this.zTree.cancelSelectedNode()
|
this.zTree.cancelSelectedNode()
|
||||||
this.showRMenu('root', event.clientX, event.clientY)
|
this.showRMenu('root', event.clientX, event.clientY)
|
||||||
|
@@ -7,9 +7,9 @@ const PERM_SUPER = 0b10000000
|
|||||||
const PERM_NONE = 0b00000000
|
const PERM_NONE = 0b00000000
|
||||||
|
|
||||||
const SUPER_ADMIN = PERM_SUPER | PERM_ADMIN | PERM_AUDIT
|
const SUPER_ADMIN = PERM_SUPER | PERM_ADMIN | PERM_AUDIT
|
||||||
const SUPER_AUDITOR = PERM_SUPER | PERM_AUDIT
|
const SUPER_AUDITOR = PERM_SUPER | PERM_AUDIT | PERM_USE
|
||||||
const ORG_ADMIN = PERM_ADMIN | PERM_AUDIT
|
const ORG_ADMIN = PERM_ADMIN | PERM_AUDIT
|
||||||
const ORG_AUDITOR = PERM_AUDIT
|
const ORG_AUDITOR = PERM_AUDIT | PERM_USE
|
||||||
const USER = PERM_USE
|
const USER = PERM_USE
|
||||||
const ANON = PERM_NONE
|
const ANON = PERM_NONE
|
||||||
|
|
||||||
|
@@ -14,6 +14,7 @@
|
|||||||
import DetailCard from '@/components/DetailCard'
|
import DetailCard from '@/components/DetailCard'
|
||||||
import AutoPushCard from './AutoPushCard'
|
import AutoPushCard from './AutoPushCard'
|
||||||
import RelationCard from '@/components/RelationCard/index'
|
import RelationCard from '@/components/RelationCard/index'
|
||||||
|
import { toSafeLocalDateStr } from '@/utils/common'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Detail',
|
name: 'Detail',
|
||||||
@@ -110,7 +111,7 @@ export default {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: this.$t('assets.date_joined'),
|
key: this.$t('assets.date_joined'),
|
||||||
value: this.$d(new Date(this.object.date_created), 'medium')
|
value: toSafeLocalDateStr(this.object.date_created)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: this.$t('assets.CreatedBy'),
|
key: this.$t('assets.CreatedBy'),
|
||||||
|
@@ -51,22 +51,27 @@ export default {
|
|||||||
},
|
},
|
||||||
command_amount: {
|
command_amount: {
|
||||||
label: this.$t('sessions.command'),
|
label: this.$t('sessions.command'),
|
||||||
width: '60px'
|
width: '100px'
|
||||||
|
},
|
||||||
|
system_user: {
|
||||||
|
showOverflowTooltip: true
|
||||||
},
|
},
|
||||||
login_from: {
|
login_from: {
|
||||||
label: this.$t('sessions.loginFrom'),
|
label: this.$t('sessions.loginFrom'),
|
||||||
width: '110px'
|
width: '120px',
|
||||||
|
showOverflowTooltip: true
|
||||||
},
|
},
|
||||||
remote_addr: {
|
remote_addr: {
|
||||||
width: '130px'
|
width: '120px'
|
||||||
},
|
},
|
||||||
protocol: {
|
protocol: {
|
||||||
label: this.$t('sessions.protocol'),
|
label: this.$t('sessions.protocol'),
|
||||||
width: '60px',
|
width: '80px',
|
||||||
sortable: false,
|
sortable: false,
|
||||||
formatter: null
|
formatter: null
|
||||||
},
|
},
|
||||||
date_start: {
|
date_start: {
|
||||||
|
width: '100px',
|
||||||
formatter: function(row) {
|
formatter: function(row) {
|
||||||
return toSafeLocalDateStr(row.date_start)
|
return toSafeLocalDateStr(row.date_start)
|
||||||
}
|
}
|
||||||
@@ -81,6 +86,7 @@ export default {
|
|||||||
actions: {
|
actions: {
|
||||||
prop: 'id',
|
prop: 'id',
|
||||||
label: this.$t('common.Actions'),
|
label: this.$t('common.Actions'),
|
||||||
|
width: '160px',
|
||||||
formatter: ActionsFormatter,
|
formatter: ActionsFormatter,
|
||||||
formatterArgs: {
|
formatterArgs: {
|
||||||
hasEdit: false,
|
hasEdit: false,
|
||||||
|
Reference in New Issue
Block a user