NEZ-597 perf: 列表页面排序细分设置

This commit is contained in:
@changcode
2021-05-07 19:10:28 +08:00
parent 73950be33c
commit fbf4de1c69
28 changed files with 413 additions and 132 deletions

View File

@@ -25,6 +25,7 @@
:prop="item.prop"
:resizable="true"
:sort-orders="['ascending', 'descending']"
:sortable="item.sortable"
:width="`${item.width}`"
class="data-column"
>
@@ -92,16 +93,19 @@ export default {
label: 'ID',
prop: 'id',
show: true,
width: 110
width: 110,
sortable:'custom'
}, {
label: this.$t('overall.name'),
prop: 'name',
show: true
show: true,
sortable:'custom'
}, {
label: this.$t('asset.manageIp'),
prop: 'manageIp',
show: true,
width: 120
width: 120,
sortable:'custom'
}, {
label: this.$t('overall.parent'),
prop: 'parent',
@@ -111,42 +115,50 @@ export default {
label: this.$t('overall.type'),
prop: 'type',
show: true,
width: 140
width: 140,
sortable:'custom'
}, {
label: this.$t('asset.state'),
prop: 'state',
show: true,
width: 80
width: 80,
sortable:'custom'
}, {
label: this.$t('overall.dc'),
prop: 'dc',
show: true,
width: 110
width: 110,
sortable:'custom'
}, {
label: this.$t('asset.cabinet'),
prop: 'cabinet',
show: true,
width: 110
width: 110,
sortable:'custom'
}, {
label: this.$t('asset.alertNum'),
prop: 'alertNum',
show: true,
width: 140
width: 140,
sortable:'custom'
}, {
label: this.$t('asset.endpointNum2'),
prop: 'endpointNum',
show: true,
width: 140
width: 140,
sortable:'custom'
}, {
label: this.$t('asset.brand'),
prop: 'brand',
show: true,
width: 120
width: 120,
sortable:'custom'
}, {
label: this.$t('asset.model'),
prop: 'model',
show: true,
width: 110
width: 110,
sortable:'custom'
}, {
label: 'SN',
prop: 'sn',