|
@@ -89,6 +89,9 @@ import type {
|
|
|
OperateLogQuery,
|
|
|
Organization,
|
|
|
OrganizationItem,
|
|
|
+ OrganizationListItem,
|
|
|
+ OrganizationListItemData,
|
|
|
+ OrganizationListParams,
|
|
|
OutdooForm,
|
|
|
PageParams,
|
|
|
ParameterVerification,
|
|
@@ -115,6 +118,7 @@ import type {
|
|
|
ProtocolStandardParamQuery,
|
|
|
RegionQuery,
|
|
|
RegionsPointsItem,
|
|
|
+ RolePermissions,
|
|
|
SerialNumberItem,
|
|
|
SerialNumberItemData,
|
|
|
SmartCtrlLogData,
|
|
@@ -205,6 +209,14 @@ export const getFindRolesByOrgIds = async (params: number[]) => {
|
|
|
return data;
|
|
|
};
|
|
|
|
|
|
+// 角色信息表
|
|
|
+export const addRolePermissions = async (params: RolePermissions) => {
|
|
|
+ await request(apiSys('/sysRole/addRolePermissions'), {
|
|
|
+ method: 'POST',
|
|
|
+ body: JSON.stringify(params),
|
|
|
+ });
|
|
|
+};
|
|
|
+
|
|
|
// 角色信息表
|
|
|
|
|
|
export const addCharacter = async (params: CharacterParams) => {
|
|
@@ -266,6 +278,22 @@ export const getSubOrgsByToken = async () => {
|
|
|
return data;
|
|
|
};
|
|
|
|
|
|
+export const getOrganizationList = async (params: OrganizationListParams) => {
|
|
|
+ const data = await request<OrganizationListItemData>(apiSys('/sysOrg/getPageList'), {
|
|
|
+ method: 'POST',
|
|
|
+ body: JSON.stringify(params),
|
|
|
+ });
|
|
|
+ return data;
|
|
|
+};
|
|
|
+
|
|
|
+export const getOrganizationAllList = async (params?: string) => {
|
|
|
+ const data = await request<OrganizationListItem[]>(apiSys('/sysOrg/getList'), {
|
|
|
+ method: 'POST',
|
|
|
+ body: JSON.stringify({ orgName: params }),
|
|
|
+ });
|
|
|
+ return data;
|
|
|
+};
|
|
|
+
|
|
|
// 用户信息表
|
|
|
export const addAccount = async (params: AccountParams) => {
|
|
|
await request(apiSys('/sysUser/add'), {
|