|
@@ -52,11 +52,7 @@ const CompanyTabList = ({ initData, customerId, software }) => {
|
|
|
dataIndex: 'client'
|
|
dataIndex: 'client'
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
- const [state, setState] = useState({
|
|
|
|
|
- id: '',
|
|
|
|
|
- params: {},
|
|
|
|
|
- visible: false
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ const [dataSource, setDataSource] = useState([])
|
|
|
useEffect(() => {
|
|
useEffect(() => {
|
|
|
const fetchClients = async () => {
|
|
const fetchClients = async () => {
|
|
|
const { code = -1, data: { client = [] } = { client: [], total: 0 } } = await queryContact({
|
|
const { code = -1, data: { client = [] } = { client: [], total: 0 } } = await queryContact({
|
|
@@ -101,13 +97,12 @@ const CompanyTabList = ({ initData, customerId, software }) => {
|
|
|
<TabPane tab="软件锁" key="软件锁">
|
|
<TabPane tab="软件锁" key="软件锁">
|
|
|
<div className="sheet-right-panel">
|
|
<div className="sheet-right-panel">
|
|
|
<ProTable
|
|
<ProTable
|
|
|
|
|
+ size="small"
|
|
|
columns={columnLongle}
|
|
columns={columnLongle}
|
|
|
search={false}
|
|
search={false}
|
|
|
toolBarRender={false}
|
|
toolBarRender={false}
|
|
|
- params={state.params}
|
|
|
|
|
- actionRef={tRef}
|
|
|
|
|
rowKey={record => record.id}
|
|
rowKey={record => record.id}
|
|
|
- // dataSource={software.longle}
|
|
|
|
|
|
|
+ dataSource={software.longle}
|
|
|
pagination={false}
|
|
pagination={false}
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|