mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 23:09:19 +08:00
wip: 公司菜单管理
This commit is contained in:
@@ -15,6 +15,7 @@ import {
|
||||
} from '#/api/organization/company';
|
||||
import type { PageQueryDTO } from '#/types/common';
|
||||
import CompanyFormModal from './components/CompanyFormModal.vue';
|
||||
import CompanyMenuDrawer from '#/components/CompanyMenuDrawer.vue';
|
||||
|
||||
// 创建图标组件
|
||||
const PlusIcon = createIconifyIcon('lucide:plus');
|
||||
@@ -24,6 +25,7 @@ defineOptions({ name: 'CompanyManagement' });
|
||||
// 响应式数据
|
||||
const loading = ref(false);
|
||||
const companyFormModalRef = ref();
|
||||
const companyMenuDrawerRef = ref();
|
||||
|
||||
// 搜索表单
|
||||
const searchForm = ref({
|
||||
@@ -261,6 +263,11 @@ function handleModalSuccess() {
|
||||
refreshTable();
|
||||
}
|
||||
|
||||
// 处理菜单管理
|
||||
function handleMenuManage(record: any) {
|
||||
companyMenuDrawerRef.value?.open(record);
|
||||
}
|
||||
|
||||
// 创建 VbenVxeGrid 实例
|
||||
const [Grid, gridApi] = useVbenVxeGrid({
|
||||
gridOptions,
|
||||
@@ -332,6 +339,9 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
||||
<Button size="small" @click="handleEdit(row)">
|
||||
编辑
|
||||
</Button>
|
||||
<Button size="small" type="primary" @click="handleMenuManage(row)">
|
||||
菜单
|
||||
</Button>
|
||||
<Button size="small" danger @click="handleDelete(row)">
|
||||
删除
|
||||
</Button>
|
||||
@@ -344,5 +354,8 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
||||
ref="companyFormModalRef"
|
||||
@success="handleModalSuccess"
|
||||
/>
|
||||
|
||||
<!-- 公司菜单管理抽屉 -->
|
||||
<CompanyMenuDrawer ref="companyMenuDrawerRef" />
|
||||
</Page>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user