NEZ-665 fix: 列宽调整
This commit is contained in:
@@ -168,7 +168,7 @@ export default {
|
|||||||
label: 'ID',
|
label: 'ID',
|
||||||
prop: 'id',
|
prop: 'id',
|
||||||
show: true,
|
show: true,
|
||||||
width: 80,
|
width: 160,
|
||||||
sortable: 'custom'
|
sortable: 'custom'
|
||||||
}, {
|
}, {
|
||||||
label: this.$t('alert.rule'),
|
label: this.$t('alert.rule'),
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
ref="dataTable"
|
ref="dataTable"
|
||||||
:data="tableData"
|
:data="tableData"
|
||||||
:height="height"
|
:height="height"
|
||||||
|
tooltip-effect="light"
|
||||||
border
|
border
|
||||||
@header-dragend="dragend"
|
@header-dragend="dragend"
|
||||||
@sort-change="tableDataSort"
|
@sort-change="tableDataSort"
|
||||||
@@ -27,6 +28,7 @@
|
|||||||
:sort-orders="['ascending', 'descending']"
|
:sort-orders="['ascending', 'descending']"
|
||||||
:sortable="item.sortable"
|
:sortable="item.sortable"
|
||||||
:width="`${item.width}`"
|
:width="`${item.width}`"
|
||||||
|
:show-overflow-tooltip="item.prop === 'description'"
|
||||||
class="data-column"
|
class="data-column"
|
||||||
>
|
>
|
||||||
<template slot="header">
|
<template slot="header">
|
||||||
|
|||||||
@@ -95,34 +95,38 @@ export default {
|
|||||||
prop: 'id',
|
prop: 'id',
|
||||||
show: true,
|
show: true,
|
||||||
width: 80,
|
width: 80,
|
||||||
sortable:'custom'
|
sortable: 'custom'
|
||||||
}, {
|
}, {
|
||||||
label: this.$t('config.assetLabel.name'),
|
label: this.$t('config.assetLabel.name'),
|
||||||
prop: 'name',
|
prop: 'name',
|
||||||
show: true,
|
show: true,
|
||||||
width: 100,
|
sortable: 'custom'
|
||||||
sortable:'custom'
|
|
||||||
}, {
|
}, {
|
||||||
label: this.$t('config.assetLabel.key'),
|
label: this.$t('config.assetLabel.key'),
|
||||||
prop: 'metaKey',
|
prop: 'metaKey',
|
||||||
show: true,
|
show: true,
|
||||||
sortable:'custom'
|
width: 200,
|
||||||
|
sortable: 'custom'
|
||||||
}, {
|
}, {
|
||||||
label: this.$t('config.assetLabel.group'),
|
label: this.$t('config.assetLabel.group'),
|
||||||
prop: 'group',
|
prop: 'group',
|
||||||
show: true,
|
show: true,
|
||||||
sortable:'custom'
|
width: 200,
|
||||||
|
sortable: 'custom'
|
||||||
}, {
|
}, {
|
||||||
label: this.$t('config.assetLabel.search'),
|
label: this.$t('config.assetLabel.search'),
|
||||||
prop: 'search',
|
prop: 'search',
|
||||||
|
width: 120,
|
||||||
show: true
|
show: true
|
||||||
}, {
|
}, {
|
||||||
label: this.$t('config.assetLabel.display'),
|
label: this.$t('config.assetLabel.display'),
|
||||||
prop: 'display',
|
prop: 'display',
|
||||||
|
width: 120,
|
||||||
show: true
|
show: true
|
||||||
}, {
|
}, {
|
||||||
label: this.$t('config.assetLabel.type'),
|
label: this.$t('config.assetLabel.type'),
|
||||||
prop: 'type',
|
prop: 'type',
|
||||||
|
width: 150,
|
||||||
show: true
|
show: true
|
||||||
}, {
|
}, {
|
||||||
label: this.$t('config.assetLabel.params'),
|
label: this.$t('config.assetLabel.params'),
|
||||||
|
|||||||
@@ -95,24 +95,24 @@ export default {
|
|||||||
label: this.$t('config.model.name'),
|
label: this.$t('config.model.name'),
|
||||||
prop: 'name',
|
prop: 'name',
|
||||||
show: true,
|
show: true,
|
||||||
width: 450,
|
width: 350,
|
||||||
sortable: 'custom'
|
sortable: 'custom'
|
||||||
}, {
|
}, {
|
||||||
label: this.$t('config.model.brand'),
|
label: this.$t('config.model.brand'),
|
||||||
prop: 'brand',
|
prop: 'brand',
|
||||||
show: true,
|
show: true,
|
||||||
width: 160,
|
width: 200,
|
||||||
|
sortable: 'custom'
|
||||||
|
}, {
|
||||||
|
label: this.$t('config.model.assetNum'),
|
||||||
|
prop: 'assetNum',
|
||||||
|
show: true,
|
||||||
|
width: 120,
|
||||||
sortable: 'custom'
|
sortable: 'custom'
|
||||||
}, {
|
}, {
|
||||||
label: this.$t('config.model.remark'),
|
label: this.$t('config.model.remark'),
|
||||||
prop: 'remark',
|
prop: 'remark',
|
||||||
show: true
|
show: true
|
||||||
}, {
|
|
||||||
label: this.$t('config.model.assetNum'),
|
|
||||||
prop: 'assetNum',
|
|
||||||
show: true,
|
|
||||||
width: 200,
|
|
||||||
sortable: 'custom'
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -104,31 +104,31 @@ export default {
|
|||||||
label: this.$t('project.module.type'),
|
label: this.$t('project.module.type'),
|
||||||
prop: 'type',
|
prop: 'type',
|
||||||
show: false,
|
show: false,
|
||||||
width: 150
|
width: 200
|
||||||
}, {
|
}, {
|
||||||
label: this.$t('project.project.projectName'),
|
label: this.$t('project.project.projectName'),
|
||||||
prop: 'project',
|
prop: 'project',
|
||||||
show: true,
|
show: true,
|
||||||
width: 150,
|
width: 200,
|
||||||
sortable: 'custom'
|
sortable: 'custom'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: this.$t('project.endpoint.endpoint'),
|
label: this.$t('project.endpoint.endpoint'),
|
||||||
prop: 'endpointNum',
|
prop: 'endpointNum',
|
||||||
show: true,
|
show: true,
|
||||||
width: 150,
|
width: 200,
|
||||||
sortable: 'custom'
|
sortable: 'custom'
|
||||||
}, {
|
}, {
|
||||||
label: this.$t('project.module.alerts'),
|
label: this.$t('project.module.alerts'),
|
||||||
prop: 'alertNum',
|
prop: 'alertNum',
|
||||||
show: true,
|
show: true,
|
||||||
width: 150,
|
width: 200,
|
||||||
sortable: 'custom'
|
sortable: 'custom'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: this.$t('overall.remark'),
|
label: this.$t('overall.remark'),
|
||||||
prop: 'remark',
|
prop: 'remark',
|
||||||
show: false,
|
show: true,
|
||||||
minWidth: 150
|
minWidth: 150
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user