|
@@ -3,12 +3,12 @@ import { Divider, List, message, Select } from "antd";
|
|
|
import { useState } from "react";
|
|
import { useState } from "react";
|
|
|
import { useIntl } from "react-intl";
|
|
import { useIntl } from "react-intl";
|
|
|
import { get, post } from "../../request";
|
|
import { get, post } from "../../request";
|
|
|
-import { IUserApiData, IUserListResponse, Role } from "../api/Auth";
|
|
|
|
|
|
|
+import { IUserApiData, IUserListResponse, TRole } from "../api/Auth";
|
|
|
import { IShareData, IShareRequest, IShareResponse } from "../api/Share";
|
|
import { IShareData, IShareRequest, IShareResponse } from "../api/Share";
|
|
|
|
|
|
|
|
interface IShareUserList {
|
|
interface IShareUserList {
|
|
|
user: IUserApiData;
|
|
user: IUserApiData;
|
|
|
- role: Role;
|
|
|
|
|
|
|
+ role: TRole;
|
|
|
}
|
|
}
|
|
|
interface IWidget {
|
|
interface IWidget {
|
|
|
resId: string;
|
|
resId: string;
|
|
@@ -21,7 +21,7 @@ const Widget = ({ resId, resType }: IWidget) => {
|
|
|
interface IFormData {
|
|
interface IFormData {
|
|
|
userId: string;
|
|
userId: string;
|
|
|
userType: string;
|
|
userType: string;
|
|
|
- role: Role;
|
|
|
|
|
|
|
+ role: TRole;
|
|
|
}
|
|
}
|
|
|
return (
|
|
return (
|
|
|
<div>
|
|
<div>
|