|
|
@@ -65,7 +65,21 @@ export class ServiceRegisterConfigComponent implements AfterViewInit {
|
|
65
|
65
|
|
|
66
|
66
|
// 列定义 - 使用现有列配置
|
|
67
|
67
|
columns: [
|
|
68
|
|
- { title: 'ID', field: 'id', sorter: 'number', headerFilter: 'input', width: 220 },
|
|
|
68
|
+
|
|
|
69
|
+ { title: 'ID', field: 'id', sorter: 'number', headerFilter: 'input', width: 220 ,
|
|
|
70
|
+ headerMenu: [
|
|
|
71
|
+ {
|
|
|
72
|
+ label: "<i class='fa fa-filter'></i> 切换筛选",
|
|
|
73
|
+ action: (column:any) => {
|
|
|
74
|
+ const headerFilterEl = column.getElement().querySelector('.tabulator-header-filter');
|
|
|
75
|
+ if (headerFilterEl) {
|
|
|
76
|
+ const isHidden = headerFilterEl.style.display === 'none';
|
|
|
77
|
+ headerFilterEl.style.display = isHidden ? '' : 'none';
|
|
|
78
|
+ }
|
|
|
79
|
+ }
|
|
|
80
|
+ }
|
|
|
81
|
+ ]
|
|
|
82
|
+ },
|
|
69
|
83
|
{ title: '配置名称', field: 'configName', sorter: 'string', headerFilter: 'input', headerFilterFunc: 'like',width: 110 },
|
|
70
|
84
|
{ title: '字段名', field: 'fieldName', sorter: 'string', headerFilter: 'input', headerFilterFunc: 'like' ,width: 130},
|
|
71
|
85
|
{ title: '字段类型', field: 'fieldType', sorter: 'string', headerFilter: 'input',width: 120, headerFilterParams: { values: ['string', 'number', 'boolean', 'array', 'object'] } },
|
|
|
@@ -215,7 +229,7 @@ export class ServiceRegisterConfigComponent implements AfterViewInit {
|
|
215
|
229
|
// 表格样式
|
|
216
|
230
|
layout: 'fitColumns',
|
|
217
|
231
|
responsiveLayout: 'collapse',
|
|
218
|
|
- height: '800px',
|
|
|
232
|
+ //height: '800px',
|
|
219
|
233
|
|
|
220
|
234
|
// 初始加载
|
|
221
|
235
|
ajaxInitialLoad: true,
|