This repository has been archived by the owner on Oct 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from Jzow/master
Add a new API to fix known errors
- Loading branch information
Showing
32 changed files
with
948 additions
and
8,671 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,25 @@ | ||
<template> | ||
<ConfigProvider :locale="getAntdLocale"> | ||
<ConfigProvider :locale="getAntdLocale" :theme="isDark ? darkTheme : {}"> | ||
<AppProvider> | ||
<RouterView /> | ||
</AppProvider> | ||
</ConfigProvider> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import { ConfigProvider } from 'ant-design-vue'; | ||
import { AppProvider } from '@/components/Application'; | ||
import { useTitle } from '@/hooks/web/useTitle'; | ||
import { useLocale } from '@/locales/useLocale'; | ||
import 'dayjs/locale/zh-cn'; | ||
import { ConfigProvider } from 'ant-design-vue'; | ||
import { AppProvider } from '@/components/Application'; | ||
import { useTitle } from '@/hooks/web/useTitle'; | ||
import { useLocale } from '@/locales/useLocale'; | ||
// support Multi-language | ||
const { getAntdLocale } = useLocale(); | ||
import 'dayjs/locale/zh-cn'; | ||
import { useDarkModeTheme } from '@/hooks/setting/useDarkModeTheme'; | ||
// Listening to page changes and dynamically changing site titles | ||
useTitle(); | ||
// support Multi-language | ||
const { getAntdLocale } = useLocale(); | ||
const { isDark, darkTheme } = useDarkModeTheme(); | ||
// Listening to page changes and dynamically changing site titles | ||
useTitle(); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { | ||
DeptListItem, | ||
GetDeptInfoModel, | ||
} from './model/dpetModel'; | ||
|
||
import { defHttp } from '/@/utils/http/axios'; | ||
import {BaseDataResp} from "@/api/model/baseModel"; | ||
|
||
enum Api { | ||
DeptList = '/dept/userDeptRel', | ||
} | ||
|
||
export const getDeptList = (params?: DeptListItem) => | ||
defHttp.get<BaseDataResp<GetDeptInfoModel>>({ url: Api.DeptList, params }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
import { defHttp } from '/@/utils/http/axios'; | ||
import { getMenuListResultModel } from './model/menuModel'; | ||
import {BaseDataResp} from "@/api/model/baseModel"; | ||
import {MenuListResp} from "@/api/sys/model/menuModel"; | ||
|
||
enum Api { | ||
GetMenuList = '/getMenuList', | ||
GetMenuList = '/sysRole/menu', | ||
} | ||
|
||
/** | ||
* @description: Get user menu based on id | ||
*/ | ||
|
||
export const getMenuList = () => { | ||
return defHttp.get<getMenuListResultModel>({ url: Api.GetMenuList }); | ||
return defHttp.get<BaseDataResp<MenuListResp>>({ url: Api.GetMenuList }); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import {BasicFetchResult} from "@/api/model/baseModel"; | ||
|
||
export interface DeptListItem { | ||
organizationName: string; | ||
leader: string; | ||
} | ||
|
||
export interface GetDeptInfoModel { | ||
// 机构id | ||
id: string | number; | ||
// 机构编号 | ||
deptNumber: string; | ||
// 机构名称 | ||
deptName: string; | ||
// 备注 | ||
remark: string; | ||
// 父级部门id | ||
parentId: string; | ||
// 排序 | ||
sort: number; | ||
} | ||
|
||
|
||
export type DeptListGetResultModel = BasicFetchResult<DeptListItem>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.