feat: 自定义列 保存在localStorage
This commit is contained in:
parent
521ba6af9c
commit
e6374a6a06
@ -52,6 +52,11 @@ setupVbenVxeTable({
|
|||||||
round: true,
|
round: true,
|
||||||
// 表格尺寸
|
// 表格尺寸
|
||||||
size: 'medium',
|
size: 'medium',
|
||||||
|
customConfig: {
|
||||||
|
// 表格右上角自定义列配置 是否保存到localStorage
|
||||||
|
// 必须存在id参数才能使用
|
||||||
|
storage: false,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -61,6 +61,7 @@ const gridOptions: VxeGridProps = {
|
|||||||
round: true,
|
round: true,
|
||||||
align: 'center',
|
align: 'center',
|
||||||
showOverflow: true,
|
showOverflow: true,
|
||||||
|
id: 'monitor-logininfo-index',
|
||||||
};
|
};
|
||||||
|
|
||||||
const checked = ref(false);
|
const checked = ref(false);
|
||||||
|
@ -42,6 +42,7 @@ const gridOptions: VxeGridProps = {
|
|||||||
round: true,
|
round: true,
|
||||||
align: 'center',
|
align: 'center',
|
||||||
showOverflow: true,
|
showOverflow: true,
|
||||||
|
id: 'monitor-online-index',
|
||||||
};
|
};
|
||||||
|
|
||||||
const [BasicTable, tableApi] = useVbenVxeGrid({ formOptions, gridOptions });
|
const [BasicTable, tableApi] = useVbenVxeGrid({ formOptions, gridOptions });
|
||||||
|
@ -90,6 +90,7 @@ const gridOptions: VxeGridProps<OperationLog> = {
|
|||||||
round: true,
|
round: true,
|
||||||
align: 'center',
|
align: 'center',
|
||||||
showOverflow: true,
|
showOverflow: true,
|
||||||
|
id: 'monitor-operlog-index',
|
||||||
};
|
};
|
||||||
|
|
||||||
const checked = ref(false);
|
const checked = ref(false);
|
||||||
|
@ -63,6 +63,7 @@ const gridOptions: VxeGridProps = {
|
|||||||
round: true,
|
round: true,
|
||||||
align: 'center',
|
align: 'center',
|
||||||
showOverflow: true,
|
showOverflow: true,
|
||||||
|
id: 'system-client-index',
|
||||||
};
|
};
|
||||||
|
|
||||||
const checked = ref(false);
|
const checked = ref(false);
|
||||||
|
@ -73,6 +73,7 @@ const gridOptions: VxeGridProps = {
|
|||||||
round: true,
|
round: true,
|
||||||
align: 'center',
|
align: 'center',
|
||||||
showOverflow: true,
|
showOverflow: true,
|
||||||
|
id: 'system-config-index',
|
||||||
};
|
};
|
||||||
|
|
||||||
const checked = ref(false);
|
const checked = ref(false);
|
||||||
|
@ -72,6 +72,7 @@ const gridOptions: VxeGridProps = {
|
|||||||
rowField: 'deptId',
|
rowField: 'deptId',
|
||||||
transform: false,
|
transform: false,
|
||||||
},
|
},
|
||||||
|
id: 'system-dept-index',
|
||||||
};
|
};
|
||||||
|
|
||||||
const [BasicTable, tableApi] = useVbenVxeGrid({
|
const [BasicTable, tableApi] = useVbenVxeGrid({
|
||||||
|
@ -82,6 +82,7 @@ const gridOptions: VxeGridProps = {
|
|||||||
round: true,
|
round: true,
|
||||||
align: 'center',
|
align: 'center',
|
||||||
showOverflow: true,
|
showOverflow: true,
|
||||||
|
id: 'system-dict-data-index',
|
||||||
};
|
};
|
||||||
|
|
||||||
const checked = ref(false);
|
const checked = ref(false);
|
||||||
|
@ -87,6 +87,7 @@ const gridOptions: VxeGridProps = {
|
|||||||
round: true,
|
round: true,
|
||||||
align: 'center',
|
align: 'center',
|
||||||
showOverflow: true,
|
showOverflow: true,
|
||||||
|
id: 'system-dict-type-index',
|
||||||
};
|
};
|
||||||
|
|
||||||
const checked = ref(false);
|
const checked = ref(false);
|
||||||
|
@ -69,6 +69,7 @@ const gridOptions: VxeGridProps = {
|
|||||||
rowField: 'menuId',
|
rowField: 'menuId',
|
||||||
transform: false,
|
transform: false,
|
||||||
},
|
},
|
||||||
|
id: 'system-menu-index',
|
||||||
};
|
};
|
||||||
|
|
||||||
const [BasicTable, tableApi] = useVbenVxeGrid({
|
const [BasicTable, tableApi] = useVbenVxeGrid({
|
||||||
|
@ -69,6 +69,7 @@ const gridOptions: VxeGridProps = {
|
|||||||
round: true,
|
round: true,
|
||||||
align: 'center',
|
align: 'center',
|
||||||
showOverflow: true,
|
showOverflow: true,
|
||||||
|
id: 'system-notice-index',
|
||||||
};
|
};
|
||||||
|
|
||||||
const checked = ref(false);
|
const checked = ref(false);
|
||||||
|
@ -72,6 +72,7 @@ const gridOptions: VxeGridProps = {
|
|||||||
round: true,
|
round: true,
|
||||||
align: 'center',
|
align: 'center',
|
||||||
showOverflow: true,
|
showOverflow: true,
|
||||||
|
id: 'system-oss-config-index',
|
||||||
};
|
};
|
||||||
|
|
||||||
const checked = ref(false);
|
const checked = ref(false);
|
||||||
|
@ -92,6 +92,7 @@ const gridOptions: VxeGridProps = {
|
|||||||
round: true,
|
round: true,
|
||||||
align: 'center',
|
align: 'center',
|
||||||
showOverflow: true,
|
showOverflow: true,
|
||||||
|
id: 'system-oss-index',
|
||||||
};
|
};
|
||||||
|
|
||||||
const checked = ref(false);
|
const checked = ref(false);
|
||||||
|
@ -86,6 +86,7 @@ const gridOptions: VxeGridProps = {
|
|||||||
round: true,
|
round: true,
|
||||||
align: 'center',
|
align: 'center',
|
||||||
showOverflow: true,
|
showOverflow: true,
|
||||||
|
id: 'system-post-index',
|
||||||
};
|
};
|
||||||
|
|
||||||
const checked = ref(false);
|
const checked = ref(false);
|
||||||
|
@ -62,6 +62,7 @@ const gridOptions: VxeGridProps = {
|
|||||||
round: true,
|
round: true,
|
||||||
align: 'center',
|
align: 'center',
|
||||||
showOverflow: true,
|
showOverflow: true,
|
||||||
|
id: 'system-role-assign-index',
|
||||||
};
|
};
|
||||||
|
|
||||||
const checked = ref(false);
|
const checked = ref(false);
|
||||||
|
@ -92,6 +92,7 @@ const gridOptions: VxeGridProps = {
|
|||||||
round: true,
|
round: true,
|
||||||
align: 'center',
|
align: 'center',
|
||||||
showOverflow: true,
|
showOverflow: true,
|
||||||
|
id: 'system-role-index',
|
||||||
};
|
};
|
||||||
|
|
||||||
const checked = ref(false);
|
const checked = ref(false);
|
||||||
|
@ -81,6 +81,7 @@ const gridOptions: VxeGridProps = {
|
|||||||
round: true,
|
round: true,
|
||||||
align: 'center',
|
align: 'center',
|
||||||
showOverflow: true,
|
showOverflow: true,
|
||||||
|
id: 'system-tenant-index',
|
||||||
};
|
};
|
||||||
|
|
||||||
const checked = ref(false);
|
const checked = ref(false);
|
||||||
|
@ -78,6 +78,7 @@ const gridOptions: VxeGridProps = {
|
|||||||
round: true,
|
round: true,
|
||||||
align: 'center',
|
align: 'center',
|
||||||
showOverflow: true,
|
showOverflow: true,
|
||||||
|
id: 'system-tenant-package-index',
|
||||||
};
|
};
|
||||||
|
|
||||||
const checked = ref(false);
|
const checked = ref(false);
|
||||||
|
@ -124,6 +124,7 @@ const gridOptions: VxeGridProps = {
|
|||||||
round: true,
|
round: true,
|
||||||
align: 'center',
|
align: 'center',
|
||||||
showOverflow: true,
|
showOverflow: true,
|
||||||
|
id: 'system-user-index',
|
||||||
};
|
};
|
||||||
const checked = ref(false);
|
const checked = ref(false);
|
||||||
const [BasicTable, tableApi] = useVbenVxeGrid({
|
const [BasicTable, tableApi] = useVbenVxeGrid({
|
||||||
|
@ -74,6 +74,7 @@ const gridOptions: VxeGridProps = {
|
|||||||
round: true,
|
round: true,
|
||||||
align: 'center',
|
align: 'center',
|
||||||
showOverflow: true,
|
showOverflow: true,
|
||||||
|
id: 'tool-gen-index',
|
||||||
};
|
};
|
||||||
|
|
||||||
const checked = ref(false);
|
const checked = ref(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user