diff --git a/src/pages/InRoadMgm/BusinessMgm/SpecialRecord/index.scss b/src/pages/InRoadMgm/BusinessMgm/SpecialRecord/index.scss index 78b890f..090b46d 100644 --- a/src/pages/InRoadMgm/BusinessMgm/SpecialRecord/index.scss +++ b/src/pages/InRoadMgm/BusinessMgm/SpecialRecord/index.scss @@ -673,6 +673,7 @@ $color-primary: var(--color-primary); .imag-pic { .img-pic { display: flex; + flex-wrap: wrap; .img { position: relative; diff --git a/src/pages/InRoadMgm/BusinessMgm/SpecialRecord/loadable.jsx b/src/pages/InRoadMgm/BusinessMgm/SpecialRecord/loadable.jsx index 7a9d98c..e8fa729 100644 --- a/src/pages/InRoadMgm/BusinessMgm/SpecialRecord/loadable.jsx +++ b/src/pages/InRoadMgm/BusinessMgm/SpecialRecord/loadable.jsx @@ -5,7 +5,7 @@ import { pageSizeOptions } from '@/config/character.config.js' import "./index.scss"; -import { SearchOutlined, DeleteOutlined, PlusOutlined,CloseCircleFilled } from '@ant-design/icons'; +import { SearchOutlined, DeleteOutlined, PlusOutlined, CloseCircleFilled } from '@ant-design/icons'; import ajax from '@/services' import { useSessionStorageState } from "ahooks" const { TabPane } = Tabs; @@ -439,7 +439,7 @@ function CollectorWorkStat(props) { setGetTableId(record) } // useEffect(() => { - + // }, [getTableId.id]) const getTable = (data = lastColumnList) => { @@ -468,11 +468,11 @@ function CollectorWorkStat(props) { const [getEditData, setGetEditData] = useState({}) const imgData = () => { let imgUrl = [] - if(fileList.length==0){ + if (fileList.length == 0) { getImage.map(item => { imgUrl.push(item) }) - }else{ + } else { fileList.map(res => { imgUrl.push(res.response?.data) getImage.map(item => { @@ -545,7 +545,7 @@ function CollectorWorkStat(props) { if (res.status === 20000) { setChangeVisible(false) getData(formData) - }else{ + } else { message.error(res.message) setChangeVisible(false) } @@ -831,10 +831,11 @@ function CollectorWorkStat(props) { window.open(res.data.url) }) } - const detdailPic=(index)=>{ - let arr=[...getImage] - let str= arr.splice(index,1) - setGetImage(str); + const detdailPic = (index) => { + console.log(index); + let arr = [...getImage] + arr.splice(index, 1) + setGetImage(arr); } const [getPlateColor, setGetPlateColor] = useState([]) const plateColor = () => { @@ -858,14 +859,14 @@ function CollectorWorkStat(props) { setCreatVisible(false) getApproveData(formData) setGetCreatDataList({ - operationName:'', - plate_color_id:'', - plate:'', - owner:'', - phone:'', - vehicle_type:'', - vehicle_status:'', - fileList:[] + operationName: '', + plate_color_id: '', + plate: '', + owner: '', + phone: '', + vehicle_type: '', + vehicle_status: '', + fileList: [] }) } }) @@ -1541,7 +1542,7 @@ function CollectorWorkStat(props) {
{ - getImage.map((res,index) => { + getImage.map((res, index) => { return (