2 files added
12 files modified
New file |
| | |
| | | import React, { Fragment, useState } from 'react' |
| | | import { Image } from '@arco-design/web-react'; |
| | | import { link } from '@/assets/images'; |
| | | import './index.less'; |
| | | import * as $$ from '@/utils/utility'; |
| | | |
| | | const appUrl = $$.appUrl; |
| | | |
| | | export default function PreviewImage(props) { |
| | | const [visible, setVisible] = useState(false) |
| | | const { name, src, ...rest } = props |
| | | return ( |
| | | <Fragment> |
| | | <div style={{ display: 'none' }}> |
| | | <Image.Preview |
| | | src={`${appUrl.fileUrl}/${appUrl.sys}${src}`} |
| | | visible={visible} |
| | | onVisibleChange={setVisible} |
| | | {...rest} |
| | | /> |
| | | </div> |
| | | <div onClick={() => { setVisible(true) }} style={{color: '#1a6fb8', cursor: 'pointer', display: 'inline-block'}}><img src={link} alt="" className="title-file" />{name}</div> |
| | | </Fragment> |
| | | ) |
| | | } |
New file |
| | |
| | | .title-file { |
| | | width: 14px; |
| | | height: 14px; |
| | | margin-right: 4px; |
| | | margin-top: -2px; |
| | | } |
| | |
| | | import KeyVisits from "./KeyVisits"; |
| | | import { link } from '@/assets/images'; |
| | | import { Scrollbars } from "react-custom-scrollbars"; |
| | | import PreviewImage from '../PreviewImage'; |
| | | |
| | | export default function DetailDialog(props) { |
| | | const nuturalList = [ |
| | |
| | | ...res, |
| | | value: <> |
| | | {data[res.field]?.map(item => { |
| | | return <a target="_blank"> |
| | | <img src={link} alt="" className="title-file" />{item.name} |
| | | </a> |
| | | console.log(item); |
| | | if(item.response) { |
| | | //新上传的,前端数据 |
| | | const data = item.response.data[0] |
| | | return <PreviewImage name={data.name} src={data.showUrl} /> |
| | | } else { |
| | | return <PreviewImage name={item.name} src={item.showUrl} /> |
| | | } |
| | | })} |
| | | </> |
| | | } |
| | |
| | | <Col span={24}> |
| | | <FormItem |
| | | label='上报至' |
| | | field='trueName' |
| | | field='name' |
| | | > |
| | | <div className='myTag' > |
| | | <img src={escalation} alt="" className="title-file" />白云区综治中心 |
| | | <img src={escalation} alt="" className="title-file" />{unitData.auditUnitName} |
| | | </div> |
| | | </FormItem> |
| | | </Col> |
| | |
| | | }) |
| | | if (res.type) { |
| | | $$.infoSuccess({ content: '受理成功!' }); |
| | | navigate('/mediate/visit/visitWorkBench') |
| | | navigate(`/mediate/visit/handleFeedback?caseTaskId=${props.caseTaskId}&caseId=${props.caseId}`) |
| | | } |
| | | }, |
| | | }); |
| | | }, |
| | | key: 'sl', |
| | | }, |
| | | { |
| | | label: '提交', |
| | | type: 'primary', |
| | | click: () => { }, |
| | | key: 'tj', |
| | | }, |
| | | { |
| | | label: '自行受理', |
| | |
| | | {infoData?.fileInfoList?.map(res => { |
| | | return res.fileList.map((result, resIndex) => { |
| | | return <a href="your-link-here.html" target="_blank"> |
| | | <img src={link} alt="" className="title-file" />{result.trueName} |
| | | <img src={link} alt="" className="title-file" />{result.name} |
| | | {resIndex !== res.fileList.length - 1 && <>,</>} |
| | | </a> |
| | | }) |
| | |
| | | action: `${appUrl.fileUrl}/${appUrl.sys}/api/web/fileInfo/upload?mainId=${props.caseId}&ownerId=${id}&ownerType=22_00018-509`, |
| | | }} |
| | | field='file' |
| | | label='附件材料' |
| | | label={ |
| | | <div> |
| | | 附件材料 |
| | | <Tooltip> |
| | | <img src={question1} alt="" style={{ width: '13px', height: '13px', margin: '-3px 4px 0px 4px' }} /> |
| | | </Tooltip> |
| | | </div> |
| | | } |
| | | handleDelFile={handleDelFile} |
| | | /> |
| | | </Col> |
| | |
| | | }, |
| | | tabList: [ |
| | | { |
| | | value: '0', |
| | | value: '2', |
| | | label: '办理中', |
| | | columns: [ |
| | | { |
| | |
| | | ] |
| | | }, |
| | | { |
| | | value: '1', |
| | | value: '0', |
| | | label: '结案申请', |
| | | columns: [ |
| | | { |
| | |
| | | ] |
| | | }, |
| | | { |
| | | value: '2', |
| | | value: '1', |
| | | label: '已结案', |
| | | columns: [ |
| | | { |
| | |
| | | break; |
| | | case '4'://办理中 |
| | | const { status, ...most } = searchData |
| | | if (status && status === '0') { |
| | | if (status && status === '2') { |
| | | res = await pageMyTaskBlzApi({ |
| | | ...pageData, |
| | | ...most |
| | |
| | | setSearchData({ |
| | | sortType: 1, |
| | | sortColmn: 1, |
| | | status: '0', |
| | | status: '2', |
| | | }) |
| | | } else { |
| | | setSearchData({ |
| | |
| | | background-color: #fff; |
| | | margin: 0px 8px 0px 16px; |
| | | padding: 12px 16px 16px 16px; |
| | | height: calc(100vh - 228px); |
| | | height: calc(100vh - 231px); |
| | | overflow-y: scroll; |
| | | } |
| | | |
| | |
| | | return { |
| | | ...item, |
| | | size: applyFile.fileList.length, |
| | | fileNames: applyFile.fileList?.map(item => item.trueName).join(','), |
| | | fileNames: applyFile.fileList?.map(item => item.name).join(','), |
| | | updateTime: $$.timeFormat(applyFile.fileList[applyFile.fileList.length - 1].updateTime), |
| | | fileList: applyFile.fileList.map(item => { |
| | | return { |
| | | ...item, |
| | | uid: item.id, |
| | | name: item.trueName |
| | | // name: item.trueName |
| | | } |
| | | }) |
| | | } |
| | |
| | | return { |
| | | ...item, |
| | | size: evidenceFile.fileList.length, |
| | | fileNames: evidenceFile.fileList?.map(item => item.trueName).join(','), |
| | | fileNames: evidenceFile.fileList?.map(item => item.name).join(','), |
| | | updateTime: $$.timeFormat(evidenceFile.fileList[evidenceFile.fileList.length - 1].updateTime), |
| | | fileList: evidenceFile.fileList.map(item => { |
| | | return { |
| | | ...item, |
| | | uid: item.id, |
| | | name: item.trueName |
| | | // name: item.trueName |
| | | } |
| | | }) |
| | | } |
| | |
| | | return { |
| | | ...item, |
| | | size: data.length, |
| | | fileNames: data.map(item => item.trueName).join(','), |
| | | fileNames: data.map(item => item.name).join(','), |
| | | updateTime: $$.timeFormat(data[data.length - 1].updateTime), |
| | | fileList: data.map(item => { |
| | | return { |
| | | ...item, |
| | | name: item.trueName, |
| | | // name: item.trueName, |
| | | uid: item.id, |
| | | } |
| | | }), |
| | |
| | | console.log(res); |
| | | if (res.type) { |
| | | if (res.data) { |
| | | setTransactResult({ ...res.data, fileName: res.data.fileInfoBaseDTOList?.map(item => item.trueName) }) |
| | | setTransactResult({ ...res.data }) |
| | | } else { |
| | | setTransactResult(null) |
| | | } |
| | |
| | | import React, { useEffect, useState } from 'react'; |
| | | import { person, link } from '@/assets/images' |
| | | import { person1 } from '@/assets/images/icon' |
| | | |
| | | import PreviewImage from '@/components/PreviewImage'; |
| | | |
| | | |
| | | |
| | |
| | | item.fileInfoList?.map(res => { |
| | | if (res.ownerType == "22_00018-202") { |
| | | return res.fileList.map((result, resIndex) => { |
| | | return <a href="your-link-here.html" target="_blank"> |
| | | <img src={link} alt="" className="title-file" />{result.trueName} |
| | | return <div style={{display: 'inline-block'}}> |
| | | <PreviewImage name={result.name} src={result.showUrl} /> |
| | | {resIndex !== res.fileList.length - 1 && <>,</>} |
| | | </a> |
| | | </div> |
| | | }) |
| | | } |
| | | }) |
| | |
| | | fileInfoList.forEach(item => { |
| | | if (item.ownerType == '22_00018-202' || item.ownerType == '22_00018-203') { |
| | | file.push({ |
| | | name: item.fileList[0].trueName, |
| | | ...item.fileList[0], |
| | | uid: item.fileList[0].id, |
| | | }) |
| | | } |
| | | if (item.ownerType == '22_00018-204' || item.ownerType == '22_00018-207') { |
| | | file1.push({ |
| | | name: item.fileList[0].trueName, |
| | | ...item.fileList[0], |
| | | uid: item.fileList[0].id, |
| | | }) |
| | | } |
| | |
| | | import { ApplyDialog, AgentDialog, Respondent, Company } from './component/previewTable' |
| | | import FileTable from "../matterDetail/FileTable"; |
| | | import { link } from '@/assets/images'; |
| | | import PreviewImage from '@/components/PreviewImage'; |
| | | |
| | | const Preview = (props) => { |
| | | const [data, setData] = useState({}) |
| | |
| | | <th bgcolor="#F7F8FA" className="table-title" width="120">协议文书</th> |
| | | <td colspan='3'> |
| | | {props.transactResult?.fileInfoBaseDTOList?.map((item, index) => { |
| | | return <a href="your-link-here.html" target="_blank"> |
| | | <img src={link} alt="" className="title-file" />{item.trueName} |
| | | {index !== props.transactResult.fileInfoBaseDTOList.length - 1 && <>,</>} |
| | | </a> |
| | | console.log(item); |
| | | return <div style={{ display: 'inline-block' }}> |
| | | <PreviewImage name={item.name} src={item.showUrl} /> |
| | | {index !== props.transactResult?.fileInfoBaseDTOList.length - 1 && <>,</>} |
| | | </div> |
| | | })} |
| | | </td> |
| | | </tr> |