|
@@ -1,16 +1,16 @@
|
|
|
import Header from '@/components/Header'
|
|
|
import Slot from '@/components/Header/slot'
|
|
|
+import SvgIcon from '@/components/SvgIcon'
|
|
|
import { contractStore, tenderStore } from '@/store/mobx'
|
|
|
import { iIncomeTree, iModalBooleanProps } from '@/types/contract'
|
|
|
import { contractTreeBaseId } from '@/utils/common/constStatus'
|
|
|
import consts from '@/utils/consts'
|
|
|
-import { ArrowDownOutlined, ArrowLeftOutlined, ArrowRightOutlined, ArrowUpOutlined, CloseOutlined, PlusOutlined, SettingOutlined } from '@ant-design/icons'
|
|
|
+import { SettingOutlined } from '@ant-design/icons'
|
|
|
import { Button, Tooltip } from 'antd'
|
|
|
import React, { useState } from 'react'
|
|
|
import { apiResfulContractTree } from './api'
|
|
|
import ContractModal from './components/Modal'
|
|
|
import TableContent from './components/TableContent'
|
|
|
-
|
|
|
export default function Income() {
|
|
|
const [ modalObj, setModalObj ] = useState<iModalBooleanProps>({
|
|
|
type: '',
|
|
@@ -84,46 +84,47 @@ export default function Income() {
|
|
|
row.id ?
|
|
|
<>
|
|
|
<Tooltip title="添加子项">
|
|
|
- <Button type="text" icon={<PlusOutlined style={{ color: '#007bff' }}/>} onClick={() => treeResfulApiHandler('add', { id: row.id, bidsectionId: row.bidsectionId })}></Button>
|
|
|
+ <Button type="text" icon={<SvgIcon type="xxh-plus" style={{ color: '#007bff' }}></SvgIcon>} onClick={() => treeResfulApiHandler('add', { id: row.id, bidsectionId: row.bidsectionId })}></Button>
|
|
|
+ {/* <Button type="text" icon={<PlusOutlined style={{ color: '#007bff' }}/>} onClick={() => treeResfulApiHandler('add', { id: row.id, bidsectionId: row.bidsectionId })}></Button> */}
|
|
|
</Tooltip>
|
|
|
{
|
|
|
!row.children?.length ?
|
|
|
<Tooltip title="删除">
|
|
|
- <Button type="text" icon={<CloseOutlined style={{ color: '#007bff' }}/>} onClick={() => treeResfulApiHandler('del', { id: row.id, bidsectionId: row.bidsectionId })} />
|
|
|
+ <Button type="text" icon={<SvgIcon type="xxh-times" style={{ color: '#007bff' }}></SvgIcon>} onClick={() => treeResfulApiHandler('del', { id: row.id, bidsectionId: row.bidsectionId })} />
|
|
|
</Tooltip>
|
|
|
- : <span className="pi-width-32 pi-height-32 pi-pd-tb-4 pi-flex-row-center"><CloseOutlined style={{ color: '#9a9a9a', fontSize: '14px' }}/></span>
|
|
|
+ : <span className="pi-width-32 pi-height-32 pi-pd-tb-4 pi-flex-row-center"><SvgIcon type="xxh-times" style={{ color: '#9a9a9a' }}></SvgIcon></span>
|
|
|
}
|
|
|
{
|
|
|
row.parentId && row.parentId !== contractTreeBaseId ?
|
|
|
<Tooltip title="升级">
|
|
|
- <Button type="text" icon={<ArrowLeftOutlined />} style={{ color: '#007bff' }} onClick={() => treeResfulApiHandler('depth', { id: row.id, bidsectionId: row.bidsectionId, operation: 'upDepth' })}></Button>
|
|
|
+ <Button type="text" icon={<SvgIcon type="xxh-arrow-left" style={{ color: '#007bff' }} onClick={() => treeResfulApiHandler('depth', { id: row.id, bidsectionId: row.bidsectionId, operation: 'upDepth' })}></SvgIcon>}></Button>
|
|
|
</Tooltip>
|
|
|
:
|
|
|
- <span className="pi-width-32 pi-height-32 pi-pd-tb-4 pi-flex-row-center"><ArrowLeftOutlined style={{ color: '#9a9a9a', fontSize: '14px' }}/></span>
|
|
|
+ <span className="pi-width-32 pi-height-32 pi-pd-tb-4 pi-flex-row-center"><SvgIcon type="xxh-arrow-left" style={{ color: '#9a9a9a' }}/></span>
|
|
|
}
|
|
|
{
|
|
|
row.elderBrother ?
|
|
|
<Tooltip title="降级">
|
|
|
- <Button type="text" icon={<ArrowRightOutlined style={{ color: '#007bff' }}/>} onClick={() => treeResfulApiHandler('depth', { id: row.id, bidsectionId: row.bidsectionId, operation: 'downDepth' })} ></Button>
|
|
|
+ <Button type="text" icon={<SvgIcon type="xxh-arrow-right" style={{ color: '#007bff' }}/>} onClick={() => treeResfulApiHandler('depth', { id: row.id, bidsectionId: row.bidsectionId, operation: 'downDepth' })} ></Button>
|
|
|
</Tooltip>
|
|
|
:
|
|
|
- <span className="pi-width-32 pi-height-32 pi-pd-tb-4 pi-flex-row-center"><ArrowRightOutlined style={{ color: '#9a9a9a', fontSize: '14px' }}/></span>
|
|
|
+ <span className="pi-width-32 pi-height-32 pi-pd-tb-4 pi-flex-row-center"><SvgIcon type="xxh-arrow-right" style={{ color: '#9a9a9a' }}/></span>
|
|
|
}
|
|
|
{
|
|
|
row.elderBrother ?
|
|
|
<Tooltip title="上移">
|
|
|
- <Button type="text" icon={<ArrowUpOutlined style={{ color: '#007bff' }}/>} onClick={() => treeResfulApiHandler('serial', { id: row.id, bidsectionId: row.bidsectionId, operation: 'upSerial' })} disabled={!row.elderBrother}></Button>
|
|
|
+ <Button type="text" icon={<SvgIcon type="xxh-arrow-up" style={{ color: '#007bff' }}/>} onClick={() => treeResfulApiHandler('serial', { id: row.id, bidsectionId: row.bidsectionId, operation: 'upSerial' })} disabled={!row.elderBrother}></Button>
|
|
|
</Tooltip>
|
|
|
:
|
|
|
- <span className="pi-width-32 pi-height-32 pi-pd-tb-4 pi-flex-row-center"><ArrowUpOutlined style={{ color: '#9a9a9a', fontSize: '14px' }}/></span>
|
|
|
+ <span className="pi-width-32 pi-height-32 pi-pd-tb-4 pi-flex-row-center"><SvgIcon type="xxh-arrow-up" style={{ color: '#9a9a9a' }}/></span>
|
|
|
}
|
|
|
{
|
|
|
!row.isEnd ?
|
|
|
<Tooltip title="下移">
|
|
|
- <Button type="text" icon={<ArrowDownOutlined style={{ color: '#007bff' }}/>} onClick={() => treeResfulApiHandler('serial', { id: row.id, bidsectionId: row.bidsectionId, operation: 'downSerial' })} disabled={row.isEnd}></Button>
|
|
|
+ <Button type="text" icon={<SvgIcon type="xxh-arrow-down" style={{ color: '#007bff' }}/>} onClick={() => treeResfulApiHandler('serial', { id: row.id, bidsectionId: row.bidsectionId, operation: 'downSerial' })} disabled={row.isEnd}></Button>
|
|
|
</Tooltip>
|
|
|
:
|
|
|
- <span className="pi-width-32 pi-height-32 pi-pd-tb-4 pi-flex-row-center"><ArrowDownOutlined style={{ color: '#9a9a9a', fontSize: '14px' }}/></span>
|
|
|
+ <span className="pi-width-32 pi-height-32 pi-pd-tb-4 pi-flex-row-center"><SvgIcon type="xxh-arrow-down" style={{ color: '#9a9a9a' }}/></span>
|
|
|
}
|
|
|
</>
|
|
|
: ''
|