summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author@changcode <[email protected]>2021-07-23 10:53:54 +0800
committer@changcode <[email protected]>2021-07-23 10:53:54 +0800
commit8dd6fa475dcdf0d19cb06adbb7bb00c345ac1079 (patch)
treefb49cd11cbc5473c00f8ee9402c920747d63e5b0
parentac236551ce5a3a33f1abcc31a195783c59745feb (diff)
fix: panel 面板图表错位样式调整,dc,endpoint列表样式调整v2.1-release
-rw-r--r--nezha-fronted/src/components/charts/chart-alert-list.vue9
-rw-r--r--nezha-fronted/src/components/common/table/settings/dcTable.vue6
-rw-r--r--nezha-fronted/src/components/common/table/settings/endpointTable.vue6
3 files changed, 11 insertions, 10 deletions
diff --git a/nezha-fronted/src/components/charts/chart-alert-list.vue b/nezha-fronted/src/components/charts/chart-alert-list.vue
index 78c00c29d..5c7607274 100644
--- a/nezha-fronted/src/components/charts/chart-alert-list.vue
+++ b/nezha-fronted/src/components/charts/chart-alert-list.vue
@@ -233,7 +233,7 @@ export default {
prop: 'id',
show: true,
width: 160
- },{
+ }, {
label: this.$t('alert.alertName'),
prop: 'alertRule',
show: true
@@ -251,7 +251,8 @@ export default {
}, {
label: this.$t('alert.summary'),
prop: 'summary',
- show: true
+ show: true,
+ minWidth: 200
}, {
label: this.$t('overall.remark'),
prop: 'description',
@@ -262,7 +263,7 @@ export default {
prop: 'state',
show: true,
width: 100
- },{
+ }, {
label: this.$t('alert.startAt'),
prop: 'startAt',
show: true,
@@ -272,7 +273,7 @@ export default {
prop: 'duration',
show: true,
width: 150
- },{
+ }, {
label: this.$t('alert.endAt'),
prop: 'endAt',
show: true,
diff --git a/nezha-fronted/src/components/common/table/settings/dcTable.vue b/nezha-fronted/src/components/common/table/settings/dcTable.vue
index 6387a7edc..2dcf7d78d 100644
--- a/nezha-fronted/src/components/common/table/settings/dcTable.vue
+++ b/nezha-fronted/src/components/common/table/settings/dcTable.vue
@@ -129,13 +129,13 @@ export default {
label: this.$t('config.dc.cabinetNum'),
prop: 'cabinetNum',
show: true,
- minWidth: 200,
+ minWidth: 90,
sortable: 'custom'
}, {
label: this.$t('config.dc.assets'),
prop: 'assetNum',
show: true,
- minWidth: 200,
+ minWidth: 90,
sortable: 'custom'
}, {
label: this.$t('config.dc.alert'),
@@ -161,7 +161,7 @@ export default {
label: this.$t('config.dc.state'),
prop: 'state',
show: true,
- minWidth: 200,
+ minWidth: 80,
sortable: 'custom'
}
]
diff --git a/nezha-fronted/src/components/common/table/settings/endpointTable.vue b/nezha-fronted/src/components/common/table/settings/endpointTable.vue
index 3895ece7c..c2da5f1db 100644
--- a/nezha-fronted/src/components/common/table/settings/endpointTable.vue
+++ b/nezha-fronted/src/components/common/table/settings/endpointTable.vue
@@ -153,14 +153,14 @@ export default {
label: this.$t('project.project.projectName'),
prop: 'project',
show: true,
- minWidth: 200,
+ minWidth: 100,
sortable: 'custom'
},
{
label: this.$t('project.endpoint.asset'),
prop: 'asset',
show: true,
- minWidth: 200,
+ minWidth: 90,
sortable: 'custom'
},
{
@@ -183,7 +183,7 @@ export default {
label: this.$t('project.endpoint.state'),
prop: 'state',
show: true,
- minWidth: 200,
+ minWidth: 90,
sortable: 'custom'
}
// {