물건 목록화면 정렬조건 디폴트 최근수정일로 변경
This commit is contained in:
parent
082703513f
commit
5525d2771b
@ -30,7 +30,7 @@ export default function Stuff() {
|
||||
const [pageNo, setPageNo] = useState(1) //현재 페이지 번호
|
||||
const [pageSize, setPageSize] = useState(100) //페이지 당 게시물 수
|
||||
const [totalCount, setTotalCount] = useState(0) //총 갯수
|
||||
const [defaultSortType, setDefaultSortType] = useState('R')
|
||||
const [defaultSortType, setDefaultSortType] = useState('U')
|
||||
|
||||
const globalLocaleState = useRecoilValue(globalLocaleStore)
|
||||
const { get } = useAxios(globalLocaleState)
|
||||
@ -254,7 +254,7 @@ export default function Stuff() {
|
||||
startRow: (pageNo - 1) * pageSize + 1,
|
||||
endRow: pageNo * pageSize,
|
||||
schSelSaleStoreId: stuffSearchParams?.schOtherSelSaleStoreId ? stuffSearchParams.schOtherSelSaleStoreId : stuffSearchParams.schSelSaleStoreId,
|
||||
schSortType: 'R',
|
||||
schSortType: 'U',
|
||||
code: 'E',
|
||||
pageNo: 1,
|
||||
pageSize: 100,
|
||||
@ -328,7 +328,7 @@ export default function Stuff() {
|
||||
endRow: 100,
|
||||
schSelSaleStoreId: '',
|
||||
schOtherSelSaleStoreId: '',
|
||||
schSortType: 'R',
|
||||
schSortType: 'U',
|
||||
code: 'S',
|
||||
pageNo: 1,
|
||||
pageSize: 100,
|
||||
@ -438,8 +438,8 @@ export default function Stuff() {
|
||||
<div className="left-unit-box">
|
||||
<div className="select-box mr5" style={{ width: '110px' }}>
|
||||
<select className="select-light black" onChange={onChangeSortType} value={stuffSearch.schSortType}>
|
||||
<option value="R">{getMessage('stuff.search.grid.schSortTypeR')}</option>
|
||||
<option value="U">{getMessage('stuff.search.grid.schSortTypeU')}</option>
|
||||
<option value="R">{getMessage('stuff.search.grid.schSortTypeR')}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div className="select-box" style={{ width: '80px' }}>
|
||||
|
||||
@ -100,7 +100,7 @@ export default function StuffSearchCondition() {
|
||||
code: 'E',
|
||||
startRow: 1,
|
||||
endRow: 1 * stuffSearch?.pageSize,
|
||||
schSortType: stuffSearch?.schSortType ? stuffSearch.schSortType : 'R',
|
||||
schSortType: stuffSearch?.schSortType ? stuffSearch.schSortType : 'U',
|
||||
pageNo: 1,
|
||||
pageSize: stuffSearch?.pageSize,
|
||||
})
|
||||
@ -120,7 +120,7 @@ export default function StuffSearchCondition() {
|
||||
code: 'E',
|
||||
startRow: stuffSearch?.startRow ? stuffSearch.startRow : 1,
|
||||
endRow: stuffSearch?.endRow ? stuffSearch.endRow : 100,
|
||||
schSortType: stuffSearch?.schSortType ? stuffSearch.schSortType : 'R',
|
||||
schSortType: stuffSearch?.schSortType ? stuffSearch.schSortType : 'U',
|
||||
pageNo: stuffSearch?.pageNo,
|
||||
pageSize: stuffSearch?.pageSize,
|
||||
})
|
||||
@ -141,7 +141,7 @@ export default function StuffSearchCondition() {
|
||||
code: 'E',
|
||||
startRow: 1,
|
||||
endRow: 100,
|
||||
schSortType: stuffSearch?.schSortType ? stuffSearch.schSortType : 'R',
|
||||
schSortType: stuffSearch?.schSortType ? stuffSearch.schSortType : 'U',
|
||||
})
|
||||
} else if (stuffSearch.code === 'E') {
|
||||
if (session.storeId !== 'T01' && session.storeLvl === '1') {
|
||||
@ -160,7 +160,7 @@ export default function StuffSearchCondition() {
|
||||
code: 'E',
|
||||
startRow: stuffSearch?.startRow ? stuffSearch.startRow : 1,
|
||||
endRow: stuffSearch?.endRow ? stuffSearch.endRow : 100,
|
||||
schSortType: stuffSearch?.schSortType ? stuffSearch.schSortType : 'R',
|
||||
schSortType: stuffSearch?.schSortType ? stuffSearch.schSortType : 'U',
|
||||
pageNo: stuffSearch?.pageNo,
|
||||
pageSize: stuffSearch?.pageSize,
|
||||
})
|
||||
@ -181,7 +181,7 @@ export default function StuffSearchCondition() {
|
||||
code: 'E',
|
||||
startRow: 1,
|
||||
endRow: 1 * stuffSearch?.pageSize,
|
||||
schSortType: 'R',
|
||||
schSortType: 'U',
|
||||
pageNo: 1,
|
||||
pageSize: stuffSearch?.pageSize,
|
||||
})
|
||||
@ -201,7 +201,7 @@ export default function StuffSearchCondition() {
|
||||
code: 'E',
|
||||
startRow: stuffSearch?.startRow ? stuffSearch.startRow : 1,
|
||||
endRow: stuffSearch?.endRow ? stuffSearch.endRow : 100,
|
||||
schSortType: stuffSearch?.schSortType ? stuffSearch.schSortType : 'R',
|
||||
schSortType: stuffSearch?.schSortType ? stuffSearch.schSortType : 'U',
|
||||
pageNo: stuffSearch?.pageNo,
|
||||
pageSize: stuffSearch?.pageSize,
|
||||
})
|
||||
@ -222,7 +222,7 @@ export default function StuffSearchCondition() {
|
||||
code: 'E',
|
||||
startRow: stuffSearch?.startRow ? stuffSearch.startRow : 1,
|
||||
endRow: stuffSearch?.endRow ? stuffSearch.endRow : 100,
|
||||
schSortType: stuffSearch?.schSortType ? stuffSearch.schSortType : 'R',
|
||||
schSortType: stuffSearch?.schSortType ? stuffSearch.schSortType : 'U',
|
||||
pageNo: stuffSearch?.pageNo,
|
||||
pageSize: stuffSearch?.pageSize,
|
||||
})
|
||||
@ -243,7 +243,7 @@ export default function StuffSearchCondition() {
|
||||
code: 'E',
|
||||
startRow: stuffSearch?.startRow ? stuffSearch.startRow : 1,
|
||||
endRow: stuffSearch?.endRow ? stuffSearch.endRow : 100,
|
||||
schSortType: stuffSearch?.schSortType ? stuffSearch.schSortType : 'R',
|
||||
schSortType: stuffSearch?.schSortType ? stuffSearch.schSortType : 'U',
|
||||
pageNo: stuffSearch?.pageNo,
|
||||
pageSize: stuffSearch?.pageSize,
|
||||
})
|
||||
@ -287,10 +287,9 @@ export default function StuffSearchCondition() {
|
||||
schDateType: 'U',
|
||||
startRow: 1,
|
||||
endRow: 100,
|
||||
schSortType: 'R',
|
||||
schSortType: 'U',
|
||||
pageNo: 1,
|
||||
pageSize: 100,
|
||||
// code: 'S',
|
||||
})
|
||||
} else {
|
||||
if (otherSaleStoreList.length > 1) {
|
||||
@ -306,7 +305,7 @@ export default function StuffSearchCondition() {
|
||||
|
||||
stuffSearch.startRow = 1
|
||||
stuffSearch.endRow = 100
|
||||
stuffSearch.schSortType = 'R'
|
||||
stuffSearch.schSortType = 'U'
|
||||
stuffSearch.pageNo = 1
|
||||
stuffSearch.pageSize = 100
|
||||
} else {
|
||||
@ -320,7 +319,7 @@ export default function StuffSearchCondition() {
|
||||
|
||||
stuffSearch.startRow = 1
|
||||
stuffSearch.endRow = 100
|
||||
stuffSearch.schSortType = 'R'
|
||||
stuffSearch.schSortType = 'U'
|
||||
stuffSearch.pageNo = 1
|
||||
stuffSearch.pageSize = 100
|
||||
}
|
||||
@ -549,7 +548,7 @@ export default function StuffSearchCondition() {
|
||||
stuffSearch.endRow = 100
|
||||
stuffSearch.schSelSaleStoreId = ''
|
||||
stuffSearch.schOtherSelSaleStoreId = ''
|
||||
stuffSearch.schSortType = 'R'
|
||||
stuffSearch.schSortType = 'U'
|
||||
stuffSearch.pageNo = 1
|
||||
stuffSearch.pageSize = 100
|
||||
|
||||
@ -581,7 +580,7 @@ export default function StuffSearchCondition() {
|
||||
stuffSearch.endRow = 100
|
||||
stuffSearch.schSelSaleStoreId = ''
|
||||
stuffSearch.schOtherSelSaleStoreId = ''
|
||||
stuffSearch.schSortType = 'R'
|
||||
stuffSearch.schSortType = 'U'
|
||||
stuffSearch.pageNo = 1
|
||||
stuffSearch.pageSize = 100
|
||||
setSchSelSaleStoreId('')
|
||||
|
||||
@ -727,7 +727,7 @@
|
||||
"stuff.search.grid.all": "全体",
|
||||
"stuff.search.grid.selected": "選択",
|
||||
"stuff.search.grid.schSortTypeR": "最近の登録日",
|
||||
"stuff.search.grid.schSortTypeU": "最近の更新日",
|
||||
"stuff.search.grid.schSortTypeU": "最近修正日",
|
||||
"stuff.windSelectPopup.title": "風速選択",
|
||||
"stuff.windSelectPopup.table.selected": "選択",
|
||||
"stuff.windSelectPopup.table.windspeed": "風速",
|
||||
|
||||
@ -737,7 +737,7 @@
|
||||
"stuff.search.grid.all": "전체",
|
||||
"stuff.search.grid.selected": "선택",
|
||||
"stuff.search.grid.schSortTypeR": "최근 등록일",
|
||||
"stuff.search.grid.schSortTypeU": "최근 갱신일",
|
||||
"stuff.search.grid.schSortTypeU": "최근 수정일",
|
||||
"stuff.windSelectPopup.title": "풍속선택",
|
||||
"stuff.windSelectPopup.table.selected": "선택",
|
||||
"stuff.windSelectPopup.table.windspeed": "풍속",
|
||||
|
||||
@ -17,7 +17,7 @@ export const stuffSearchState = atom({
|
||||
schOtherSelSaleStoreId: '', //1차 이외 판매대리점 선택
|
||||
startRow: 1,
|
||||
endRow: 100,
|
||||
schSortType: 'R', //정렬조건 (R:최근등록일 U:최근수정일)
|
||||
schSortType: 'U', //정렬조건 (R:최근등록일 U:최근수정일)
|
||||
pageNo: 1,
|
||||
pageSize: 100,
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user