-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
686 additions
and
192 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,37 @@ | ||
import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel'; | ||
|
||
export type Params = BasicPageParams & { | ||
export type AccountParams = BasicPageParams & { | ||
account?: string; | ||
nickname?: string; | ||
}; | ||
|
||
export interface DemoListItem { | ||
export type DeptParams = { | ||
deptName?: string; | ||
status?: string; | ||
}; | ||
|
||
export interface AccountListItem { | ||
id: string; | ||
account: string; | ||
email: string; | ||
nickname: string; | ||
role: number; | ||
updateTime: string; | ||
createTime: string; | ||
remark: string; | ||
status: number; | ||
} | ||
|
||
export interface DeptListItem { | ||
id: string; | ||
orderNo: string; | ||
createTime: string; | ||
remark: string; | ||
status: number; | ||
} | ||
|
||
/** | ||
* @description: Request list return value | ||
*/ | ||
export type DemoListGetResultModel = BasicFetchResult<DemoListItem>; | ||
export type AccountListGetResultModel = BasicFetchResult<AccountListItem>; | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,19 @@ | ||
import { Params, DemoListGetResultModel } from './model/systemModel'; | ||
import { | ||
AccountParams, | ||
DeptListItem, | ||
DeptListGetResultModel, | ||
AccountListGetResultModel, | ||
} from './model/systemModel'; | ||
import { defHttp } from '/@/utils/http/axios'; | ||
|
||
enum Api { | ||
// The address does not exist | ||
AccountList = '/system/getAccountList', | ||
DeptList = '/system/getDeptList', | ||
} | ||
|
||
export const getAccountList = (params: Params) => | ||
defHttp.get<DemoListGetResultModel>({ url: Api.AccountList, params }); | ||
export const getAccountList = (params: AccountParams) => | ||
defHttp.get<AccountListGetResultModel>({ url: Api.AccountList, params }); | ||
|
||
export const getDeptList = (params?: DeptListItem) => | ||
defHttp.get<DeptListGetResultModel>({ 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { BasicArrow } from '/@/components/Basic'; | ||
|
||
export default () => { | ||
return (props: Recordable) => { | ||
if (!props.expandable) { | ||
return null; | ||
} | ||
return ( | ||
<BasicArrow | ||
class="mr-1" | ||
iconStyle="margin-top: -2px;" | ||
onClick={(e: Event) => { | ||
props.onExpand(props.record, e); | ||
}} | ||
expand={props.expanded} | ||
/> | ||
); | ||
}; | ||
}; |
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
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 |
---|---|---|
|
@@ -2,4 +2,8 @@ export default { | |
moduleName: '系统管理', | ||
|
||
account: '账号管理', | ||
|
||
password: '修改密码', | ||
|
||
dept: '部门管理', | ||
}; |
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
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
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.