mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-26 06:58:53 +00:00
perf: 使用 mini 接口 (#945)
* perf: 使用 mini 接口 * perf: 资产列表默认展示平台和协议 * perf: 添加排序 Co-authored-by: 吴小白 <296015668@qq.com>
This commit is contained in:
@@ -76,7 +76,7 @@ export default {
|
|||||||
select2Config: select2Config,
|
select2Config: select2Config,
|
||||||
dialogSelect2Config: select2Config,
|
dialogSelect2Config: select2Config,
|
||||||
tableConfig: {
|
tableConfig: {
|
||||||
url: '/api/v1/assets/assets/',
|
url: '/api/v1/assets/assets/?fields_size=mini',
|
||||||
hasTree: true,
|
hasTree: true,
|
||||||
canSelect: this.canSelect,
|
canSelect: this.canSelect,
|
||||||
columns: [
|
columns: [
|
||||||
|
@@ -112,7 +112,7 @@ export default {
|
|||||||
],
|
],
|
||||||
columnsShow: {
|
columnsShow: {
|
||||||
min: ['hostname', 'ip', 'actions'],
|
min: ['hostname', 'ip', 'actions'],
|
||||||
default: ['hostname', 'ip', 'hardware_info', 'connectivity', 'actions']
|
default: ['hostname', 'ip', 'platform', 'protocols', 'hardware_info', 'connectivity', 'actions']
|
||||||
},
|
},
|
||||||
columnsMeta: {
|
columnsMeta: {
|
||||||
hostname: {
|
hostname: {
|
||||||
@@ -120,7 +120,11 @@ export default {
|
|||||||
formatterArgs: {
|
formatterArgs: {
|
||||||
route: 'AssetDetail'
|
route: 'AssetDetail'
|
||||||
},
|
},
|
||||||
showOverflowTooltip: true
|
showOverflowTooltip: true,
|
||||||
|
sortable: true
|
||||||
|
},
|
||||||
|
platform: {
|
||||||
|
sortable: true
|
||||||
},
|
},
|
||||||
protocols: {
|
protocols: {
|
||||||
formatter: function(row) {
|
formatter: function(row) {
|
||||||
|
Reference in New Issue
Block a user