diff --git a/src/components/menu/MenuWithTopButton.tsx b/src/components/menu/MenuWithTopButton.tsx
index b94ca92..4ba5928 100644
--- a/src/components/menu/MenuWithTopButton.tsx
+++ b/src/components/menu/MenuWithTopButton.tsx
@@ -88,8 +88,8 @@ export default function MenuWithTopButton(props: IMenuWithTopButton) {
// console.log(props.list);
// setMenuActive('ALL')
if (props.button.name == '项目') {
- // setMenuActive('ALL')
-
+ setMenuActive('ALL')
+
}
if (props.button.name == '退款' ){
setMenuActive('PENDING')
diff --git a/src/route/Correction/Correction.tsx b/src/route/Correction/Correction.tsx
index ef496a3..3a4c263 100644
--- a/src/route/Correction/Correction.tsx
+++ b/src/route/Correction/Correction.tsx
@@ -320,7 +320,7 @@ export default function Correction() {
setIsLoading(true)
},
onSuccess(data: any) {
- console.log('呵呵', data.data.rows);
+ // console.log('呵呵', data.data.rows);
// setData(data.data.rows)
dispath({
type: 'upCorrectionArray',
@@ -395,7 +395,7 @@ export default function Correction() {
// getData(1)
setPage(1)
getData(1)
- console.log(type);
+ // console.log(type);
// console.log('嘻嘻',correctionArray);
}, [type])
diff --git a/src/route/Refun/Refun.tsx b/src/route/Refun/Refun.tsx
index 3f34a74..63d76c4 100644
--- a/src/route/Refun/Refun.tsx
+++ b/src/route/Refun/Refun.tsx
@@ -192,7 +192,7 @@ export default function Refun() {
render: (_, record) => (
// {record.name}
{
- console.log(record.projRefundApplyId);
+ // console.log(record.projRefundApplyId);
setRevokeModal(true)
setprojRefundApplyId(record.projRefundApplyId)
}}> 撤销
@@ -302,7 +302,7 @@ export default function Refun() {
setIsLoading(true)
},
onSuccess(data: any) {
- console.log(data.data.rows);
+ // console.log(data.data.rows);
// setData(data.data.rows)
dispath({
type: 'upRefunArray',
@@ -377,7 +377,7 @@ export default function Refun() {
// getData(1)
setPage(1)
getData(1)
- console.log(type);
+ // console.log(type);
}, [type])
diff --git a/src/route/index/Index.tsx b/src/route/index/Index.tsx
index 00d8b61..6177d3b 100644
--- a/src/route/index/Index.tsx
+++ b/src/route/index/Index.tsx
@@ -196,7 +196,14 @@ export default function Index() {
button: {
name: '项目',
handle() {
+ dispatch({
+ type: IndexListDataType.PROJ,
+ value:'ALL',
+ })
+ init()
+ nav('/home')
nav('/proj-create')
+
}
},
list: [
diff --git a/src/route/proj/ProjEdit.tsx b/src/route/proj/ProjEdit.tsx
index 41a4c4f..841ea77 100644
--- a/src/route/proj/ProjEdit.tsx
+++ b/src/route/proj/ProjEdit.tsx
@@ -385,7 +385,8 @@ export default function ProjEdit() {
onSuccess({ data }) {
// console.log('模块信息', data);
// setListMods(data)
- if (data.length > 0) {
+ const allSuccess = data.every(item => item.aiFieldStatus === 'SUCCESS');
+ if (data.length > 0 && allSuccess) {
setAiHelperModalOpen(false);
} else {
messageApi.error('须完成系统简介,系统详情,功能列表的生成才可关闭弹窗');
diff --git a/src/route/proj/ProjEditFree.tsx b/src/route/proj/ProjEditFree.tsx
index 2714297..712b268 100644
--- a/src/route/proj/ProjEditFree.tsx
+++ b/src/route/proj/ProjEditFree.tsx
@@ -41,8 +41,8 @@ type ProjModType = {
export default function ProjEdit() {
const dispath = useDispatch()
- // 更新所属者表格储存至redux
- const upBelongArray = () => {
+ // 更新所属者表格储存至redux
+ const upBelongArray = () => {
get({
messageApi,
url: `/api/proj-owner/list/self`,
@@ -161,8 +161,10 @@ export default function ProjEdit() {
},
onSuccess({ data }) {
// console.log('模块信息', data);
- // setListMods(data)
- if (data.length > 0) {
+ const allSuccess = data.every(item => item.aiFieldStatus === 'SUCCESS');
+ // console.log('检测项目',allSuccess);
+
+ if (data.length > 0 && allSuccess) {
setAiHelperModalOpen(false);
} else {
messageApi.error('须完成系统简介,系统详情,功能列表的生成才可关闭弹窗');
@@ -753,7 +755,7 @@ export default function ProjEdit() {
footer={null}
>
{
- upBelongArray()
+ upBelongArray()
setSoftwareOpen(false)
renderData()
}}>