车间能级提升-智能设备管理系统
朱桂飞
2025-02-12 3f476e9dc149c89df5fff1513a690ff05ec545c9
eims-ui/apps/web-antd/src/views/eims/equ/index.vue
@@ -20,6 +20,10 @@
// 左边部门用
const selectDeptId = ref<string[]>([]);
defineExpose({
  tableSelect
});
const formOptions: VbenFormProps = {
  commonConfig: {
    labelWidth: 80,
@@ -80,7 +84,7 @@
    // 远程排序
    remote: true,
    // 支持多字段排序 默认关闭
    multiple: true,
    multiple: true
  },
  id: 'eims-equ-index'
};
@@ -89,8 +93,8 @@
  formOptions,
  gridOptions,
  gridEvents: {
    sortChange: (sortParams) => vxeSortEvent(tableApi, sortParams),
  },
    sortChange: (sortParams) => vxeSortEvent(tableApi, sortParams)
  }
});
const [EquDrawer, equDrawerApi] = useVbenDrawer({
@@ -146,6 +150,10 @@
function handleDetail(record: Recordable<any>) {
  router.push(`/equ/detail/${record.equId}`);
}
// 选中数据
function tableSelect() {
  return tableApi.grid.getCheckboxRecords();
}
</script>
<template>