물건현황 리스트 검색조건 수정
This commit is contained in:
parent
44a8334d1d
commit
3b5201a0ce
@ -256,7 +256,7 @@ export default function Stuff() {
|
||||
}
|
||||
|
||||
async function fetchData() {
|
||||
console.log('화면진입:::::::::::::', params)
|
||||
// console.log('화면진입:::::::::::::', params)
|
||||
//api에 넘길값 startRow, endRow
|
||||
// let startRow
|
||||
// let endRow
|
||||
@ -278,7 +278,7 @@ export default function Stuff() {
|
||||
url: apiUrl,
|
||||
}).then((res) => {
|
||||
if (!isEmptyArray(res)) {
|
||||
console.log('화면진입API결과::', res)
|
||||
// console.log('화면진입API결과::', res)
|
||||
setGridProps({ ...gridProps, gridData: res, count: res.length })
|
||||
setGridCount(res.length)
|
||||
}
|
||||
@ -293,7 +293,7 @@ export default function Stuff() {
|
||||
stuffSearchParams.startRow = (curPage - 1) * defaultSize + 1
|
||||
stuffSearchParams.endRow = curPage * defaultSize
|
||||
stuffSearchParams.schSortType = defaultSortType
|
||||
console.log('조회 눌럿을때 ::::::::::::::', stuffSearchParams)
|
||||
// console.log('조회 눌럿을때 ::::::::::::::', stuffSearchParams)
|
||||
async function fetchData() {
|
||||
// const apiUrl = `/api/object/list?saleStoreId=201TES01&${queryStringFormatter(stuffSearchParams)}`
|
||||
const apiUrl = `/api/object/list?saleStoreId=X167&${queryStringFormatter(stuffSearchParams)}`
|
||||
@ -324,12 +324,12 @@ export default function Stuff() {
|
||||
startRow: startRow,
|
||||
endRow: curPage * e.target.value,
|
||||
})
|
||||
console.log('셋팅된 검색조건:::', stuffSearchParams)
|
||||
// console.log('셋팅된 검색조건:::', stuffSearchParams)
|
||||
//조회API호출
|
||||
// const apiUrl = `/api/object/list?saleStoreId=201TES01&${queryStringFormatter(stuffSearchParams)}`
|
||||
const apiUrl = `/api/object/list?saleStoreId=X167&${queryStringFormatter(stuffSearchParams)}`
|
||||
get({ url: apiUrl }).then((res) => {
|
||||
console.log('보여줄개수바꿨을때 조회 ::::::::::', res)
|
||||
// console.log('보여줄개수바꿨을때 조회 ::::::::::', res)
|
||||
if (!isEmptyArray(res)) {
|
||||
setGridProps({ ...gridProps, gridData: res, count: res.length })
|
||||
setGridCount(res.length)
|
||||
@ -343,7 +343,7 @@ export default function Stuff() {
|
||||
//최근 등록일 수정일 정렬 이벤트
|
||||
const onChangeSortType = (e) => {
|
||||
stuffSearchParams.schSortType = e.target.value
|
||||
console.log('셋팅된 검색조건:::', stuffSearchParams)
|
||||
// console.log('셋팅된 검색조건:::', stuffSearchParams)
|
||||
setDefaultSortType(e.target.value)
|
||||
setStuffSearch({
|
||||
...stuffSearch,
|
||||
@ -354,7 +354,7 @@ export default function Stuff() {
|
||||
const apiUrl = `/api/object/list?saleStoreId=X167&${queryStringFormatter(stuffSearchParams)}`
|
||||
// console.log('apiUrl::', apiUrl)
|
||||
get({ url: apiUrl }).then((res) => {
|
||||
console.log('정렬바꿨을때 조회 ::::::::::', res)
|
||||
// console.log('정렬바꿨을때 조회 ::::::::::', res)
|
||||
if (!isEmptyArray(res)) {
|
||||
setGridProps({ ...gridProps, gridData: res, count: res.length })
|
||||
setGridCount(res.length)
|
||||
|
||||
@ -294,7 +294,7 @@ export default function StuffSearchCondition() {
|
||||
setStuffSearch({ ...stuffSearch, code: 'S', schDateType: e.target.value })
|
||||
}}
|
||||
/>
|
||||
<label htmlFor="ra05">등록일</label>
|
||||
<label htmlFor="radio_r">등록일</label>
|
||||
</div>
|
||||
</div>
|
||||
<div className="date-picker-wrap">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user