去除log

This commit is contained in:
lyp 2025-01-03 17:33:18 +08:00
parent b909b41187
commit 2f880d0bd6
3 changed files with 40 additions and 23 deletions

View File

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

View File

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

View File

@ -81,7 +81,7 @@ export default function Index() {
// 选择的标签 // 选择的标签
const [tagCor, setTagCor] = useState<string | null>(null) const [tagCor, setTagCor] = useState<string | null>(null)
// 选项数组 // 选项数组
const [tagArray, setTagArray] = useState([]) const [tagArray, setTagArray] = useState([])
@ -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,
} }
}) })
} }
@ -904,12 +908,13 @@ export default function Index() {
correctionType: correctionType, correctionType: correctionType,
applyStatus: correctionApplyStatus, applyStatus: correctionApplyStatus,
authorId: authorId, authorId: authorId,
tagCor:tagCor, tagCor: tagCor,
} }
}) })
} }
}, [type, chargeAdditionals, keywords, tagDataId, projRemindId, payStatus, authorId, refunKeywords, applyStatus, correctionKeywords, correctionNumType, correctionType, correctionApplyStatus,tagCor]); }, [type, chargeAdditionals, keywords, tagDataId, projRemindId, payStatus, authorId, refunKeywords, applyStatus, correctionKeywords, correctionNumType, correctionType, correctionApplyStatus, tagCor]);
// const [menuName,setMenuName] = useState<string | null>('') // const [menuName,setMenuName] = useState<string | null>('')
// useEffect(()=>{ // useEffect(()=>{
@ -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,
} }
}) })
} }
@ -992,7 +999,8 @@ export default function Index() {
correctionType: correctionType, correctionType: correctionType,
applyStatus: correctionApplyStatus, applyStatus: correctionApplyStatus,
authorId: authorId, authorId: authorId,
tagCor:tagCor, tagCor: tagCor,
} }
}) })
} }
@ -1008,7 +1016,8 @@ export default function Index() {
correctionType: correctionType, correctionType: correctionType,
applyStatus: correctionApplyStatus, applyStatus: correctionApplyStatus,
authorId: authorId, authorId: authorId,
tagCor:tagCor, tagCor: tagCor,
} }
}) })
} }
@ -1052,7 +1061,7 @@ export default function Index() {
correctionNumType={correctionNumType ? correctionNumType : ''} correctionNumType={correctionNumType ? correctionNumType : ''}
correctionType={correctionType ? correctionType : ''} correctionType={correctionType ? correctionType : ''}
correctionApplyStatus={correctionApplyStatus ? correctionApplyStatus : ''} correctionApplyStatus={correctionApplyStatus ? correctionApplyStatus : ''}
tagCor = {tagCor? tagCor : ''} tagCor={tagCor ? tagCor : ''}
// enableBelongpeople = {()=>{setClickBelongpeople(true)}} // enableBelongpeople = {()=>{setClickBelongpeople(true)}}
/> />
@ -1346,7 +1355,7 @@ export default function Index() {
// if (part1 == 'TAG_NOT') { // if (part1 == 'TAG_NOT') {
// setTagNot(true) // setTagNot(true)
// } // }
settagDataId(value) settagDataId(value)
// alert(`selected ${value}`) // alert(`selected ${value}`)
// lyp // lyp
@ -1374,7 +1383,7 @@ export default function Index() {
/> />
<div style={{ <div style={{
display:remindTagArray.length > 0 ? 'block' : 'none', display: remindTagArray.length > 0 ? 'block' : 'none',
}}> }}>
<Select <Select
allowClear allowClear
@ -1496,7 +1505,8 @@ export default function Index() {
state: { state: {
keywords: refunKeywords, keywords: refunKeywords,
applyStatus: value, applyStatus: value,
authorId: authorId authorId: authorId,
} }
}) })
}} }}
@ -1567,7 +1577,8 @@ export default function Index() {
correctionType: correctionType, correctionType: correctionType,
applyStatus: correctionApplyStatus, applyStatus: correctionApplyStatus,
authorId: authorId, authorId: authorId,
tagCor:tagCor, tagCor: tagCor,
} }
}) })
}} }}
@ -1592,7 +1603,8 @@ export default function Index() {
correctionType: value, correctionType: value,
applyStatus: correctionApplyStatus, applyStatus: correctionApplyStatus,
authorId: authorId, authorId: authorId,
tagCor:tagCor, tagCor: tagCor,
} }
}) })
}} }}
@ -1619,7 +1631,8 @@ export default function Index() {
correctionType: correctionType, correctionType: correctionType,
applyStatus: value, applyStatus: value,
authorId: authorId, authorId: authorId,
tagCor:tagCor, tagCor: tagCor,
} }
}) })
}} }}
@ -1634,7 +1647,7 @@ export default function Index() {
placeholder={'选择状态'} placeholder={'选择状态'}
allowClear allowClear
/> />
<Select <Select
value={tagCor} value={tagCor}
style={{ height: '31px', width: '120px', marginLeft: 10 }} style={{ height: '31px', width: '120px', marginLeft: 10 }}
onChange={(value: string) => { onChange={(value: string) => {
@ -1646,7 +1659,8 @@ export default function Index() {
correctionType: correctionType, correctionType: correctionType,
applyStatus: applyStatus, applyStatus: applyStatus,
authorId: authorId, authorId: authorId,
tagCor:value, tagCor: value,
} }
}) })
}} }}