|
@@ -2,7 +2,7 @@
|
|
import SvgIcon from '@/components/custom/svg-icon.vue';
|
|
import SvgIcon from '@/components/custom/svg-icon.vue';
|
|
import { useTable, useTableOperate, useTableScroll } from '@/hooks/common/table';
|
|
import { useTable, useTableOperate, useTableScroll } from '@/hooks/common/table';
|
|
import { $t } from '@/locales';
|
|
import { $t } from '@/locales';
|
|
-import { fetchDeleteMenu, fetchGetAllPages, fetchGetMenuList, getDicts } from '@/service/api';
|
|
|
|
|
|
+import { fetchDeleteMenu, fetchGetMenuList, getDicts } from '@/service/api';
|
|
import { useBoolean } from '@sa/hooks';
|
|
import { useBoolean } from '@sa/hooks';
|
|
import { Button, Popconfirm } from 'ant-design-vue';
|
|
import { Button, Popconfirm } from 'ant-design-vue';
|
|
import type { Ref } from 'vue';
|
|
import type { Ref } from 'vue';
|
|
@@ -156,14 +156,6 @@ function handleAddChildMenu(item: Api.SystemManage.Menu) {
|
|
|
|
|
|
const allPages = ref<string[]>([]);
|
|
const allPages = ref<string[]>([]);
|
|
|
|
|
|
-async function getAllPages() {
|
|
|
|
- const { data: pages } = await fetchGetAllPages();
|
|
|
|
- allPages.value = pages || [];
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-function init() {
|
|
|
|
- getAllPages();
|
|
|
|
-}
|
|
|
|
async function getOptions (){
|
|
async function getOptions (){
|
|
const res = await getDicts('sys_show_hide')
|
|
const res = await getDicts('sys_show_hide')
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
@@ -187,8 +179,6 @@ function selectDictLabel(datas:any, value:any) {
|
|
})
|
|
})
|
|
return actions.join('')
|
|
return actions.join('')
|
|
}
|
|
}
|
|
-// init
|
|
|
|
-init();
|
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<template>
|
|
<template>
|