去除log
This commit is contained in:
parent
b909b41187
commit
2f880d0bd6
@ -57,7 +57,7 @@ export default function Correction() {
|
|||||||
// const MenuActive = getMenuActive() == 'Correction-PENDING' ? 'PENDING' : getMenuActive() == 'Correction-APPROVED' ? 'APPROVED' : getMenuActive() == 'Correction-REJECTED' ? 'REJECTED' : getMenuActive() == 'Correction-CANCELED' ? 'CANCELED' : ''
|
// const MenuActive = getMenuActive() == 'Correction-PENDING' ? 'PENDING' : getMenuActive() == 'Correction-APPROVED' ? 'APPROVED' : getMenuActive() == 'Correction-REJECTED' ? 'REJECTED' : getMenuActive() == 'Correction-CANCELED' ? 'CANCELED' : ''
|
||||||
// const [type, setType] = useState<string | null>(null)
|
// const [type, setType] = useState<string | null>(null)
|
||||||
const [isLoading, setIsLoading] = useState(false)
|
const [isLoading, setIsLoading] = useState(false)
|
||||||
const [page, setPage] = useState(1) // 分页
|
|
||||||
const [revokeModal, setRevokeModal] = useState(false) //撤销弹窗
|
const [revokeModal, setRevokeModal] = useState(false) //撤销弹窗
|
||||||
// const [numtype, setnumtype] = useState<string | null>(null) //类型 一次 二次
|
// const [numtype, setnumtype] = useState<string | null>(null) //类型 一次 二次
|
||||||
// const [correctionType, setcorrectionType] = useState<string | null>(null) //补正种类
|
// const [correctionType, setcorrectionType] = useState<string | null>(null) //补正种类
|
||||||
@ -72,6 +72,8 @@ export default function Correction() {
|
|||||||
const authorId = state ? state.authorId : ''
|
const authorId = state ? state.authorId : ''
|
||||||
const correctionNumType = state ? state.correctionNumType : ''
|
const correctionNumType = state ? state.correctionNumType : ''
|
||||||
const correctionType = state ? state.correctionType : ''
|
const correctionType = state ? state.correctionType : ''
|
||||||
|
// const Ppage = state? state.page : 1
|
||||||
|
const [page, setPage] = useState(1) // 分页
|
||||||
// const columns: TableProps<DataType>['columns'] =
|
// const columns: TableProps<DataType>['columns'] =
|
||||||
// // 撤销状态
|
// // 撤销状态
|
||||||
// applyStatus == 'CANCELED' ? [
|
// applyStatus == 'CANCELED' ? [
|
||||||
@ -876,8 +878,9 @@ export default function Correction() {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// getData(1)
|
// getData(1)
|
||||||
setPage(1)
|
|
||||||
getData(1)
|
getData(1)
|
||||||
|
setPage(1)
|
||||||
// console.log(tagCor);
|
// console.log(tagCor);
|
||||||
// console.log('嘻嘻',correctionArray);
|
// console.log('嘻嘻',correctionArray);
|
||||||
|
|
||||||
@ -1194,7 +1197,7 @@ export default function Correction() {
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div className='pagination'>
|
<div className='pagination'>
|
||||||
<Pagination defaultCurrent={page} total={total} pageSize={20} showSizeChanger={false} onChange={(page) => {
|
<Pagination current={page} total={total} pageSize={20} showSizeChanger={false} onChange={(page) => {
|
||||||
setPage(page)
|
setPage(page)
|
||||||
getData(page)
|
getData(page)
|
||||||
|
|
||||||
|
@ -754,7 +754,7 @@ export default function Refun() {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className='pagination'>
|
<div className='pagination'>
|
||||||
<Pagination defaultCurrent={page} total={total} pageSize={20} showSizeChanger={false} onChange={(page) => {
|
<Pagination current={page} total={total} pageSize={20} showSizeChanger={false} onChange={(page) => {
|
||||||
setPage(page)
|
setPage(page)
|
||||||
getData(page)
|
getData(page)
|
||||||
|
|
||||||
|
@ -242,7 +242,7 @@ export default function Index() {
|
|||||||
setCurrentPage(page);
|
setCurrentPage(page);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
const nav = useNavigate();
|
||||||
// // home页初始化搜索条件
|
// // home页初始化搜索条件
|
||||||
const init = () => {
|
const init = () => {
|
||||||
setNowKeyWord('')
|
setNowKeyWord('')
|
||||||
@ -252,12 +252,15 @@ export default function Index() {
|
|||||||
settagDataId(null)
|
settagDataId(null)
|
||||||
setpayStatus(null)
|
setpayStatus(null)
|
||||||
setprojRemindId(null)
|
setprojRemindId(null)
|
||||||
|
nav('/home')
|
||||||
}
|
}
|
||||||
// 退款页初搜索条件始化
|
// 退款页初搜索条件始化
|
||||||
const refunInit = () => {
|
const refunInit = () => {
|
||||||
setnewRefunValue('')
|
setnewRefunValue('')
|
||||||
setrefunKeywords('')
|
setrefunKeywords('')
|
||||||
setapplyStatus(null)
|
setapplyStatus(null)
|
||||||
|
// 刷新当前页面
|
||||||
|
|
||||||
}
|
}
|
||||||
// 补正页面搜索条件初始化
|
// 补正页面搜索条件初始化
|
||||||
const correctionInit = () => {
|
const correctionInit = () => {
|
||||||
@ -268,7 +271,7 @@ export default function Index() {
|
|||||||
setcorrectionApplyStatus(null)
|
setcorrectionApplyStatus(null)
|
||||||
setTagCor(null)
|
setTagCor(null)
|
||||||
}
|
}
|
||||||
const nav = useNavigate();
|
|
||||||
const [searchParams] = useSearchParams();
|
const [searchParams] = useSearchParams();
|
||||||
|
|
||||||
const listReducer = (state: ListData, action: ListAction) => {
|
const listReducer = (state: ListData, action: ListAction) => {
|
||||||
@ -892,7 +895,8 @@ export default function Index() {
|
|||||||
state: {
|
state: {
|
||||||
keywords: refunKeywords,
|
keywords: refunKeywords,
|
||||||
applyStatus: applyStatus,
|
applyStatus: applyStatus,
|
||||||
authorId: authorId
|
authorId: authorId,
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -905,6 +909,7 @@ export default function Index() {
|
|||||||
applyStatus: correctionApplyStatus,
|
applyStatus: correctionApplyStatus,
|
||||||
authorId: authorId,
|
authorId: authorId,
|
||||||
tagCor: tagCor,
|
tagCor: tagCor,
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -963,7 +968,8 @@ export default function Index() {
|
|||||||
state: {
|
state: {
|
||||||
keywords: value,
|
keywords: value,
|
||||||
applyStatus: applyStatus,
|
applyStatus: applyStatus,
|
||||||
authorId: authorId
|
authorId: authorId,
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -976,7 +982,8 @@ export default function Index() {
|
|||||||
state: {
|
state: {
|
||||||
keywords: '',
|
keywords: '',
|
||||||
applyStatus: applyStatus,
|
applyStatus: applyStatus,
|
||||||
authorId: authorId
|
authorId: authorId,
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -993,6 +1000,7 @@ export default function Index() {
|
|||||||
applyStatus: correctionApplyStatus,
|
applyStatus: correctionApplyStatus,
|
||||||
authorId: authorId,
|
authorId: authorId,
|
||||||
tagCor: tagCor,
|
tagCor: tagCor,
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -1009,6 +1017,7 @@ export default function Index() {
|
|||||||
applyStatus: correctionApplyStatus,
|
applyStatus: correctionApplyStatus,
|
||||||
authorId: authorId,
|
authorId: authorId,
|
||||||
tagCor: tagCor,
|
tagCor: tagCor,
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -1496,7 +1505,8 @@ export default function Index() {
|
|||||||
state: {
|
state: {
|
||||||
keywords: refunKeywords,
|
keywords: refunKeywords,
|
||||||
applyStatus: value,
|
applyStatus: value,
|
||||||
authorId: authorId
|
authorId: authorId,
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}}
|
}}
|
||||||
@ -1568,6 +1578,7 @@ export default function Index() {
|
|||||||
applyStatus: correctionApplyStatus,
|
applyStatus: correctionApplyStatus,
|
||||||
authorId: authorId,
|
authorId: authorId,
|
||||||
tagCor: tagCor,
|
tagCor: tagCor,
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}}
|
}}
|
||||||
@ -1593,6 +1604,7 @@ export default function Index() {
|
|||||||
applyStatus: correctionApplyStatus,
|
applyStatus: correctionApplyStatus,
|
||||||
authorId: authorId,
|
authorId: authorId,
|
||||||
tagCor: tagCor,
|
tagCor: tagCor,
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}}
|
}}
|
||||||
@ -1620,6 +1632,7 @@ export default function Index() {
|
|||||||
applyStatus: value,
|
applyStatus: value,
|
||||||
authorId: authorId,
|
authorId: authorId,
|
||||||
tagCor: tagCor,
|
tagCor: tagCor,
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}}
|
}}
|
||||||
@ -1647,6 +1660,7 @@ export default function Index() {
|
|||||||
applyStatus: applyStatus,
|
applyStatus: applyStatus,
|
||||||
authorId: authorId,
|
authorId: authorId,
|
||||||
tagCor: value,
|
tagCor: value,
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}}
|
}}
|
||||||
|
Loading…
Reference in New Issue
Block a user