| </head> | </head> | ||||
| <body> | <body> | ||||
| <div id="root"></div> | <div id="root"></div> | ||||
| <script src="/umi.eb8daf1a.js"></script> | |||||
| <script src="/umi.ce320309.js"></script> | |||||
| </body> | </body> | ||||
| </html> | </html> |
| 相片或身份证复印处 | 相片或身份证复印处 | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| {/* 放第二条到第五条数据 */} | |||||
| {detail.intros && detail.intros.length > 5 && detail.intros.slice(1, 5).map((item, index) => (<> | |||||
| <tr style={{ height: '30px' }}> | |||||
| <td colSpan={5}>{item.content}</td> | |||||
| </tr> | |||||
| </>))} | |||||
| {/* 放第六条数据以及后面的 */} | |||||
| {detail.intros && detail.intros.length > 5 && detail.intros.slice(5).map((item, index) => (<> | |||||
| <tr style={{ height: '30px' }}> | |||||
| <td colSpan={9}>{item.content}</td> | |||||
| </tr> | |||||
| </>))} | |||||
| <tr style={{ height: '30px' }}> | |||||
| <td colSpan={9}></td> | |||||
| </tr> | |||||
| <tr style={{ height: '30px' }}> | |||||
| <td colSpan={9}></td> | |||||
| </tr> | |||||
| { | |||||
| detail.intros && detail.intros.length > 5 ? <> | |||||
| {/* 放第二条到第五条数据 */} | |||||
| {detail.intros && detail.intros.length > 5 && detail.intros.slice(1, 5).map((item, index) => (<> | |||||
| <tr style={{ height: '30px' }}> | |||||
| <td colSpan={5}>{item.content}</td> | |||||
| </tr> | |||||
| </>))} | |||||
| {/* 放第六条数据以及后面的 */} | |||||
| {detail.intros && detail.intros.length > 5 && detail.intros.slice(5).map((item, index) => (<> | |||||
| <tr style={{ height: '30px' }}> | |||||
| <td colSpan={9}>{item.content}</td> | |||||
| </tr> | |||||
| </>))} | |||||
| <tr style={{ height: '30px' }}> | |||||
| <td colSpan={9}></td> | |||||
| </tr> | |||||
| <tr style={{ height: '30px' }}> | |||||
| <td colSpan={9}></td> | |||||
| </tr> | |||||
| </> : <> | |||||
| {detail.intros && detail.intros.slice(1, detail.intros.length).map((item, index) => (<> | |||||
| <tr style={{ height: '30px' }}> | |||||
| <td colSpan={9}>{item.content}</td> | |||||
| </tr> | |||||
| </>))} | |||||
| { | |||||
| detail.intros.length < 5 && <> | |||||
| {Array(7 - detail.intros.length).fill(0).map((item, index) => (<> | |||||
| <tr style={{ height: '30px' }}> | |||||
| <td colSpan={9}></td> | |||||
| </tr> | |||||
| </>))} | |||||
| </> | |||||
| } | |||||
| </> | |||||
| } | |||||
| </> : <> | </> : <> | ||||
| <tr style={{ height: '30px' }}> | <tr style={{ height: '30px' }}> | ||||
| <td rowSpan={7} style={{ width: '10%', textAlign: 'center' }}>介绍工作情况</td> | <td rowSpan={7} style={{ width: '10%', textAlign: 'center' }}>介绍工作情况</td> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| {/* 帮扶情况 */} | {/* 帮扶情况 */} | ||||
| {detail.assists && detail.assists.length > 0 && detail.assists.slice(1).map((item, index) => (<> | {detail.assists && detail.assists.length > 0 && detail.assists.slice(1).map((item, index) => (<> | ||||
| <tr style={{ height: '30px' }}> | <tr style={{ height: '30px' }}> | ||||
| <td colSpan={9}>{item.content}</td> | <td colSpan={9}>{item.content}</td> | ||||
| </tr> | </tr> | ||||
| </>))} | </>))} | ||||
| <tr style={{ height: '30px' }}> | |||||
| <td colSpan={9}></td> | |||||
| </tr> | |||||
| <tr style={{ height: '30px' }}> | |||||
| <td colSpan={9}></td> | |||||
| </tr> | |||||
| {Array(4 - detail.assists.length).fill(0).map((item, index) => (<> | |||||
| <tr style={{ height: '30px' }}> | |||||
| <td colSpan={9}></td> | |||||
| </tr> | |||||
| </>))} | |||||
| </> : <> | </> : <> | ||||
| <tr style={{ height: '30px' }}> | <tr style={{ height: '30px' }}> | ||||
| <td rowSpan={4} style={{ width: '10%', textAlign: 'center' }}>帮扶情况</td> | <td rowSpan={4} style={{ width: '10%', textAlign: 'center' }}>帮扶情况</td> |
| EditableProTable, | EditableProTable, | ||||
| ProFormCascader, | ProFormCascader, | ||||
| } from '@ant-design/pro-components'; | } from '@ant-design/pro-components'; | ||||
| import { ConfigProvider, Flex, Space, message, Image, Row, Col, Cascader } from 'antd'; | |||||
| import { ConfigProvider, Flex, Space, message, Image, Row, Col, Cascader, Popconfirm } from 'antd'; | |||||
| import { | import { | ||||
| PostJobapplicantAddassistandintro, GetJobapplicantListassist, GetJobapplicantAssistdetail, PostJobapplicantUpdateassist | |||||
| PostJobapplicantAddassistandintro, GetJobapplicantListassist, GetJobapplicantAssistdetail, PostJobapplicantDelassist, PostJobapplicantUpdateassist | |||||
| } from '@/apis/api'; | } from '@/apis/api'; | ||||
| const PagesMainJobseekerListResumeHelpAssist: React.FC = ({ dispatch, dictModel, openModel, id }: any) => { | const PagesMainJobseekerListResumeHelpAssist: React.FC = ({ dispatch, dictModel, openModel, id }: any) => { | ||||
| > | > | ||||
| 编辑 | 编辑 | ||||
| </a>, | </a>, | ||||
| <a | |||||
| key="delete" | |||||
| onClick={() => { | |||||
| <Popconfirm | |||||
| title="是否删除" | |||||
| onConfirm={(e) => { | |||||
| PostJobapplicantDelassist({ id: record.id }).then(res => { | |||||
| message.success('删除成功') | |||||
| actionRef.current.reload(); | |||||
| }) | |||||
| }} | }} | ||||
| okText="删除" | |||||
| cancelText="取消" | |||||
| > | > | ||||
| 删除 | |||||
| </a>, | |||||
| <a | |||||
| key="delete" | |||||
| > | |||||
| 删除 | |||||
| </a> | |||||
| </Popconfirm> | |||||
| ], | ], | ||||
| }, | }, | ||||
| ]} | ]} |
| EditableProTable, | EditableProTable, | ||||
| ProFormCascader, | ProFormCascader, | ||||
| } from '@ant-design/pro-components'; | } from '@ant-design/pro-components'; | ||||
| import { ConfigProvider, Flex, Space, message, Image, Row, Col, Cascader } from 'antd'; | |||||
| import { ConfigProvider, Flex, Space, message, Image, Row, Col, Cascader, Popconfirm } from 'antd'; | |||||
| import { | import { | ||||
| PostJobapplicantAddassistandintro, GetJobapplicantListintro, GetJobapplicantIntrodetail, PostJobapplicantUpdateintro, PostJobapplicantDelintro | PostJobapplicantAddassistandintro, GetJobapplicantListintro, GetJobapplicantIntrodetail, PostJobapplicantUpdateintro, PostJobapplicantDelintro | ||||
| } from '@/apis/api'; | } from '@/apis/api'; | ||||
| } | } | ||||
| }} | }} | ||||
| columns={[ { | |||||
| columns={[{ | |||||
| title: 'ID', | title: 'ID', | ||||
| dataIndex: 'id', | dataIndex: 'id', | ||||
| editable: false, | editable: false, | ||||
| width: 100 | width: 100 | ||||
| }, | }, | ||||
| { | |||||
| title: '介绍情况', | |||||
| dataIndex: 'content' | |||||
| }, | |||||
| { | |||||
| title: '操作', | |||||
| valueType: 'option', | |||||
| width: 200, | |||||
| render: (text, record, _, action) => [ | |||||
| <a | |||||
| key="editable" | |||||
| onClick={async () => { | |||||
| action?.startEditable?.(record.id); | |||||
| }} | |||||
| > | |||||
| 编辑 | |||||
| </a>, | |||||
| { | |||||
| title: '介绍情况', | |||||
| dataIndex: 'content' | |||||
| }, | |||||
| { | |||||
| title: '操作', | |||||
| valueType: 'option', | |||||
| width: 200, | |||||
| render: (text, record, _, action) => [ | |||||
| <a | |||||
| key="editable" | |||||
| onClick={async () => { | |||||
| action?.startEditable?.(record.id); | |||||
| }} | |||||
| > | |||||
| 编辑 | |||||
| </a>, | |||||
| <Popconfirm | |||||
| title="是否删除" | |||||
| onConfirm={(e) => { | |||||
| PostJobapplicantDelintro({ id: record.id }).then(res => { | |||||
| message.success('删除成功') | |||||
| actionRef.current.reload(); | |||||
| }) | |||||
| }} | |||||
| okText="删除" | |||||
| cancelText="取消" | |||||
| > | |||||
| <a | <a | ||||
| key="delete" | key="delete" | ||||
| onClick={() => { | |||||
| }} | |||||
| > | > | ||||
| 删除 | 删除 | ||||
| </a>, | |||||
| ], | |||||
| }, | |||||
| </a> | |||||
| </Popconfirm> | |||||
| ], | |||||
| }, | |||||
| ]} | ]} | ||||
| editable={{ | editable={{ | ||||
| type: 'single', | type: 'single', | ||||
| console.log(rowKey, data, row) | console.log(rowKey, data, row) | ||||
| data.customer_id = id.customer_id; | data.customer_id = id.customer_id; | ||||
| if (rowKey && originList.findIndex(item => item.id === rowKey) !== -1) { | if (rowKey && originList.findIndex(item => item.id === rowKey) !== -1) { | ||||
| let res1 = await PostJobapplicantUpdateintro({ id: rowKey, customer_id: data.customer_id, content: data.content}) | |||||
| let res1 = await PostJobapplicantUpdateintro({ id: rowKey, customer_id: data.customer_id, content: data.content }) | |||||
| message.success('提交成功') | message.success('提交成功') | ||||
| actionRef.current.reload(); | actionRef.current.reload(); | ||||
| } else { | } else { | ||||
| let res1 = await PostJobapplicantAddassistandintro({ customer_id: data.customer_id, intro_content: [data.content]}) | |||||
| let res1 = await PostJobapplicantAddassistandintro({ customer_id: data.customer_id, intro_content: [data.content] }) | |||||
| message.success('提交成功') | message.success('提交成功') | ||||
| actionRef.current.reload(); | actionRef.current.reload(); | ||||
| } | } |