|
@@ -17,13 +17,11 @@ import { Col, Row, Steps } from 'antd';
|
|
import dayjs from 'dayjs';
|
|
import dayjs from 'dayjs';
|
|
import { DefaultOptionType } from 'rc-select/es/Select';
|
|
import { DefaultOptionType } from 'rc-select/es/Select';
|
|
import React, { useEffect, useState } from 'react';
|
|
import React, { useEffect, useState } from 'react';
|
|
|
|
+// @ts-ignore
|
|
|
|
+import ReactZmage from 'react-zmage';
|
|
|
|
|
|
-import 'react-photo-view/dist/react-photo-view.css';
|
|
|
|
import styles from './taskOrder.less';
|
|
import styles from './taskOrder.less';
|
|
|
|
|
|
-import 'swiper/css';
|
|
|
|
-import { Swiper, SwiperSlide } from 'swiper/react';
|
|
|
|
-
|
|
|
|
interface IPropsType {
|
|
interface IPropsType {
|
|
userList: IUserType[];
|
|
userList: IUserType[];
|
|
dispatch: (args: { type: string; payload: object }) => void;
|
|
dispatch: (args: { type: string; payload: object }) => void;
|
|
@@ -294,23 +292,32 @@ const TaskOrder: React.FC<IPropsType> = (props) => {
|
|
|
|
|
|
const renderImg = () => {
|
|
const renderImg = () => {
|
|
return (
|
|
return (
|
|
- <div style={{ width: '100%' }}>
|
|
|
|
- <Swiper spaceBetween={50}>
|
|
|
|
- {orderInfo?.MandateImages?.map((photo, index) => (
|
|
|
|
- <SwiperSlide key={index}>
|
|
|
|
- <img
|
|
|
|
|
|
+ <Col span={18}>
|
|
|
|
+ {orderInfo?.MandateImages?.length > 0 &&
|
|
|
|
+ orderInfo?.MandateImages?.map((item, index) => {
|
|
|
|
+ return (
|
|
|
|
+ <ReactZmage
|
|
|
|
+ key={index}
|
|
|
|
+ controller={{
|
|
|
|
+ close: true,
|
|
|
|
+ flip: true,
|
|
|
|
+ zoom: true,
|
|
|
|
+ pagination: true,
|
|
|
|
+ download: false,
|
|
|
|
+ }}
|
|
|
|
+ backdrop="rgba(255,255,255,0.5)"
|
|
style={{
|
|
style={{
|
|
maxWidth: `${Math.floor(
|
|
maxWidth: `${Math.floor(
|
|
- 100 / (orderInfo?.MandateImages?.length || 1),
|
|
|
|
|
|
+ 100 / orderInfo?.MandateImages?.length,
|
|
)}%`,
|
|
)}%`,
|
|
}}
|
|
}}
|
|
- src={photo.src}
|
|
|
|
- alt=""
|
|
|
|
|
|
+ src={item.src}
|
|
|
|
+ set={orderInfo?.MandateImages}
|
|
|
|
+ defaultPage={index}
|
|
/>
|
|
/>
|
|
- </SwiperSlide>
|
|
|
|
- ))}
|
|
|
|
- </Swiper>
|
|
|
|
- </div>
|
|
|
|
|
|
+ );
|
|
|
|
+ })}
|
|
|
|
+ </Col>
|
|
);
|
|
);
|
|
};
|
|
};
|
|
|
|
|