Browse Source

fix: 线上问题修改

tags/PMS_V1.0.0_Alpha5
chenglb 1 year ago
parent
commit
2c0f2224f2
  1. 10
      src/pages/InRoadMgm/PersonMgm/PersonInfo/loadable.jsx
  2. 2
      src/pages/InRoadMgm/RecordInquiry/ArrearsEtcInquiries/loadable.jsx
  3. 8
      src/pages/OffPeak/OffPeakParkMgm/BookInfo/loadable.jsx

10
src/pages/InRoadMgm/PersonMgm/PersonInfo/loadable.jsx

@ -71,6 +71,8 @@ function PersonInfo() {
}) })
const [isResignModalOpen, setIsResignModalOpen] = useState(false) const [isResignModalOpen, setIsResignModalOpen] = useState(false)
const [isResetModalOpen, setIsResetModalOpen] = useState(false) const [isResetModalOpen, setIsResetModalOpen] = useState(false)
const [getPersonId, setGetPersonId] = useState('')
const [getOperatorId, setGetOperatorId] = useState('0')
/** /**
* *
* @param {object} params 请求参数 * @param {object} params 请求参数
@ -133,7 +135,6 @@ function PersonInfo() {
res.data.goods_id = '' res.data.goods_id = ''
res.data.road_ids = res.data.road_ids.join(',') res.data.road_ids = res.data.road_ids.join(',')
res.data.good_names = res.data.goods_name res.data.good_names = res.data.goods_name
console.log(res.data, 'res.data')
setCurrentPersonInfo(res.data) setCurrentPersonInfo(res.data)
setGetPersonId(res.data.operator) setGetPersonId(res.data.operator)
setTargetKeys(res.data.road_ids.split(',')) setTargetKeys(res.data.road_ids.split(','))
@ -274,8 +275,7 @@ function PersonInfo() {
} }
} }
const [getPersonId, setGetPersonId] = useState('')
const [getOperatorId, setGetOperatorId] = useState('0')
const changeOperator = (e) => { const changeOperator = (e) => {
if (e == '0') { if (e == '0') {
setFormData({ operator_id: e }); setFormData({ operator_id: e });
@ -491,10 +491,7 @@ function PersonInfo() {
// getPersonAllRoad() // getPersonAllRoad()
}, []) }, [])
useEffect(() => {
console.log(getEdit);
}, [getEdit])
useEffect(() => { useEffect(() => {
if (!showEdit) { if (!showEdit) {
setCurrentPersonInfo({ setCurrentPersonInfo({
@ -511,6 +508,7 @@ function PersonInfo() {
good_names: '', // good_names: '', //
road_ids: '', road_ids: '',
}) })
setGetPersonId('') // useEffect
} }
}, [showEdit]) }, [showEdit])

2
src/pages/InRoadMgm/RecordInquiry/ArrearsEtcInquiries/loadable.jsx

@ -173,7 +173,7 @@ function ArrearsEtcInquiries() {
otherData={{ otherData={{
payment_time: 1, payment_time: 1,
}} }}
exportUrl="/api/bpm/record/get_arrears_export"
exportUrl="/api/bpm/record/get_arrears_export_etc"
/> />
); );
} }

8
src/pages/OffPeak/OffPeakParkMgm/BookInfo/loadable.jsx

@ -125,7 +125,13 @@ function BookInfo() {
// //
const [total, setTotal] = useState(0); const [total, setTotal] = useState(0);
function search(params) { function search(params) {
ajax.getBookInfoList(params).then((res) => {
let temp_obj = {...params}
if(temp_obj.book_time_range?.length){
temp_obj.book_time_range = temp_obj.book_time_range[0].format('YYYY-MM-DD') + ',' + temp_obj.book_time_range[1].format('YYYY-MM-DD')
}else{
temp_obj.book_time_range = ''
}
ajax.getBookInfoList(temp_obj).then((res) => {
if (res.status === 20000) { if (res.status === 20000) {
setTableData(res.data.list); setTableData(res.data.list);
setTotal(res.data.total); setTotal(res.data.total);

Loading…
Cancel
Save