mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-09-17 10:56:39 +08:00
update
This commit is contained in:
parent
c7501c7f36
commit
793115e2e7
@ -38,7 +38,7 @@ public class GoodsController extends AdminBaseController {
|
||||
|
||||
@ApiOperation("分页查询 @author 胡克")
|
||||
@PostMapping("/goods/query")
|
||||
@PreAuthorize("@saAuth.checkPermission('goods:query ')")
|
||||
@PreAuthorize("@saAuth.checkPermission('goods:query')")
|
||||
public ResponseDTO<PageResult<GoodsVO>> query(@RequestBody @Valid GoodsQueryForm queryForm) {
|
||||
return goodsService.query(queryForm);
|
||||
}
|
||||
|
@ -11,11 +11,11 @@
|
||||
<div class="resursion-container">
|
||||
<!-- 顶部顶级菜单名称 -->
|
||||
<div class="top-menu">
|
||||
<span class="ant-menu">{{ props.selectedMenu?.menuName }}</span>
|
||||
<span class="ant-menu">{{ props.selectedMenu.menuName }}</span>
|
||||
</div>
|
||||
<!-- 次级菜单展示 -->
|
||||
<a-menu :selectedKeys="selectedKeys" :openKeys="openKeys" mode="inline">
|
||||
<template v-for="item in props.selectedMenu?.children" :key="item.menuId">
|
||||
<template v-for="item in props.selectedMenu.children" :key="item.menuId">
|
||||
<template v-if="item.visibleFlag">
|
||||
<template v-if="$lodash.isEmpty(item.children)">
|
||||
<a-menu-item :key="item.menuId.toString()" @click="turnToPage(item)">
|
||||
@ -60,14 +60,14 @@
|
||||
return [];
|
||||
}
|
||||
let menuParentIdListMap = useUserStore().getMenuParentIdListMap;
|
||||
return menuParentIdListMap?.get(currentName) || [];
|
||||
return menuParentIdListMap.get(currentName) || [];
|
||||
});
|
||||
|
||||
const openKeys = computed(() => {
|
||||
// // 仅展开当前页面
|
||||
// return parentMenuList.value.map((e) => e.name);
|
||||
// 展开所有
|
||||
let children = props.selectedMenu?.children;
|
||||
let children = props.selectedMenu.children;
|
||||
if (!children || _.isEmpty(children)) {
|
||||
return [];
|
||||
}
|
||||
|
@ -8,12 +8,12 @@
|
||||
* @Copyright 1024创新实验室 ( https://1024lab.net ),Since 2012
|
||||
-->
|
||||
<template>
|
||||
<a-sub-menu :key="props.menuInfo?.menuId.toString()">
|
||||
<a-sub-menu :key="props.menuInfo.menuId.toString()">
|
||||
<template #icon>
|
||||
<component :is="$antIcons[props.menuInfo?.icon]" />
|
||||
<component :is="$antIcons[props.menuInfo.icon]" />
|
||||
</template>
|
||||
<template #title>{{ props.menuInfo?.menuName }}</template>
|
||||
<template v-for="item in props.menuInfo?.children" :key="item.menuId">
|
||||
<template #title>{{ props.menuInfo.menuName }}</template>
|
||||
<template v-for="item in props.menuInfo.children" :key="item.menuId">
|
||||
<template v-if="item.visibleFlag">
|
||||
<template v-if="!item.children">
|
||||
<a-menu-item :key="item.menuId.toString()" @click="turnToPage(item)">
|
||||
|
@ -82,7 +82,7 @@ export const useRoleStore = defineStore({
|
||||
return;
|
||||
}
|
||||
// 选中父级
|
||||
let parentIndex = this.checkedData.findIndex((e) => parentModule?.menuId === e);
|
||||
let parentIndex = this.checkedData.findIndex((e) => parentModule.menuId === e);
|
||||
if (parentModule.menuId && parentIndex == -1) {
|
||||
this.addCheckedData(parentModule.menuId);
|
||||
}
|
||||
|
@ -240,7 +240,7 @@ export const useUserStore = defineStore({
|
||||
},
|
||||
// 清空缓存
|
||||
clearKeepAliveIncludes(val) {
|
||||
if (!val || !this.keepAliveIncludes?.includes(val)) {
|
||||
if (!val || !this.keepAliveIncludes.includes(val)) {
|
||||
this.keepAliveIncludes = [];
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user