feat: dept table resizable
parent
554f3e1dc8
commit
b6dd7adf99
|
@ -457,7 +457,7 @@ class LazyLoadFilter(FilterSet, metaclass=LazyLoadFilterSetMetaclass):
|
|||
for field in filter_params:
|
||||
self.form.cleaned_data.pop(field)
|
||||
self.form.cleaned_data.pop("parent", None)
|
||||
print(queryset, flush=True)
|
||||
# print(queryset, flush=True)
|
||||
if self.form.cleaned_data:
|
||||
self.queryset = queryset.model.objects.all()
|
||||
node_ids = next_layer_data(super().qs, queryset)
|
||||
|
|
|
@ -13,6 +13,7 @@ export const crudOptions = (vm) => {
|
|||
height: '100%', // 表格高度100%, 使用toolbar必须设置
|
||||
highlightCurrentRow: false,
|
||||
defaultExpandAll: true,
|
||||
resizable: true,
|
||||
treeConfig: {
|
||||
transform: true,
|
||||
rowField: 'id',
|
||||
|
@ -34,6 +35,7 @@ export const crudOptions = (vm) => {
|
|||
}
|
||||
},
|
||||
rowHandle: {
|
||||
fixed: 'right',
|
||||
width: 140,
|
||||
view: {
|
||||
thin: true,
|
||||
|
@ -61,7 +63,7 @@ export const crudOptions = (vm) => {
|
|||
// 或者直接传true,不显示title,不居中
|
||||
title: '序号',
|
||||
align: 'center',
|
||||
width: 100
|
||||
width: 70
|
||||
},
|
||||
|
||||
viewOptions: {
|
||||
|
@ -142,7 +144,6 @@ export const crudOptions = (vm) => {
|
|||
}
|
||||
}
|
||||
},
|
||||
width: 180,
|
||||
type: 'input',
|
||||
showOverflow: 'tooltip',
|
||||
form: {
|
||||
|
|
Loading…
Reference in New Issue