| | |
| | | // 左边部门用 |
| | | const selectDeptId = ref<string[]>([]); |
| | | |
| | | defineExpose({ |
| | | tableSelect |
| | | }); |
| | | |
| | | const formOptions: VbenFormProps = { |
| | | commonConfig: { |
| | | labelWidth: 80, |
| | |
| | | // 远程排序 |
| | | remote: true, |
| | | // 支持多字段排序 默认关闭 |
| | | multiple: true, |
| | | multiple: true |
| | | }, |
| | | id: 'eims-equ-index' |
| | | }; |
| | |
| | | formOptions, |
| | | gridOptions, |
| | | gridEvents: { |
| | | sortChange: (sortParams) => vxeSortEvent(tableApi, sortParams), |
| | | }, |
| | | sortChange: (sortParams) => vxeSortEvent(tableApi, sortParams) |
| | | } |
| | | }); |
| | | |
| | | const [EquDrawer, equDrawerApi] = useVbenDrawer({ |
| | |
| | | function handleDetail(record: Recordable<any>) { |
| | | router.push(`/equ/detail/${record.equId}`); |
| | | } |
| | | // 选中数据 |
| | | function tableSelect() { |
| | | return tableApi.grid.getCheckboxRecords(); |
| | | } |
| | | </script> |
| | | |
| | | <template> |