feat: dept table resizable

pull/102/head
Angelo 2023-07-08 16:21:10 +08:00
parent 554f3e1dc8
commit b6dd7adf99
2 changed files with 4 additions and 3 deletions

View File

@ -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)

View File

@ -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: {