|
|
@ -5,7 +5,7 @@ import { |
|
|
|
pageSizeOptions |
|
|
|
} from '@/config/character.config.js' |
|
|
|
import "./index.scss"; |
|
|
|
import { SearchOutlined, DeleteOutlined, PlusOutlined } from '@ant-design/icons'; |
|
|
|
import { SearchOutlined, DeleteOutlined, PlusOutlined,CloseCircleFilled } from '@ant-design/icons'; |
|
|
|
import ajax from '@/services' |
|
|
|
import { useSessionStorageState } from "ahooks" |
|
|
|
const { TabPane } = Tabs; |
|
|
@ -474,15 +474,12 @@ function CollectorWorkStat(props) { |
|
|
|
}) |
|
|
|
}else{ |
|
|
|
fileList.map(res => { |
|
|
|
console.log(res); |
|
|
|
imgUrl.push(res.response?.data) |
|
|
|
getImage.map(item => { |
|
|
|
imgUrl.push(item) |
|
|
|
}) |
|
|
|
console.log(imgUrl); |
|
|
|
}) |
|
|
|
} |
|
|
|
console.log(imgUrl); |
|
|
|
setGetEditData( |
|
|
|
Object.assign({}, getEditData, { image: imgUrl }) |
|
|
|
); |
|
|
@ -834,6 +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 [getPlateColor, setGetPlateColor] = useState([]) |
|
|
|
const plateColor = () => { |
|
|
|
ajax.colorList().then(res => { |
|
|
@ -1539,9 +1541,10 @@ function CollectorWorkStat(props) { |
|
|
|
</Upload> |
|
|
|
<div className="img-pic"> |
|
|
|
{ |
|
|
|
getImage.map(res => { |
|
|
|
getImage.map((res,index) => { |
|
|
|
return ( |
|
|
|
<div className="img"> |
|
|
|
<div className="img" > |
|
|
|
<Button type="circle" className="type" onClick={() => { detdailPic(index) }} > x</Button> |
|
|
|
<Image src={res} className="image"></Image> |
|
|
|
</div> |
|
|
|
) |
|
|
|