模块生成判定

This commit is contained in:
xixi 2024-08-27 11:35:08 +08:00
parent 242edb91e7
commit 0ab8bf9428
6 changed files with 23 additions and 13 deletions

View File

@ -88,8 +88,8 @@ export default function MenuWithTopButton(props: IMenuWithTopButton) {
// console.log(props.list); // console.log(props.list);
// setMenuActive('ALL') // setMenuActive('ALL')
if (props.button.name == '项目') { if (props.button.name == '项目') {
// setMenuActive('ALL') setMenuActive('ALL')
} }
if (props.button.name == '退款' ){ if (props.button.name == '退款' ){
setMenuActive('PENDING') setMenuActive('PENDING')

View File

@ -320,7 +320,7 @@ export default function Correction() {
setIsLoading(true) setIsLoading(true)
}, },
onSuccess(data: any) { onSuccess(data: any) {
console.log('呵呵', data.data.rows); // console.log('呵呵', data.data.rows);
// setData(data.data.rows) // setData(data.data.rows)
dispath({ dispath({
type: 'upCorrectionArray', type: 'upCorrectionArray',
@ -395,7 +395,7 @@ export default function Correction() {
// getData(1) // getData(1)
setPage(1) setPage(1)
getData(1) getData(1)
console.log(type); // console.log(type);
// console.log('嘻嘻',correctionArray); // console.log('嘻嘻',correctionArray);
}, [type]) }, [type])

View File

@ -192,7 +192,7 @@ export default function Refun() {
render: (_, record) => ( render: (_, record) => (
// {record.name} // {record.name}
<div className='refunBtn' onClick={() => { <div className='refunBtn' onClick={() => {
console.log(record.projRefundApplyId); // console.log(record.projRefundApplyId);
setRevokeModal(true) setRevokeModal(true)
setprojRefundApplyId(record.projRefundApplyId) setprojRefundApplyId(record.projRefundApplyId)
}}> </div> }}> </div>
@ -302,7 +302,7 @@ export default function Refun() {
setIsLoading(true) setIsLoading(true)
}, },
onSuccess(data: any) { onSuccess(data: any) {
console.log(data.data.rows); // console.log(data.data.rows);
// setData(data.data.rows) // setData(data.data.rows)
dispath({ dispath({
type: 'upRefunArray', type: 'upRefunArray',
@ -377,7 +377,7 @@ export default function Refun() {
// getData(1) // getData(1)
setPage(1) setPage(1)
getData(1) getData(1)
console.log(type); // console.log(type);
}, [type]) }, [type])

View File

@ -196,7 +196,14 @@ export default function Index() {
button: { button: {
name: '项目', name: '项目',
handle() { handle() {
dispatch({
type: IndexListDataType.PROJ,
value:'ALL',
})
init()
nav('/home')
nav('/proj-create') nav('/proj-create')
} }
}, },
list: [ list: [

View File

@ -385,7 +385,8 @@ export default function ProjEdit() {
onSuccess({ data }) { onSuccess({ data }) {
// console.log('模块信息', data); // console.log('模块信息', data);
// setListMods(data) // setListMods(data)
if (data.length > 0) { const allSuccess = data.every(item => item.aiFieldStatus === 'SUCCESS');
if (data.length > 0 && allSuccess) {
setAiHelperModalOpen(false); setAiHelperModalOpen(false);
} else { } else {
messageApi.error('须完成系统简介,系统详情,功能列表的生成才可关闭弹窗'); messageApi.error('须完成系统简介,系统详情,功能列表的生成才可关闭弹窗');

View File

@ -41,8 +41,8 @@ type ProjModType = {
export default function ProjEdit() { export default function ProjEdit() {
const dispath = useDispatch() const dispath = useDispatch()
// 更新所属者表格储存至redux // 更新所属者表格储存至redux
const upBelongArray = () => { const upBelongArray = () => {
get({ get({
messageApi, messageApi,
url: `/api/proj-owner/list/self`, url: `/api/proj-owner/list/self`,
@ -161,8 +161,10 @@ export default function ProjEdit() {
}, },
onSuccess({ data }) { onSuccess({ data }) {
// console.log('模块信息', data); // console.log('模块信息', data);
// setListMods(data) const allSuccess = data.every(item => item.aiFieldStatus === 'SUCCESS');
if (data.length > 0) { // console.log('检测项目',allSuccess);
if (data.length > 0 && allSuccess) {
setAiHelperModalOpen(false); setAiHelperModalOpen(false);
} else { } else {
messageApi.error('须完成系统简介,系统详情,功能列表的生成才可关闭弹窗'); messageApi.error('须完成系统简介,系统详情,功能列表的生成才可关闭弹窗');
@ -753,7 +755,7 @@ export default function ProjEdit() {
footer={null} footer={null}
> >
<SoftwareInfo closeModal={() => { <SoftwareInfo closeModal={() => {
upBelongArray() upBelongArray()
setSoftwareOpen(false) setSoftwareOpen(false)
renderData() renderData()
}}></SoftwareInfo> }}></SoftwareInfo>