删除提示-是否需要审核

This commit is contained in:
caishi 2023-09-22 15:33:46 +08:00
parent 5d4ac0f87d
commit 58cb847a13
3 changed files with 6 additions and 6 deletions

View File

@ -21,7 +21,7 @@ function SelfList(props){
const [ deleId , setDeleId] = useState(undefined);
const pathname = props.location.pathname;
const { deptId} = props.match.params;
const { id , temp } = props;
const { id , temp , data } = props;
const limit = 15;
useEffect(()=>{
@ -100,8 +100,7 @@ function SelfList(props){
delNewsMyList(deleId).then(response=>{
setVisible(false);
if(status ===1){
props.history.push(`/zone/${deptId}/newdetail/${deleId}`);
props.showNotification("已提交删除申请,待管理员审核通过后改文章将被删除");
props.showNotification("提交成功!");
}else{
props.showNotification("删除成功!");
getNew();
@ -124,7 +123,7 @@ function SelfList(props){
<i className="iconfont icon-shanchu_tc_icon font-22 mr15" style={{color:"#ca0002"}}></i>
<div>
<p className="font-15 mb15 mt5" style={{color:"#202d40"}}>确定删除该{source?"资源":"文章"}?</p>
{(source || (!source && status === 1)) && <p style={{color:"#5f6872"}}>{source?"删除后所有资源文件将被清除,请谨慎操作":"此操作将提交删除申请,管理员同意申请后该文章将被删除"}</p> }
{(source || (!source && status === 1 && (data && data.docNeedAudit===1))) && <p style={{color:"#5f6872"}}>{source?"删除后所有资源文件将被清除,请谨慎操作":"此操作将提交删除申请,管理员同意申请后该文章将被删除"}</p> }
</div>
</div>
<div className="delBoxBtn">

View File

@ -7,6 +7,7 @@ function beforeFetch(actionUrl){
}
const service = axios.create({
headers:{Authorization:"fb55fcaae60bb0c341078dade4b37c965e285394"},
baseURL: actionUrl,
timeout: 1800000, // 请求超时时间
});

View File

@ -159,7 +159,7 @@ function Index(props){
<Route
path="/zone/:deptId/news/self"
render={(p) => (
<SourceSelfList {...props} {...p} id={id} temp={ temp }/>
<SourceSelfList {...props} {...p} id={id} temp={ temp } data={data}/>
)}
></Route>
<Route
@ -189,7 +189,7 @@ function Index(props){
<Route
path="/zone/:deptId/source/self"
render={(p) => (
<SourceSelfList {...props} {...p} id={id} temp={ temp }/>
<SourceSelfList {...props} {...p} id={id} temp={ temp } data={data}/>
)}
></Route>
<Route