물건현황 리스트 검색조건 수정

This commit is contained in:
basssy 2024-10-04 09:10:11 +09:00
parent 44a8334d1d
commit 3b5201a0ce
2 changed files with 8 additions and 8 deletions

View File

@ -256,7 +256,7 @@ export default function Stuff() {
} }
async function fetchData() { async function fetchData() {
console.log('화면진입:::::::::::::', params) // console.log(':::::::::::::', params)
//api startRow, endRow //api startRow, endRow
// let startRow // let startRow
// let endRow // let endRow
@ -278,7 +278,7 @@ export default function Stuff() {
url: apiUrl, url: apiUrl,
}).then((res) => { }).then((res) => {
if (!isEmptyArray(res)) { if (!isEmptyArray(res)) {
console.log('화면진입API결과::', res) // console.log('API::', res)
setGridProps({ ...gridProps, gridData: res, count: res.length }) setGridProps({ ...gridProps, gridData: res, count: res.length })
setGridCount(res.length) setGridCount(res.length)
} }
@ -293,7 +293,7 @@ export default function Stuff() {
stuffSearchParams.startRow = (curPage - 1) * defaultSize + 1 stuffSearchParams.startRow = (curPage - 1) * defaultSize + 1
stuffSearchParams.endRow = curPage * defaultSize stuffSearchParams.endRow = curPage * defaultSize
stuffSearchParams.schSortType = defaultSortType stuffSearchParams.schSortType = defaultSortType
console.log('조회 눌럿을때 ::::::::::::::', stuffSearchParams) // console.log(' ::::::::::::::', stuffSearchParams)
async function fetchData() { async function fetchData() {
// const apiUrl = `/api/object/list?saleStoreId=201TES01&${queryStringFormatter(stuffSearchParams)}` // const apiUrl = `/api/object/list?saleStoreId=201TES01&${queryStringFormatter(stuffSearchParams)}`
const apiUrl = `/api/object/list?saleStoreId=X167&${queryStringFormatter(stuffSearchParams)}` const apiUrl = `/api/object/list?saleStoreId=X167&${queryStringFormatter(stuffSearchParams)}`
@ -324,12 +324,12 @@ export default function Stuff() {
startRow: startRow, startRow: startRow,
endRow: curPage * e.target.value, endRow: curPage * e.target.value,
}) })
console.log('셋팅된 검색조건:::', stuffSearchParams) // console.log(' :::', stuffSearchParams)
//API //API
// const apiUrl = `/api/object/list?saleStoreId=201TES01&${queryStringFormatter(stuffSearchParams)}` // const apiUrl = `/api/object/list?saleStoreId=201TES01&${queryStringFormatter(stuffSearchParams)}`
const apiUrl = `/api/object/list?saleStoreId=X167&${queryStringFormatter(stuffSearchParams)}` const apiUrl = `/api/object/list?saleStoreId=X167&${queryStringFormatter(stuffSearchParams)}`
get({ url: apiUrl }).then((res) => { get({ url: apiUrl }).then((res) => {
console.log('보여줄개수바꿨을때 조회 ::::::::::', res) // console.log(' ::::::::::', res)
if (!isEmptyArray(res)) { if (!isEmptyArray(res)) {
setGridProps({ ...gridProps, gridData: res, count: res.length }) setGridProps({ ...gridProps, gridData: res, count: res.length })
setGridCount(res.length) setGridCount(res.length)
@ -343,7 +343,7 @@ export default function Stuff() {
// //
const onChangeSortType = (e) => { const onChangeSortType = (e) => {
stuffSearchParams.schSortType = e.target.value stuffSearchParams.schSortType = e.target.value
console.log('셋팅된 검색조건:::', stuffSearchParams) // console.log(' :::', stuffSearchParams)
setDefaultSortType(e.target.value) setDefaultSortType(e.target.value)
setStuffSearch({ setStuffSearch({
...stuffSearch, ...stuffSearch,
@ -354,7 +354,7 @@ export default function Stuff() {
const apiUrl = `/api/object/list?saleStoreId=X167&${queryStringFormatter(stuffSearchParams)}` const apiUrl = `/api/object/list?saleStoreId=X167&${queryStringFormatter(stuffSearchParams)}`
// console.log('apiUrl::', apiUrl) // console.log('apiUrl::', apiUrl)
get({ url: apiUrl }).then((res) => { get({ url: apiUrl }).then((res) => {
console.log('정렬바꿨을때 조회 ::::::::::', res) // console.log(' ::::::::::', res)
if (!isEmptyArray(res)) { if (!isEmptyArray(res)) {
setGridProps({ ...gridProps, gridData: res, count: res.length }) setGridProps({ ...gridProps, gridData: res, count: res.length })
setGridCount(res.length) setGridCount(res.length)

View File

@ -294,7 +294,7 @@ export default function StuffSearchCondition() {
setStuffSearch({ ...stuffSearch, code: 'S', schDateType: e.target.value }) setStuffSearch({ ...stuffSearch, code: 'S', schDateType: e.target.value })
}} }}
/> />
<label htmlFor="ra05">등록일</label> <label htmlFor="radio_r">등록일</label>
</div> </div>
</div> </div>
<div className="date-picker-wrap"> <div className="date-picker-wrap">