NEZ-771 fix: 修复图表错位问题
This commit is contained in:
@@ -301,6 +301,9 @@
|
|||||||
.el-table__body-wrapper {
|
.el-table__body-wrapper {
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
.el-table__fixed-body-wrapper {
|
||||||
|
top: 42px !important;
|
||||||
|
}
|
||||||
.el-table__body-wrapper, .el-table__fixed-body-wrapper {
|
.el-table__body-wrapper, .el-table__fixed-body-wrapper {
|
||||||
box-shadow: 1px 0 $--right-box-border-color;
|
box-shadow: 1px 0 $--right-box-border-color;
|
||||||
|
|
||||||
|
|||||||
@@ -1,17 +0,0 @@
|
|||||||
export default {
|
|
||||||
data () {
|
|
||||||
return {
|
|
||||||
isEdit: false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
mounted () {
|
|
||||||
if (this.isEdit) {
|
|
||||||
window.onbeforeunload = function () {
|
|
||||||
return window.confirm('还没有完成,确认退出吗?')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
beforeDestroy () {
|
|
||||||
window.onbeforeunload = null
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -99,36 +99,44 @@ export default {
|
|||||||
label: this.$t('alert.alertName'),
|
label: this.$t('alert.alertName'),
|
||||||
prop: 'name',
|
prop: 'name',
|
||||||
show: true,
|
show: true,
|
||||||
|
minWidth: 200,
|
||||||
sortable: 'custom'
|
sortable: 'custom'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: this.$t('alert.config.expr'),
|
label: this.$t('alert.config.expr'),
|
||||||
prop: 'expr',
|
prop: 'expr',
|
||||||
|
minWidth: 200,
|
||||||
show: true
|
show: true
|
||||||
}, {
|
}, {
|
||||||
label: this.$t('alert.config.operator'),
|
label: this.$t('alert.config.operator'),
|
||||||
prop: 'operator',
|
prop: 'operator',
|
||||||
|
minWidth: 100,
|
||||||
show: true
|
show: true
|
||||||
}, {
|
}, {
|
||||||
label: this.$t('alert.config.threshold'),
|
label: this.$t('alert.config.threshold'),
|
||||||
prop: 'threshold',
|
prop: 'threshold',
|
||||||
|
minWidth: 100,
|
||||||
show: true
|
show: true
|
||||||
}, {
|
}, {
|
||||||
label: this.$t('alert.config.for'),
|
label: this.$t('alert.config.for'),
|
||||||
prop: 'last',
|
prop: 'last',
|
||||||
|
minWidth: 100,
|
||||||
show: true
|
show: true
|
||||||
}, {
|
}, {
|
||||||
label: this.$t('alert.severity'),
|
label: this.$t('alert.severity'),
|
||||||
prop: 'severity',
|
prop: 'severity',
|
||||||
show: true,
|
show: true,
|
||||||
|
minWidth: 100,
|
||||||
sortable: 'custom'
|
sortable: 'custom'
|
||||||
}, {
|
}, {
|
||||||
label: this.$t('alert.summary'),
|
label: this.$t('alert.summary'),
|
||||||
prop: 'summary',
|
prop: 'summary',
|
||||||
|
minWidth: 200,
|
||||||
show: true
|
show: true
|
||||||
}, {
|
}, {
|
||||||
label: this.$t('overall.remark'),
|
label: this.$t('overall.remark'),
|
||||||
prop: 'description',
|
prop: 'description',
|
||||||
|
minWidth: 200,
|
||||||
show: true
|
show: true
|
||||||
}, {
|
}, {
|
||||||
label: this.$t('alert.alert'),
|
label: this.$t('alert.alert'),
|
||||||
|
|||||||
@@ -135,6 +135,7 @@ export default {
|
|||||||
label: this.$t('alert.silence.matchers'),
|
label: this.$t('alert.silence.matchers'),
|
||||||
prop: 'matchers',
|
prop: 'matchers',
|
||||||
show: true,
|
show: true,
|
||||||
|
minWidth: 200,
|
||||||
sortable: 'custom'
|
sortable: 'custom'
|
||||||
}, {
|
}, {
|
||||||
label: this.$t('alert.silence.startTime'),
|
label: this.$t('alert.silence.startTime'),
|
||||||
|
|||||||
@@ -101,6 +101,7 @@ export default {
|
|||||||
label: this.$t('config.assetLabel.name'),
|
label: this.$t('config.assetLabel.name'),
|
||||||
prop: 'name',
|
prop: 'name',
|
||||||
show: true,
|
show: true,
|
||||||
|
minWidth: 250,
|
||||||
sortable: 'custom'
|
sortable: 'custom'
|
||||||
}, {
|
}, {
|
||||||
label: this.$t('config.assetLabel.key'),
|
label: this.$t('config.assetLabel.key'),
|
||||||
@@ -132,7 +133,8 @@ export default {
|
|||||||
}, {
|
}, {
|
||||||
label: this.$t('config.assetLabel.params'),
|
label: this.$t('config.assetLabel.params'),
|
||||||
prop: 'param',
|
prop: 'param',
|
||||||
show: false
|
show: false,
|
||||||
|
minWidth: 200
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -91,6 +91,7 @@ export default {
|
|||||||
label: this.$t('config.agent.dataCenter'),
|
label: this.$t('config.agent.dataCenter'),
|
||||||
prop: 'dc',
|
prop: 'dc',
|
||||||
show: true,
|
show: true,
|
||||||
|
minWidth: 200,
|
||||||
sortable: 'custom'
|
sortable: 'custom'
|
||||||
}, {
|
}, {
|
||||||
label: this.$t('config.agent.host'),
|
label: this.$t('config.agent.host'),
|
||||||
@@ -109,6 +110,7 @@ export default {
|
|||||||
label: this.$t('asset.state'),
|
label: this.$t('asset.state'),
|
||||||
prop: 'status',
|
prop: 'status',
|
||||||
show: true,
|
show: true,
|
||||||
|
minWidth: 100,
|
||||||
sortable: 'custom'
|
sortable: 'custom'
|
||||||
}, {
|
}, {
|
||||||
label: this.$t('config.agent.checkTime'),
|
label: this.$t('config.agent.checkTime'),
|
||||||
|
|||||||
@@ -86,21 +86,25 @@ export default {
|
|||||||
label: this.$t('config.exprTemp.name'),
|
label: this.$t('config.exprTemp.name'),
|
||||||
prop: 'name',
|
prop: 'name',
|
||||||
show: true,
|
show: true,
|
||||||
|
minWidth: 200,
|
||||||
sortable: 'custom'
|
sortable: 'custom'
|
||||||
}, {
|
}, {
|
||||||
label: this.$t('config.exprTemp.type'),
|
label: this.$t('config.exprTemp.type'),
|
||||||
prop: 'type',
|
prop: 'type',
|
||||||
show: true,
|
show: true,
|
||||||
|
minWidth: 200,
|
||||||
sortable: 'custom'
|
sortable: 'custom'
|
||||||
}, {
|
}, {
|
||||||
label: this.$t('config.exprTemp.varType'),
|
label: this.$t('config.exprTemp.varType'),
|
||||||
prop: 'varType',
|
prop: 'varType',
|
||||||
show: true,
|
show: true,
|
||||||
|
minWidth: 200,
|
||||||
sortable: 'custom'
|
sortable: 'custom'
|
||||||
}, {
|
}, {
|
||||||
label: this.$t('overall.remark'),
|
label: this.$t('overall.remark'),
|
||||||
prop: 'remark',
|
prop: 'remark',
|
||||||
show: true
|
show: true,
|
||||||
|
minWidth: 200,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -108,6 +108,7 @@ export default {
|
|||||||
label: this.$t('config.mib.credential.type'),
|
label: this.$t('config.mib.credential.type'),
|
||||||
prop: 'type',
|
prop: 'type',
|
||||||
show: true,
|
show: true,
|
||||||
|
minWidth: 200,
|
||||||
sortable: 'custom'
|
sortable: 'custom'
|
||||||
}, {
|
}, {
|
||||||
label: this.$t('config.mib.credential.port'),
|
label: this.$t('config.mib.credential.port'),
|
||||||
@@ -116,6 +117,7 @@ export default {
|
|||||||
}, {
|
}, {
|
||||||
label: this.$t('overall.remark'),
|
label: this.$t('overall.remark'),
|
||||||
prop: 'remark',
|
prop: 'remark',
|
||||||
|
minWidth: 200,
|
||||||
show: true
|
show: true
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -119,6 +119,7 @@ export default {
|
|||||||
label: this.$t('overall.name'),
|
label: this.$t('overall.name'),
|
||||||
prop: 'name',
|
prop: 'name',
|
||||||
show: true,
|
show: true,
|
||||||
|
minWidth: 200,
|
||||||
sortable: 'custom'
|
sortable: 'custom'
|
||||||
}, {
|
}, {
|
||||||
label: this.$t('asset.location'),
|
label: this.$t('asset.location'),
|
||||||
@@ -128,11 +129,13 @@ export default {
|
|||||||
label: this.$t('config.dc.cabinetNum'),
|
label: this.$t('config.dc.cabinetNum'),
|
||||||
prop: 'cabinetNum',
|
prop: 'cabinetNum',
|
||||||
show: true,
|
show: true,
|
||||||
|
minWidth: 200,
|
||||||
sortable: 'custom'
|
sortable: 'custom'
|
||||||
}, {
|
}, {
|
||||||
label: this.$t('config.dc.assets'),
|
label: this.$t('config.dc.assets'),
|
||||||
prop: 'assetNum',
|
prop: 'assetNum',
|
||||||
show: true,
|
show: true,
|
||||||
|
minWidth: 200,
|
||||||
sortable: 'custom'
|
sortable: 'custom'
|
||||||
}, {
|
}, {
|
||||||
label: this.$t('config.dc.alert'),
|
label: this.$t('config.dc.alert'),
|
||||||
@@ -158,6 +161,7 @@ export default {
|
|||||||
label: this.$t('config.dc.state'),
|
label: this.$t('config.dc.state'),
|
||||||
prop: 'state',
|
prop: 'state',
|
||||||
show: true,
|
show: true,
|
||||||
|
minWidth: 200,
|
||||||
sortable: 'custom'
|
sortable: 'custom'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -143,6 +143,7 @@ export default {
|
|||||||
label: this.$t('project.endpoint.name'),
|
label: this.$t('project.endpoint.name'),
|
||||||
prop: 'name',
|
prop: 'name',
|
||||||
show: true,
|
show: true,
|
||||||
|
minWidth: 200,
|
||||||
sortable: 'custom'
|
sortable: 'custom'
|
||||||
}, {
|
}, {
|
||||||
label: this.$t('project.module.type'),
|
label: this.$t('project.module.type'),
|
||||||
@@ -152,12 +153,14 @@ export default {
|
|||||||
label: this.$t('project.project.projectName'),
|
label: this.$t('project.project.projectName'),
|
||||||
prop: 'project',
|
prop: 'project',
|
||||||
show: true,
|
show: true,
|
||||||
|
minWidth: 200,
|
||||||
sortable: 'custom'
|
sortable: 'custom'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: this.$t('project.endpoint.asset'),
|
label: this.$t('project.endpoint.asset'),
|
||||||
prop: 'asset',
|
prop: 'asset',
|
||||||
show: true,
|
show: true,
|
||||||
|
minWidth: 200,
|
||||||
sortable: 'custom'
|
sortable: 'custom'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -180,6 +183,7 @@ export default {
|
|||||||
label: this.$t('project.endpoint.state'),
|
label: this.$t('project.endpoint.state'),
|
||||||
prop: 'state',
|
prop: 'state',
|
||||||
show: true,
|
show: true,
|
||||||
|
minWidth: 200,
|
||||||
sortable: 'custom'
|
sortable: 'custom'
|
||||||
}
|
}
|
||||||
// {
|
// {
|
||||||
|
|||||||
@@ -113,6 +113,7 @@ export default {
|
|||||||
}, {
|
}, {
|
||||||
label: this.$t('overall.remark'),
|
label: this.$t('overall.remark'),
|
||||||
prop: 'remark',
|
prop: 'remark',
|
||||||
|
minWidth: 200,
|
||||||
show: true
|
show: true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -127,15 +127,18 @@ export default {
|
|||||||
}, {
|
}, {
|
||||||
label: this.$t('config.terminallog.SessionID'),
|
label: this.$t('config.terminallog.SessionID'),
|
||||||
prop: 'uuid',
|
prop: 'uuid',
|
||||||
|
minWidth: 200,
|
||||||
show: true
|
show: true
|
||||||
}, {
|
}, {
|
||||||
label: this.$t('config.terminallog.username'),
|
label: this.$t('config.terminallog.username'),
|
||||||
prop: 'username',
|
prop: 'username',
|
||||||
|
minWidth: 200,
|
||||||
show: true
|
show: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: this.$t('config.terminallog.source'),
|
label: this.$t('config.terminallog.source'),
|
||||||
prop: 'remoteAddr',
|
prop: 'remoteAddr',
|
||||||
|
minWidth: 200,
|
||||||
show: true
|
show: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -151,6 +154,7 @@ export default {
|
|||||||
{
|
{
|
||||||
label: this.$t('config.terminallog.startTime'),
|
label: this.$t('config.terminallog.startTime'),
|
||||||
prop: 'startTime',
|
prop: 'startTime',
|
||||||
|
minWidth: 200,
|
||||||
show: true
|
show: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -137,6 +137,7 @@ export default {
|
|||||||
}, {
|
}, {
|
||||||
label: this.$t('config.system.apiKey.creatAt'),
|
label: this.$t('config.system.apiKey.creatAt'),
|
||||||
prop: 'createAt',
|
prop: 'createAt',
|
||||||
|
minWidth: 80,
|
||||||
show: true
|
show: true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user