模块生成判定

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,7 +88,7 @@ export default function MenuWithTopButton(props: IMenuWithTopButton) {
// console.log(props.list);
// setMenuActive('ALL')
if (props.button.name == '项目') {
// setMenuActive('ALL')
setMenuActive('ALL')
}
if (props.button.name == '退款' ){

View File

@ -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])

View File

@ -192,7 +192,7 @@ export default function Refun() {
render: (_, record) => (
// {record.name}
<div className='refunBtn' onClick={() => {
console.log(record.projRefundApplyId);
// console.log(record.projRefundApplyId);
setRevokeModal(true)
setprojRefundApplyId(record.projRefundApplyId)
}}> </div>
@ -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])

View File

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

View File

@ -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('须完成系统简介,系统详情,功能列表的生成才可关闭弹窗');

View File

@ -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('须完成系统简介,系统详情,功能列表的生成才可关闭弹窗');