fix: 修复已知Issues

修复审计员权限无法打开用户界面的问题
修复英文状态下基础列表宽度问题
修复收藏节点无法右键的问题
修复Firefox无法打开系统用户详情的问题
This commit is contained in:
OrangeM21
2020-07-06 17:49:28 +08:00
parent 7e0f53e403
commit 3e32eae8f3
4 changed files with 19 additions and 7 deletions

View File

@@ -164,9 +164,14 @@ export default {
$('body').bind('mousedown', this.onBodyMouseDown)
},
onRightClick: function(event, treeId, treeNode) {
console.log(treeNode)
if (!this.setting.showMenu) {
return
}
// 屏蔽收藏资产
if (treeNode.id === '-12') {
return
}
if (!treeNode && event.target.tagName.toLowerCase() !== 'button' && $(event.target).parents('a').length === 0) {
this.zTree.cancelSelectedNode()
this.showRMenu('root', event.clientX, event.clientY)

View File

@@ -7,9 +7,9 @@ const PERM_SUPER = 0b10000000
const PERM_NONE = 0b00000000
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_AUDITOR = PERM_AUDIT
const ORG_AUDITOR = PERM_AUDIT | PERM_USE
const USER = PERM_USE
const ANON = PERM_NONE

View File

@@ -14,6 +14,7 @@
import DetailCard from '@/components/DetailCard'
import AutoPushCard from './AutoPushCard'
import RelationCard from '@/components/RelationCard/index'
import { toSafeLocalDateStr } from '@/utils/common'
export default {
name: 'Detail',
@@ -110,7 +111,7 @@ export default {
},
{
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'),

View File

@@ -51,22 +51,27 @@ export default {
},
command_amount: {
label: this.$t('sessions.command'),
width: '60px'
width: '100px'
},
system_user: {
showOverflowTooltip: true
},
login_from: {
label: this.$t('sessions.loginFrom'),
width: '110px'
width: '120px',
showOverflowTooltip: true
},
remote_addr: {
width: '130px'
width: '120px'
},
protocol: {
label: this.$t('sessions.protocol'),
width: '60px',
width: '80px',
sortable: false,
formatter: null
},
date_start: {
width: '100px',
formatter: function(row) {
return toSafeLocalDateStr(row.date_start)
}
@@ -81,6 +86,7 @@ export default {
actions: {
prop: 'id',
label: this.$t('common.Actions'),
width: '160px',
formatter: ActionsFormatter,
formatterArgs: {
hasEdit: false,