mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 19:09:19 +08:00
feat: 新增超管公司权限分配功能
- 新增 CompanyPermissionDrawer 组件(公司权限分配抽屉) - 新增 company-permission API(getCompanyPermissionIds / batchUpdateCompanyPermissions) - 公司管理页面:操作列新增「权限」按钮 - 公司管理页面:菜单和权限按钮并行
This commit is contained in:
@@ -16,6 +16,7 @@ import {
|
||||
getCompanyPageApi,
|
||||
} from '#/api/organization/company';
|
||||
import CompanyMenuDrawer from '#/components/CompanyMenuDrawer.vue';
|
||||
import CompanyPermissionDrawer from '#/components/CompanyPermissionDrawer.vue';
|
||||
|
||||
import CompanyFormModal from './components/CompanyFormModal.vue';
|
||||
|
||||
@@ -28,6 +29,7 @@ const PlusIcon = createIconifyIcon('lucide:plus');
|
||||
const loading = ref(false);
|
||||
const companyFormModalRef = ref();
|
||||
const companyMenuDrawerRef = ref();
|
||||
const companyPermissionDrawerRef = ref();
|
||||
|
||||
// 搜索表单
|
||||
const searchForm = ref({
|
||||
@@ -376,6 +378,9 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
||||
<Button size="small" type="primary" @click="handleMenuManage(row)">
|
||||
菜单
|
||||
</Button>
|
||||
<Button size="small" type="primary" ghost @click="handlePermissionManage(row)">
|
||||
权限
|
||||
</Button>
|
||||
<Popconfirm
|
||||
title="确定要删除这个公司吗?"
|
||||
@confirm="handleDelete(row)"
|
||||
@@ -391,5 +396,6 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
||||
|
||||
<!-- 公司菜单管理抽屉 -->
|
||||
<CompanyMenuDrawer ref="companyMenuDrawerRef" />
|
||||
<CompanyPermissionDrawer ref="companyPermissionDrawerRef" />
|
||||
</Page>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user