模块生成判定
This commit is contained in:
parent
242edb91e7
commit
0ab8bf9428
@ -88,7 +88,7 @@ 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 == '退款' ){
|
||||||
|
@ -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])
|
||||||
|
@ -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])
|
||||||
|
|
||||||
|
@ -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: [
|
||||||
|
@ -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('须完成系统简介,系统详情,功能列表的生成才可关闭弹窗');
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user