feat: 新增代码生成页面

This commit is contained in:
xlsea
2024-09-04 15:50:09 +08:00
parent c4d959d133
commit 824974e904
22 changed files with 1272 additions and 76 deletions

View File

@ -35,16 +35,15 @@ const btnData = ref<Api.System.MenuList>([]);
const getMeunTree = async () => {
startLoading();
const { data, error } = await fetchGetMenuList();
if (!error) {
treeData.value = [
{
menuId: 0,
menuName: '根目录',
icon: 'material-symbols:home-outline-rounded',
children: handleMenuTree(data, 'menuId')
}
] as Api.System.Menu[];
}
if (error) return;
treeData.value = [
{
menuId: 0,
menuName: '根目录',
icon: 'material-symbols:home-outline-rounded',
children: handleMenuTree(data, 'menuId')
}
] as Api.System.Menu[];
endLoading();
};

View File

@ -252,8 +252,8 @@ const FormTipComponent = defineComponent({
}
});
const enableStatusOptions = ref<Array<CommonType.Option>>([]);
const showHideOptions = ref<Array<CommonType.Option>>([]);
const enableStatusOptions = ref<CommonType.Option[]>([]);
const showHideOptions = ref<CommonType.Option[]>([]);
async function initDictData() {
const { getDictOptions } = useDict();