+
提醒
+ {/*{props.readonly ?*/}
+ {/* (props.remindTypeList.length == 0 ?
-
: props.remindTypeList.map(remindType => {*/}
+ {/*
remindType.split(",")
*/}
+ {/* })) :*/}
+ {/* (props.remindTypeList.length == 0 ?
*/}
+ {/* :props.remindTypeList.map(remindType => {*/}
+ {/*
remindType.split(",")
*/}
+ {/* }))}*/}
+
+
+ {props.readonly ? (
+ props.remindTypeList.length === 0 ? (
+
-
+ ) : (
+ props.remindTypeList.map((remindType, index) => (
+
{remindType.split(",").join(", ")}
+ ))
+ )
+ ) : props.remindTypeList.length === 0 ? (
+
+
+
+ ) : (
+ props.remindTypeList.map((remindType, index) => (
+
{remindType.split(",").join(", ")}
+ ))
+ )}
+
)
+}
+export default TaskRemindComponent
\ No newline at end of file
diff --git a/src/components/TeamMember.tsx b/src/components/TeamMember.tsx
index 8f0651e..326d0c0 100644
--- a/src/components/TeamMember.tsx
+++ b/src/components/TeamMember.tsx
@@ -1,13 +1,13 @@
import React, {Fragment, useEffect, useRef, useState} from "react";
-import {Button, Modal, TablePaginationConfig} from "antd";
+import {Button, message, Modal, TablePaginationConfig} from "antd";
import {ActionType, ProColumns, ProTable} from "@ant-design/pro-components";
import {Params} from "next/dist/shared/lib/router/utils/route-matcher";
import {TeamMemberVO} from "@/components/type/Share.d";
import type {FilterValue, SorterResult, TableCurrentDataSource} from "antd/es/table/interface";
-import {listTeamMemberAPI} from "@/components/service/Share";
+import {allowAddTeamAPI, listTeamMemberAPI, quitTeamAPI, removeTeamAPI} from "@/components/service/Share";
-const TeamMember = (props: { taskId: string }) => {
+const TeamMember = (props: { taskId: string,closeOpen?: () => void,reloadData?: () => void }) => {
const [open, setOpen] = useState(false);
const onClose = () => {
setOpen(false);
@@ -18,20 +18,57 @@ const TeamMember = (props: { taskId: string }) => {
const [totalUserList, setTotalUserList] = React.useState