diff --git a/src/forge/Information/Component/addProjects.jsx b/src/forge/Information/Component/addProjects.jsx index e7e78e1ce..6a701625c 100644 --- a/src/forge/Information/Component/addProjects.jsx +++ b/src/forge/Information/Component/addProjects.jsx @@ -110,7 +110,7 @@ function AddProjects({id,visible,typeList,needAudit,role,onCancel,onFresh}){ } const res = response.data; if(res && res.code === 200){ - message.success((needAudit === 1 && role && role.role !== "Manager") ? "操作成功,请等待管理员审核" : "操作成功!"); + message.success((needAudit === 1 && role !== "Manager") ? "操作成功,请等待管理员审核" : "操作成功!"); Init(page,searchValue); onFresh(); }else{ diff --git a/src/forge/Information/Pages/custom/newsIndex.jsx b/src/forge/Information/Pages/custom/newsIndex.jsx index 8035d7427..50cab6f3b 100644 --- a/src/forge/Information/Pages/custom/newsIndex.jsx +++ b/src/forge/Information/Pages/custom/newsIndex.jsx @@ -130,11 +130,11 @@ function NewsIndex(props) { mainList && mainList.length > 0 &&
{sectionProjectTitle}
diff --git a/src/forge/Information/Pages/scoreDetail.jsx b/src/forge/Information/Pages/scoreDetail.jsx index 28bc0fb79..9480291f9 100644 --- a/src/forge/Information/Pages/scoreDetail.jsx +++ b/src/forge/Information/Pages/scoreDetail.jsx @@ -1,7 +1,7 @@ import React , { useState , useEffect } from 'react'; import { Tag , Pagination } from 'antd'; -import { getMemberAccountDetail, getPointsAccountEvent } from '../api'; +import { getMemberAccountDetail, getPointsTransaction } from '../api'; import '../indexUser.scss'; @@ -18,7 +18,7 @@ const transactionTypeMap = { }; function getPointsShow(item) { - const config = transactionTypeMap[item.status]; + const config = transactionTypeMap[item.transactionType]; if (!config) { return { className: '', pointsTxt: item.score, statusClass: '', status: '' }; } @@ -45,7 +45,7 @@ function scoreDetail(props){ },[id, page]) function getDetail() { - getPointsAccountEvent(id, { pageNum: page, pageSize: limit }).then(res => { + getPointsTransaction(id, { pageNum: page, pageSize: limit }).then(res => { if (res && res.data && res.data.code === 200) { const processedRows = (res.data.rows || []).map(item => ({ ...item, diff --git a/src/forge/Information/Pages/zoneUser.jsx b/src/forge/Information/Pages/zoneUser.jsx index 05f40c501..2eed56926 100644 --- a/src/forge/Information/Pages/zoneUser.jsx +++ b/src/forge/Information/Pages/zoneUser.jsx @@ -380,10 +380,10 @@ function ZoneUser(props){ onCancel={()=>setDocVisible(false)} onSure={() => { setDocVisible(false); setSuccessVisible(true);getInfo();}} />