模块生成判定
This commit is contained in:
parent
242edb91e7
commit
0ab8bf9428
@ -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 == '退款' ){
|
||||
|
@ -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])
|
||||
|
@ -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])
|
||||
|
||||
|
@ -196,7 +196,14 @@ export default function Index() {
|
||||
button: {
|
||||
name: '项目',
|
||||
handle() {
|
||||
dispatch({
|
||||
type: IndexListDataType.PROJ,
|
||||
value:'ALL',
|
||||
})
|
||||
init()
|
||||
nav('/home')
|
||||
nav('/proj-create')
|
||||
|
||||
}
|
||||
},
|
||||
list: [
|
||||
|
@ -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('须完成系统简介,系统详情,功能列表的生成才可关闭弹窗');
|
||||
|
@ -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}
|
||||
>
|
||||
<SoftwareInfo closeModal={() => {
|
||||
upBelongArray()
|
||||
upBelongArray()
|
||||
setSoftwareOpen(false)
|
||||
renderData()
|
||||
}}></SoftwareInfo>
|
||||
|
Loading…
Reference in New Issue
Block a user